|
||||||||||
| 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
|
+--java.awt.Window
|
+--java.awt.Dialog
|
+--javax.swing.JDialog
|
+--edu.princeton.toy.TExampleDialog
| Field Summary | |
static String |
CANCEL_COMMAND
|
static int |
DESCRIPTION_ROWS
The maximum number of rows of the text which will be shown by the description. |
static String |
OPEN_COMMAND
|
static int |
TITLE_ROWS
The number of rows titles which will be shown by the title selection. |
static String |
UPDATE_COMMAND
|
| Fields inherited from class javax.swing.JDialog |
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Method Summary | |
void |
actionPerformed(ActionEvent e)
Implement ActionListener to pass the command onto doCommand(). |
protected void |
dialogInit()
Called by the constructors to init the JDialog properly. |
void |
dispose()
Override dispose() to also unregister the program text area. |
boolean |
doCommand(String command,
Object extraInfo)
Performs a command based on the argument. |
static String[] |
showExampleDialog(Window parent)
Shows a TExampleDialog and returns the text of the selected examples. |
void |
valueChanged(ListSelectionEvent e)
Implement ListSelectionListener to pass an update command onto doCommand(). |
| Methods inherited from class java.awt.Dialog |
addNotify, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int TITLE_ROWS
public static final int DESCRIPTION_ROWS
public static final String OPEN_COMMAND
public static final String CANCEL_COMMAND
public static final String UPDATE_COMMAND
| Method Detail |
protected void dialogInit()
dialogInit in class JDialogpublic void dispose()
dispose in class Dialogpublic static String[] showExampleDialog(Window parent)
public boolean doCommand(String command,
Object extraInfo)
command - An object 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.extraInfo - Any extra information necessary.
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerdoCommand(String, Object)public void valueChanged(ListSelectionEvent e)
valueChanged in interface ListSelectionListenerdoCommand(String, Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||