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

public static class SimpleTimer.TimerTickEvent extends ComponentEvent<SimpleTimer>
Event fired periodically while the timer is running.
See Also:
  • Constructor Details

    • TimerTickEvent

      public TimerTickEvent(SimpleTimer source, boolean fromClient)
      Creates a new event.
      Parameters:
      source - the running timer
      fromClient - whether the event originated from the client
  • Method Details

    • getElapsed

      public Duration getElapsed()
      Returns the elapsed time, as computed on the server when this method is called.
      Returns:
      the value of SimpleTimer.getElapsed()
    • getRemaining

      public Duration getRemaining()
      Returns the remaining time, as computed on the server when this method is called.
      Returns:
      the value of SimpleTimer.getRemaining()