SalesPoint v3.3 API

sale.events
Class TimerAdapter

java.lang.Object
  extended by sale.events.TimerAdapter
All Implemented Interfaces:
Serializable, EventListener, TimerListener, SerializableListener

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
Author:
Steffen Zschaler
See Also:
Serialized Form

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

TimerAdapter

public TimerAdapter()
Method Detail

onTimeSet

public void onTimeSet(TimerEvent tevtEvent)
Invoked when the time has been set.

Specified by:
onTimeSet in interface TimerListener
Parameters:
tevtEvent - the TimerEvent to process
Override:
Sometimes

onIntervalSet

public void onIntervalSet(TimerEvent tevtEvent)
Invoked when the interval has been set.

Specified by:
onIntervalSet in interface TimerListener
Parameters:
tevtEvent - the TimerEvent to process
Override:
Sometimes

onGoneAhead

public void onGoneAhead(TimerEvent tevtEvent)
Invoked when the time has been increased.

Specified by:
onGoneAhead in interface TimerListener
Parameters:
tevtEvent - the TimerEvent to process
Override:
Sometimes

SalesPoint v3.3 API