|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.AbstractAction | +--pop.gui.AbstractStep
Abstract ancestor of all actions. Provides various generic tools for them. These subclasses must implement the required actionPerformed() also.
Inner Class Summary | |
protected class |
AbstractStep.StepFrame
Used by subclasses to simplify their own frames. |
protected class |
AbstractStep.StepTableModel
Adequate table model for most of the subclasses; mostly taken from TableEditDemo.java, http://java.sun.com/docs/books/tutorial. |
Field Summary | |
protected java.lang.String |
input_filename
|
protected static ActionManager |
manager
|
protected static java.lang.String |
user_directory
|
Fields inherited from class javax.swing.AbstractAction |
changeSupport,
enabled |
Constructor Summary | |
AbstractStep(java.lang.String s)
Simply invokes parent constructor |
Method Summary | |
protected boolean |
choose_input_file(java.lang.String filetype,
javax.swing.filechooser.FileFilter filter)
Utility for choosing a filename. |
void |
clear_done()
Resets an action's name to indicate not completed. |
protected int |
confirm(java.awt.Container container,
java.lang.Object[][] data)
Utility for dialog to confirm data entry. |
protected boolean |
has_manager()
A way for subclasses to check manager available. |
protected void |
inform(java.lang.Object information)
Displays information dialog to user. |
static void |
set_manager(ActionManager m)
Assigns the Manager that actions can ask to things like displaying their internal frames. |
protected void |
setUpIntegerEditor(javax.swing.JTable table)
Used to set default table editor for whole numbers. |
void |
show_done()
Resets an action's name to indicate completion. |
protected javax.swing.text.SimpleAttributeSet |
timesRoman()
Utility for TimesRoman attribute set. |
Methods inherited from class javax.swing.AbstractAction |
actionPerformed,
addPropertyChangeListener,
clone,
firePropertyChange,
getValue,
isEnabled,
putValue,
removePropertyChangeListener,
setEnabled |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected static ActionManager manager
protected static java.lang.String user_directory
protected java.lang.String input_filename
Constructor Detail |
public AbstractStep(java.lang.String s)
Method Detail |
public static void set_manager(ActionManager m)
protected boolean has_manager()
protected void setUpIntegerEditor(javax.swing.JTable table)
public void show_done()
public void clear_done()
protected boolean choose_input_file(java.lang.String filetype, javax.swing.filechooser.FileFilter filter)
protected void inform(java.lang.Object information)
protected javax.swing.text.SimpleAttributeSet timesRoman()
protected int confirm(java.awt.Container container, java.lang.Object[][] data)
data
- - TableModel with two columns:
(1) Variable ID;
(2) Variable Value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |