Class SimpleTimer.TimerEndedEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<SimpleTimer>
com.flowingcode.vaadin.addons.simpletimer.SimpleTimer.TimerEndedEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
- SimpleTimer
Event fired when the timer reaches its limit.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionTimerEndedEvent(SimpleTimer source, boolean fromClient) Creates a new event.TimerEndedEvent(SimpleTimer source, boolean fromClient, boolean retroactive) Creates a new event. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the timer reached its limit while it was detached, in which case the event is fired late, when the component is attached again.Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
TimerEndedEvent
Creates a new event.- Parameters:
source- the timer that reached its limitfromClient- whether the event originated from the client
-
TimerEndedEvent
Creates a new event.- Parameters:
source- the timer that reached its limitfromClient- whether the event originated from the clientretroactive- whether the timer ended while it was detached
-
-
Method Details
-
isRetroactive
public boolean isRetroactive()Returns whether the timer reached its limit while it was detached, in which case the event is fired late, when the component is attached again.- Returns:
trueif the event is fired after the fact
-