|
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, GUIManager oManager) throws ModelException | |
| Constructor. | |
| void | actionPerformed (ActionEvent e) |
| Controls actions for this window. | |
Protected Member Functions | |
| void | loadData () throws ModelException |
| Extracts data from the harvest interface behavior, making it ready for display. | |
| void | removeColumn () throws ModelException |
| Removes file columns from the list to add. | |
| void | columnUp () throws ModelException |
| Moves a selected column up one position in the list. | |
| void | columnDown () throws ModelException |
| Moves a selected column down one position in the list. | |
| void | addDataMember () throws ModelException |
| Adds a new data member, to be owned by this behavior. | |
| void | removeDataMember () throws ModelException |
| Removes a new data member. | |
| boolean | ok () throws ModelException |
| What happens when the OK button is clicked. | |
Protected Attributes | |
| MainWindow | m_oWindow |
| Main window. | |
| GUIManager | m_oManager |
| GUIManager object. | |
| ArrayList< SpeciesTypeCombo > | mp_oCombosCopy = new ArrayList<SpeciesTypeCombo>(0) |
| Copy of the behavior's species/type combos, so we can cancel edits if the user desires. | |
| JTextField | m_jExecutablePathEdit = new JTextField() |
| Field for capturing the executable's path and filename. | |
| JTextField | m_jSORTIEOutFileEdit = new JTextField() |
| Field for capturing the filename that SORTIE is to write. | |
| JTextField | m_jExecutableHarvestOutFileEdit = new JTextField() |
| Field for capturing the executable's harvest reply file. | |
| JTextField | m_jExecutableUpdateOutFileEdit = new JTextField() |
| Field for capturing the executable's update reply file. | |
| JTextField | m_jBatchParamsFileEdit = new JTextField() |
| Field for capturing the batch parameters file. | |
| JTextField | m_jBatchSingleRunParamsFileEdit = new JTextField() |
| Field for capturing the file for a single run of batch parameters. | |
| JTextField | m_jNewTreeDataMemberEdit = new JTextField() |
| Field for entering new tree data members. | |
| JTextField | m_jExecutableArgs = new JTextField() |
| Field for capturing argument strings to pass to the executable. | |
| JTextField | m_jHarvestPeriod = new JTextField() |
| Field for capturing the harvest period. | |
| JList< ComboDisplay > | m_jAssignedCombosList |
| The list displaying the assigned species/type combos for this behavior. | |
| JList< String > | m_jNewTreeDataMembersList |
| The list displaying the new tree data members for this behavior. | |
| JList< String > | m_jFileColumnsList |
| The list displaying the file columns. | |
| JList< String > | m_jSpecies |
| The list of species. | |
| JList< String > | m_jTypes |
| The list of types. | |
| DefaultListModel< ComboDisplay > | m_jAssignedCombosListModel = new DefaultListModel<ComboDisplay>() |
| The assigned species/type combos for this behavior. | |
| DefaultListModel< String > | m_jNewTreeDataMembersListModel = new DefaultListModel<String>() |
| The new tree data members for this behavior. | |
| DefaultListModel< String > | m_jFileColumnsListModel = new DefaultListModel<String>() |
| The file columns for the harvest files. | |
| Vector< String > | mp_sAllExistingDataMembers = new Vector<String>(0) |
| List of existing data members, so we can make sure any added have unique names. | |
Private Member Functions | |
| void | createGUI () |
| Creates the window. | |
| void | browse (JTextField jText) |
| Takes care of browsing. | |
Private Attributes | |
| String | m_sHelpID = "windows.edit_harvest_interface_window" |
| The ID of the help file for this window. | |
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.HarvestInterfaceSetup.HarvestInterfaceSetup | ( | JFrame | oParent, |
| GUIManager | oManager | ||
| ) | throws ModelException |
Constructor.
| oParent | JFrame Parent frame |
| oManager | GUIManager GUIManager object |
| ModelException | Passing through from called functions. |
| void sortie.gui.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 |
The list displaying the assigned species/type combos for this behavior.
|
protected |
The assigned species/type combos for this behavior.
|
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 |
The list of species.
|
protected |
The list of types.
|
protected |
GUIManager object.
|
protected |
Main window.
|
private |
The ID of the help file for this window.
|
protected |
Copy of the behavior's species/type combos, so we can cancel edits if the user desires.
|
protected |
List of existing data members, so we can make sure any added have unique names.
1.8.2