|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JPanel
|
+--edu.princeton.toy.TStdoutPane
TStdoutPane is a JPanel which acts as an editor for the stdin of a TVirtualMachine.
| Nested Class Summary | |
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. |
protected static class |
TStdoutPane.ListModel
A customized implementation of ListModel meant specifically for displaying stdin. |
protected class |
TStdoutPane.Runner
The Runner of a TStdoutPane blinks the stderrTextArea when an error occurs. |
| Field Summary | |
static String |
CHANGE_HANDLER_COMMAND
The command to call up the Exception Handling pane of the TOptionsFrame. |
static String |
UPDATE_COMMAND
The command to update the contents of the inputList with the stdin stream of the virtualMachine. |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
TStdoutPane(TVirtualMachine virtualMachine,
Action saveStdoutAction)
Creates a new TStdoutPane. |
|
| Method Summary | |
boolean |
doCommand(String command,
Object extraInfo)
Performs a command based on the argument. |
TVirtualMachine |
getVirtualMachine()
Returns the virtualMachine attached to this TStdoutPane. |
void |
setVirtualMachine(TVirtualMachine virtualMachine)
Sets the virtualMachine attached to this TStdoutPane. |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String UPDATE_COMMAND
public static final String CHANGE_HANDLER_COMMAND
| Constructor Detail |
public TStdoutPane(TVirtualMachine virtualMachine,
Action saveStdoutAction)
| Method Detail |
public void setVirtualMachine(TVirtualMachine virtualMachine)
virtualMachine - The virtualMachine to be attached to this TStdoutPane.public TVirtualMachine getVirtualMachine()
public boolean doCommand(String command,
Object extraInfo)
command - A string representing the command. Note that pointer equality (not string
equality) is tested here, so it is important to use the string constants defined in this
class. An IllegalArgumentException will be thrown if the argument is invalid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||