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
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 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 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 |
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.
DataAction
public DataAction(java.lang.String s)
- Passes the action's name to the superclass constructor,
and insures the data action begins disabled.
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.