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

public static class SimpleTimer.TimerEndedEvent extends ComponentEvent<SimpleTimer>
Event fired when the timer reaches its limit.
See Also:
  • Constructor Details

    • TimerEndedEvent

      public TimerEndedEvent(SimpleTimer source, boolean fromClient)
      Creates a new event.
      Parameters:
      source - the timer that reached its limit
      fromClient - whether the event originated from the client
    • TimerEndedEvent

      public TimerEndedEvent(SimpleTimer source, boolean fromClient, boolean retroactive)
      Creates a new event.
      Parameters:
      source - the timer that reached its limit
      fromClient - whether the event originated from the client
      retroactive - 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:
      true if the event is fired after the fact