|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.princeton.toy.TStdinPane.Listener
protected class TStdinPane.Listener
The Listener of a TStdoutPane pays attention to the changes in the virtualMachine and updates the components, it also stops the stdin text field from blinking if the user clicks on it and listens to action events from JButtons and PTextFields.
| Constructor Summary | |
|---|---|
protected |
TStdinPane.Listener()
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Implement ActionListener to pass commands to the doCommand() method. |
void |
mouseClicked(MouseEvent e)
Implement MouseListener to stop the runner if the user clicks on the inputField. |
void |
mouseEntered(MouseEvent e)
Implement MouseListener to stop the runner if the user clicks on the inputField. |
void |
mouseExited(MouseEvent e)
Implement MouseListener to stop the runner if the user clicks on the inputField. |
void |
mousePressed(MouseEvent e)
Implement MouseListener to stop the runner if the user clicks on the inputField. |
void |
mouseReleased(MouseEvent e)
Implement MouseListener to stop the runner if the user clicks on the inputField. |
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 |
|---|
protected TStdinPane.Listener()
| Method Detail |
|---|
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void stateChanged(ChangeEvent e)
stateChanged in interface ChangeListenerpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||