Class SimpleTimer.TimerTickEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<SimpleTimer>
com.flowingcode.vaadin.addons.simpletimer.SimpleTimer.TimerTickEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
- SimpleTimer
Event fired periodically while the timer is running.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the elapsed time, as computed on the server when this method is called.Returns the remaining time, as computed on the server when this method is called.Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
TimerTickEvent
Creates a new event.- Parameters:
source- the running timerfromClient- whether the event originated from the client
-
-
Method Details
-
getElapsed
Returns the elapsed time, as computed on the server when this method is called.- Returns:
- the value of
SimpleTimer.getElapsed()
-
getRemaining
Returns the remaining time, as computed on the server when this method is called.- Returns:
- the value of
SimpleTimer.getRemaining()
-