sale.events
Class TimerAdapter
java.lang.Object
|
+--sale.events.TimerAdapter
- public abstract class TimerAdapter
- extends Object
- implements TimerListener, SerializableListener
An abstract adapter class for receiving timer events. The methods in this
class are empty. This class exists as convenience for creating listener objects.
Extend this class to create a TimerEvent listener and override the methods
for the events of interest. (If you implement the TimerListener interface, you
have to define all of the methods in it. This abstract class defines empty method bodies for
them all, so you can concentrate on defining methods only for events you care about.)
Create a listener object using the extended class and then register it with a
Timer using the Timer's Timer.addTimerListener(sale.events.TimerListener)
method. When a timer event occurs, the relevant
method in the listener object is invoked, and a TimerEvent
is passed to it.
- Since:
- v2.0
- Version:
- 2.0 18/08/1999
- Author:
- Steffen Zschaler
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
TimerAdapter
public TimerAdapter()
onTimeSet
public void onTimeSet(TimerEvent tevtEvent)
- Invoked when the time has been set.
- Override:
- Sometimes.
- Specified by:
- onTimeSet in interface TimerListener
- Parameters:
tevtEvent
- the TimerEvent to process
onIntervalSet
public void onIntervalSet(TimerEvent tevtEvent)
- Invoked when the interval has been set.
- Override:
- Sometimes.
- Specified by:
- onIntervalSet in interface TimerListener
- Parameters:
tevtEvent
- the TimerEvent to process
onGoneAhead
public void onGoneAhead(TimerEvent tevtEvent)
- Invoked when the time has been increased.
- Override:
- Sometimes.
- Specified by:
- onGoneAhead in interface TimerListener
- Parameters:
tevtEvent
- the TimerEvent to process