Class Controller.StepButtonHandler

java.lang.Object
  |
  +--Controller.StepButtonHandler
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener
Enclosing class:
Controller

class Controller.StepButtonHandler
extends java.lang.Object
implements java.awt.event.ActionListener

Inner class for handling the Step button.


Constructor Summary
(package private) Controller.StepButtonHandler()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Handles the Step button.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Controller.StepButtonHandler

Controller.StepButtonHandler()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Handles the Step button. If the animation is running, the Step button just halts it (by setting the programIsRunning flag to false); otherwise, the rabbit hunt is advanced one step. While single stepping, all buttons except the Stop button should be enabled.
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - the Event that invoked this handler (ignored).


Generated by BlueJ