Package com.macrofocus.timer
Class PostponingTimer
- java.lang.Object
-
- com.macrofocus.timer.PostponingTimer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.macrofocus.timer.Timer
Timer.TimerListener
-
-
Constructor Summary
Constructors Constructor Description PostponingTimer(int delay)
PostponingTimer(int delay, Timer.TimerListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addActionListener(Timer.TimerListener listener)
boolean
isScheduled()
void
removeActionListener(Timer.TimerListener listener)
void
restart()
void
run()
void
stop()
java.lang.String
toString()
-
-
-
Constructor Detail
-
PostponingTimer
public PostponingTimer(int delay)
-
PostponingTimer
public PostponingTimer(int delay, Timer.TimerListener listener)
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
addActionListener
public void addActionListener(Timer.TimerListener listener)
- Specified by:
addActionListener
in interfaceTimer
-
removeActionListener
public void removeActionListener(Timer.TimerListener listener)
- Specified by:
removeActionListener
in interfaceTimer
-
isScheduled
public boolean isScheduled()
- Specified by:
isScheduled
in interfaceTimer
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-