edu.princeton.toy
protected class TSimMachinePane.Listener extends java.lang.Object implements java.awt.event.ActionListener, javax.swing.event.ChangeListener, java.beans.PropertyChangeListener
Modifier | Constructor and Description |
---|---|
protected |
TSimMachinePane.Listener() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Implement ActionListener to listen for actions on the switches.
|
void |
propertyChange(java.beans.PropertyChangeEvent e)
Implement PropertyChangeListener to update the state of the buttons whenever the
action's state changes.
|
void |
stateChanged(javax.swing.event.ChangeEvent e)
Implement ChangeListener to update the list whenever the virtual machine's state changes.
|
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener