pop.gui
Class AbstractStep

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--pop.gui.AbstractStep
Direct Known Subclasses:
DataAction, DetailedAction, LoadAction, RunAction, SaveAction, SetupAction, SummaryAction

public abstract class AbstractStep
extends javax.swing.AbstractAction

Abstract ancestor of all actions. Provides various generic tools for them. These subclasses must implement the required actionPerformed() also.

See Also:
Serialized Form

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

manager

protected static ActionManager manager

user_directory

protected static java.lang.String user_directory

input_filename

protected java.lang.String input_filename
Constructor Detail

AbstractStep

public AbstractStep(java.lang.String s)
Simply invokes parent constructor
Method Detail

set_manager

public static void set_manager(ActionManager m)
Assigns the Manager that actions can ask to things like displaying their internal frames. Maintains a static variable, so it just has to be invoked once to apply to all actions. BUT ... it must be invoked at least once.

has_manager

protected boolean has_manager()
A way for subclasses to check manager available.

setUpIntegerEditor

protected void setUpIntegerEditor(javax.swing.JTable table)
Used to set default table editor for whole numbers. From TableEditDemo.java, http://java.sun.com/docs/books/tutorial.

show_done

public void show_done()
Resets an action's name to indicate completion.

clear_done

public void clear_done()
Resets an action's name to indicate not completed.

choose_input_file

protected boolean choose_input_file(java.lang.String filetype,
                                    javax.swing.filechooser.FileFilter filter)
Utility for choosing a filename.

inform

protected void inform(java.lang.Object information)
Displays information dialog to user.

timesRoman

protected javax.swing.text.SimpleAttributeSet timesRoman()
Utility for TimesRoman attribute set.

confirm

protected int confirm(java.awt.Container container,
                      java.lang.Object[][] data)
Utility for dialog to confirm data entry.
Parameters:
data - - TableModel with two columns: (1) Variable ID; (2) Variable Value.