SORTIE Java Interface
1
|
Window used by the user to set up detailed output tree output options. More...
Public Member Functions | |
DetailedOutputTreeSetup (JDialog oParent, DetailedOutput oOutput) | |
Constructor. More... | |
void | saveAll () throws ModelException |
Causes all possible tree data members to be saved for the run. More... | |
void | actionPerformed (ActionEvent oEvent) |
Performs the actions of the window. More... | |
Private Member Functions | |
void | collectTreeDataMembers (TreePopulation oPop) throws ModelException |
Collects together the tree data members that will be displayed. More... | |
void | saveData () throws ModelException |
Saves the settings collected by this window to the OutputBehaviors object. More... | |
void | loadSettings () |
Loads the settings from output into this form's temp array for display. More... | |
void | updateSaves () |
Displays what's being saved in each save list based on what's in mp_oDetailedTreeSaveSettings. More... | |
void | jbInit () throws Exception |
Builds GUI. More... | |
void | addButtonActionPerformed (int iType) throws ModelException |
Serves as the common function for adding settings entered when the user clicks an "Add" button. More... | |
void | removeButtonActionPerformed (int iType) |
Serves as the common function for removing settings entered when the user clicks a "Remove" button. More... | |
Private Attributes | |
DetailedOutput | m_oOutput |
For exchanging data with. More... | |
ArrayList< DetailedTreeSettings > | mp_oDetailedTreeSaveSettings = new ArrayList<DetailedTreeSettings>(0) |
Temp collection of settings - vector of DetailedTreeSettings objects. More... | |
String | m_sHelpID = "windows.detailed_output_tree_setup" |
The help ID for this window. More... | |
boolean [][] | mp_bSeedlingDataMembersBySpecies |
For each seedling data member, whether it's used by a particular species. More... | |
boolean [][] | mp_bSaplingDataMembersBySpecies |
For each sapling data member, whether it's used by a particular species. More... | |
boolean [][] | mp_bAdultDataMembersBySpecies |
For each adult data member, whether it's used by a particular species. More... | |
boolean [][] | mp_bSnagDataMembersBySpecies |
For each snag data member, whether it's used by a particular species. More... | |
boolean | m_bIsSnagAware = false |
Whether or not this run is snag-aware and any snags should be saved. More... | |
DefaultListModel< DataMember > | m_jSeedlingDataMemberListModel |
List model for the seedling data member list. More... | |
DefaultListModel< DataMember > | m_jSaplingDataMemberListModel |
List model for the sapling data member list. More... | |
DefaultListModel< DataMember > | m_jAdultDataMemberListModel = new DefaultListModel<DataMember>() |
List model for the adult data member list. More... | |
DefaultListModel< DataMember > | m_jSnagDataMemberListModel = new DefaultListModel<DataMember>() |
List model for the snag data member list. More... | |
DefaultListModel< String > | m_jSpeciesListModel = new DefaultListModel<String>() |
List model for the species list. More... | |
DefaultListModel< String > | m_jSeedlingSaveListModel = new DefaultListModel<String>() |
List model for the seedling saved data member list. More... | |
DefaultListModel< String > | m_jSaplingSaveListModel = new DefaultListModel<String>() |
List model for the sapling saved data member list. More... | |
DefaultListModel< String > | m_jAdultSaveListModel = new DefaultListModel<String>() |
List model for the adult saved data member list. More... | |
DefaultListModel< String > | m_jSnagSaveListModel = new DefaultListModel<String>() |
List model for the snag saved data member list. More... | |
Window used by the user to set up detailed output tree output options.
Copyright: Copyright (c) Charles D. Canham 2003
Company: Cary Institute of Ecosystem Studies
Edit history:
---------------—
December 8, 2011: Wiped the slate clean for version 7 (LEM)
sortie.gui.DetailedOutputTreeSetup.DetailedOutputTreeSetup | ( | JDialog | oParent, |
DetailedOutput | oOutput | ||
) |
Constructor.
oParent | Parent window in which to display this dialog. |
oOutput | Output object. |
void sortie.gui.DetailedOutputTreeSetup.actionPerformed | ( | ActionEvent | oEvent | ) |
Performs the actions of the window.
oEvent | ActionEvent object. |
|
private |
Serves as the common function for adding settings entered when the user clicks an "Add" button.
iType | The tree type (TreePopulation.SEEDLING, TreePopulation.SAPLING, TreePopulation.ADULT, or TreePopulation.SNAG) that is firing the button. |
ModelException | if the run is not snag-aware but someone is trying to save snag settings. |
|
private |
Collects together the tree data members that will be displayed.
oPop | Tree population object. |
ModelException | passed through from called functions. Should never be thrown. |
|
private |
Builds GUI.
java.lang.Exception | if there's a problem. |
|
private |
Loads the settings from output into this form's temp array for display.
|
private |
Serves as the common function for removing settings entered when the user clicks a "Remove" button.
iType | The tree type (TreePopulation.SEEDLING, TreePopulation.SAPLING, TreePopulation.ADULT, or TreePopulation.SNAG) that is firing the button. |
void sortie.gui.DetailedOutputTreeSetup.saveAll | ( | ) | throws ModelException |
Causes all possible tree data members to be saved for the run.
This can be called without the window's being visible. Its results are immediately applied to the output behavior - so this is not subject to a Cancel button.
ModelException | passed through from called methods. |
|
private |
Saves the settings collected by this window to the OutputBehaviors object.
ModelException | passed through from called methods. |
|
private |
Displays what's being saved in each save list based on what's in mp_oDetailedTreeSaveSettings.
|
private |
Whether or not this run is snag-aware and any snags should be saved.
|
private |
List model for the adult data member list.
|
private |
List model for the adult saved data member list.
|
private |
List model for the sapling data member list.
|
private |
List model for the sapling saved data member list.
|
private |
List model for the seedling data member list.
|
private |
List model for the seedling saved data member list.
|
private |
List model for the snag data member list.
|
private |
List model for the snag saved data member list.
|
private |
List model for the species list.
|
private |
For exchanging data with.
|
private |
The help ID for this window.
|
private |
For each adult data member, whether it's used by a particular species.
Array is sized number of adult data members by number of species.
|
private |
For each sapling data member, whether it's used by a particular species.
Array is sized number of sapling data members by number of species.
|
private |
For each seedling data member, whether it's used by a particular species.
Array is sized number of seedling data members by number of species.
|
private |
For each snag data member, whether it's used by a particular species.
Array is sized number of snag data members by number of species.
|
private |
Temp collection of settings - vector of DetailedTreeSettings objects.