SORTIE Java Interface
1
|
This is a window allowing setup of the Harvest Interface behavior. More...
Classes | |
class | FileColumnsChooser |
Dialog for choosing new file columns. More... | |
Public Member Functions | |
HarvestInterfaceSetup (JFrame oParent, HarvestInterface oBeh) throws ModelException | |
Constructor. More... | |
void | actionPerformed (ActionEvent e) |
Controls actions for this window. More... | |
Protected Member Functions | |
void | loadData () throws ModelException |
Extracts data from the harvest interface behavior, making it ready for display. More... | |
void | removeColumn () throws ModelException |
Removes file columns from the list to add. More... | |
void | columnUp () throws ModelException |
Moves a selected column up one position in the list. More... | |
void | columnDown () throws ModelException |
Moves a selected column down one position in the list. More... | |
void | addDataMember () throws ModelException |
Adds a new data member, to be owned by this behavior. More... | |
void | removeDataMember () throws ModelException |
Removes a new data member. More... | |
boolean | ok () throws ModelException |
What happens when the OK button is clicked. More... | |
Protected Attributes | |
HarvestInterface | m_oBehavior |
HarvestInterface object. More... | |
JTextField | m_jExecutablePathEdit = new JTextField() |
Field for capturing the executable's path and filename. More... | |
JTextField | m_jSORTIEOutFileEdit = new JTextField() |
Field for capturing the filename that SORTIE is to write. More... | |
JTextField | m_jExecutableHarvestOutFileEdit = new JTextField() |
Field for capturing the executable's harvest reply file. More... | |
JTextField | m_jExecutableUpdateOutFileEdit = new JTextField() |
Field for capturing the executable's update reply file. More... | |
JTextField | m_jBatchParamsFileEdit = new JTextField() |
Field for capturing the batch parameters file. More... | |
JTextField | m_jBatchSingleRunParamsFileEdit = new JTextField() |
Field for capturing the file for a single run of batch parameters. More... | |
JTextField | m_jNewTreeDataMemberEdit = new JTextField() |
Field for entering new tree data members. More... | |
JTextField | m_jExecutableArgs = new JTextField() |
Field for capturing argument strings to pass to the executable. More... | |
JTextField | m_jHarvestPeriod = new JTextField() |
Field for capturing the harvest period. More... | |
JList< String > | m_jNewTreeDataMembersList |
The list displaying the new tree data members for this behavior. More... | |
JList< String > | m_jFileColumnsList |
The list displaying the file columns. More... | |
DefaultListModel< String > | m_jNewTreeDataMembersListModel = new DefaultListModel<String>() |
The new tree data members for this behavior. More... | |
DefaultListModel< String > | m_jFileColumnsListModel = new DefaultListModel<String>() |
The file columns for the harvest files. More... | |
ArrayList< String > | mp_sAllExistingDataMembers = new ArrayList<String>(0) |
List of existing data members, so we can make sure any added have unique names. More... | |
Private Member Functions | |
void | createGUI () |
Creates the window. More... | |
void | browse (JTextField jText) |
Takes care of browsing. More... | |
Private Attributes | |
String | m_sHelpID = "windows.edit_harvest_interface_window" |
The ID of the help file for this window. More... | |
This is a window allowing setup of the Harvest Interface behavior.
Copyright: Copyright (c) Charles D. Canham 2003
Company: Cary Institute of Ecosystem Studies
sortie.gui.behaviorsetup.HarvestInterfaceSetup.HarvestInterfaceSetup | ( | JFrame | oParent, |
HarvestInterface | oBeh | ||
) | throws ModelException |
Constructor.
oParent | JFrame Parent frame |
oBeh | HarvestInterface object to set up for. |
ModelException | Passing through from called functions. |
void sortie.gui.behaviorsetup.HarvestInterfaceSetup.actionPerformed | ( | ActionEvent | e | ) |
Controls actions for this window.
e | ActionEvent. |
|
protected |
Adds a new data member, to be owned by this behavior.
ModelException | if:
|
|
private |
Takes care of browsing.
jText | JTextField The file field to browse for |
|
protected |
Moves a selected column down one position in the list.
ModelException | if the request is to move a default column. |
|
protected |
Moves a selected column up one position in the list.
ModelException | if the user has tried to disturb the default columns. |
|
private |
Creates the window.
|
protected |
Extracts data from the harvest interface behavior, making it ready for display.
ModelException | Passing through from other called functions. |
|
protected |
What happens when the OK button is clicked.
The data is validated and passed to the DisturbanceBehaviors object as needed.
ModelException | if:
|
|
protected |
Removes file columns from the list to add.
ModelException | if a column is not selected, or if the user tries to remove a default column from the list. |
|
protected |
Removes a new data member.
ModelException | if there is not a data member selected. |
|
protected |
Field for capturing the batch parameters file.
|
protected |
Field for capturing the file for a single run of batch parameters.
|
protected |
Field for capturing argument strings to pass to the executable.
|
protected |
Field for capturing the executable's harvest reply file.
|
protected |
Field for capturing the executable's path and filename.
|
protected |
Field for capturing the executable's update reply file.
|
protected |
The list displaying the file columns.
|
protected |
The file columns for the harvest files.
|
protected |
Field for capturing the harvest period.
|
protected |
Field for entering new tree data members.
|
protected |
The list displaying the new tree data members for this behavior.
|
protected |
The new tree data members for this behavior.
|
protected |
Field for capturing the filename that SORTIE is to write.
|
protected |
HarvestInterface object.
|
private |
The ID of the help file for this window.
|
protected |
List of existing data members, so we can make sure any added have unique names.