Class TimerListener

This interface is implemented by classes that should receive timer events.

Methods


timer event <Timer caller>

Called when the timer expires.

Parameters

Example

main
  // Construct and run an origo application.
  system.run application new MyApplication

class MyApplication extends Application implements TimerListener

  MyApplication
    // Construct and start timer.
    Timer t = new Timer listener this start true

  timer event <Timer caller>
    print "Timer expired"