|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sale.events.TimerAdapter
public abstract class TimerAdapter
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.
Constructor Summary | |
---|---|
TimerAdapter()
|
Method Summary | |
---|---|
void |
onGoneAhead(TimerEvent tevtEvent)
Invoked when the time has been increased. |
void |
onIntervalSet(TimerEvent tevtEvent)
Invoked when the interval has been set. |
void |
onTimeSet(TimerEvent tevtEvent)
Invoked when the time has been set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimerAdapter()
Method Detail |
---|
public void onTimeSet(TimerEvent tevtEvent)
onTimeSet
in interface TimerListener
tevtEvent
- the TimerEvent to processpublic void onIntervalSet(TimerEvent tevtEvent)
onIntervalSet
in interface TimerListener
tevtEvent
- the TimerEvent to processpublic void onGoneAhead(TimerEvent tevtEvent)
onGoneAhead
in interface TimerListener
tevtEvent
- the TimerEvent to process
|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |