Package com.macrofocus.timer
Class AbstractTimer
- java.lang.Object
-
- com.macrofocus.timer.AbstractTimer
-
- All Implemented Interfaces:
Timer
,java.lang.Runnable
- Direct Known Subclasses:
CoalescingTimer
,ImmediateTimer
public abstract class AbstractTimer extends java.lang.Object implements Timer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.macrofocus.timer.Timer
Timer.TimerListener
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<Timer.TimerListener>
actionListeners
-
Constructor Summary
Constructors Constructor Description AbstractTimer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addActionListener(Timer.TimerListener listener)
protected void
fireTimerTriggered()
void
removeActionListener(Timer.TimerListener listener)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.macrofocus.timer.Timer
isScheduled, restart, stop
-
-
-
-
Field Detail
-
actionListeners
protected final java.util.List<Timer.TimerListener> actionListeners
-
-
Method Detail
-
addActionListener
public void addActionListener(Timer.TimerListener listener)
- Specified by:
addActionListener
in interfaceTimer
-
removeActionListener
public void removeActionListener(Timer.TimerListener listener)
- Specified by:
removeActionListener
in interfaceTimer
-
fireTimerTriggered
protected void fireTimerTriggered()
-
-