pop.gui
Class DataAction

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--pop.gui.AbstractStep
              |
              +--pop.gui.DataAction
Direct Known Subclasses:
FertilityAction, MigrationAction, MortalityAction, PopulationAction

public abstract class DataAction
extends AbstractStep

Ancestor of the four types of data entry/edit/retrieval actions.

See Also:
Serialized Form

Inner Class Summary
 class DataAction.DataFileFilter
          A filter for .dat and .txt files.
 
Inner classes inherited from class pop.gui.AbstractStep
AbstractStep.StepFrame, AbstractStep.StepTableModel
 
Field Summary
static int FILE_DATA
          Identifies user choice to enter data from a file.
static int INTERACTIVE_DATA
          Identifies user choice to enter data interactively.
 
Fields inherited from class pop.gui.AbstractStep
input_filename, manager, user_directory
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Constructor Summary
DataAction(java.lang.String s)
          Passes the action's name to the superclass constructor, and insures the data action begins disabled.
 
Method Summary
protected  boolean choose_input_file(java.lang.String filetype)
          Chooses an input data file.
abstract  boolean got_file()
          True if the user has asked for a file to be opened.
 java.lang.String input_filename()
          Returns the input filename if it exists.
protected  int input_type()
          Utility for asking user what kind of data input will occur.
 
Methods inherited from class pop.gui.AbstractStep
choose_input_file, clear_done, confirm, has_manager, inform, set_manager, setUpIntegerEditor, show_done, timesRoman
 
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

FILE_DATA

public static final int FILE_DATA
Identifies user choice to enter data from a file.

INTERACTIVE_DATA

public static final int INTERACTIVE_DATA
Identifies user choice to enter data interactively.
Constructor Detail

DataAction

public DataAction(java.lang.String s)
Passes the action's name to the superclass constructor, and insures the data action begins disabled.
Method Detail

got_file

public abstract boolean got_file()
True if the user has asked for a file to be opened.

input_filename

public java.lang.String input_filename()
Returns the input filename if it exists.

choose_input_file

protected boolean choose_input_file(java.lang.String filetype)
Chooses an input data file.

input_type

protected int input_type()
Utility for asking user what kind of data input will occur.