edu.princeton.toy
Class TSimMachinePane.Listener

java.lang.Object
  extended by edu.princeton.toy.TSimMachinePane.Listener
All Implemented Interfaces:
ActionListener, PropertyChangeListener, EventListener, ChangeListener
Enclosing class:
TSimMachinePane

protected class TSimMachinePane.Listener
extends Object
implements ActionListener, ChangeListener, PropertyChangeListener

The Listener of a TBaseConverterPane pays attention to the changes in the PTextFields, and fires off changes to the other PTextFields.


Constructor Summary
protected TSimMachinePane.Listener()
           
 
Method Summary
 void actionPerformed(ActionEvent e)
          Implement ActionListener to listen for actions on the switches.
 void propertyChange(PropertyChangeEvent e)
          Implement PropertyChangeListener to update the state of the buttons whenever the action's state changes.
 void stateChanged(ChangeEvent e)
          Implement ChangeListener to update the list whenever the virtual machine's state changes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TSimMachinePane.Listener

protected TSimMachinePane.Listener()
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Implement ActionListener to listen for actions on the switches.

Specified by:
actionPerformed in interface ActionListener

stateChanged

public void stateChanged(ChangeEvent e)
Implement ChangeListener to update the list whenever the virtual machine's state changes.

Specified by:
stateChanged in interface ChangeListener

propertyChange

public void propertyChange(PropertyChangeEvent e)
Implement PropertyChangeListener to update the state of the buttons whenever the action's state changes.

Specified by:
propertyChange in interface PropertyChangeListener