|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.princeton.toy.TStdoutPane.Listener
protected class TStdoutPane.Listener
The Listener of a TStdoutPane pays attention to the changes in the virtualMachine and updates the components, it also stops the stderr text area from blinking if the user clicks on it and listens to action events from hyperlinks.
| Constructor Summary | |
|---|---|
protected |
TStdoutPane.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 stderrTextArea. |
void |
mouseEntered(MouseEvent e)
Implement MouseListener to stop the runner if the user clicks on the stderrTextArea. |
void |
mouseExited(MouseEvent e)
Implement MouseListener to stop the runner if the user clicks on the stderrTextArea. |
void |
mousePressed(MouseEvent e)
Implement MouseListener to stop the runner if the user clicks on the stderrTextArea. |
void |
mouseReleased(MouseEvent e)
Implement MouseListener to stop the runner if the user clicks on the stderrTextArea. |
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 TStdoutPane.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 | ||||||||