Class TimerEvent


  • public class TimerEvent
    extends Event
    TimerEvent represents a control's timer. Timers are created and destroyed using the addTimer() and removeTimer() methods present in the Control class.
    • Field Detail

      • TRIGGERED

        public static final int TRIGGERED
        The event type for a triggered timer
        See Also:
        Constant Field Values
      • millis

        public int millis
        The timer interval in milliseconds.
      • lastTick

        public int lastTick
        The timestamp of the last tick.
      • next

        public TimerEvent next
        The next timer in the linked list.
      • triggered

        public boolean triggered
        a flag set when the timer event is being posted. With it, you can test from various timers to the same target control when one of them is dispatched.
    • Constructor Detail

      • TimerEvent

        public TimerEvent()
        Constructs a new TimerEvent, setting the type to TRIGGERED.
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Event
      • postpone

        public void postpone()