Class Controller.StopButtonHandler

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

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

Inner class for handling the Stop button.


Constructor Summary
(package private) Controller.StopButtonHandler()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Sets the programIsRunning flag to false, thus causing run() to end the Thread doing the animation.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Controller.StopButtonHandler

Controller.StopButtonHandler()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Sets the programIsRunning flag to false, thus causing run() to end the Thread doing the animation. While the animation is stopped, 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