SORTIE Java Interface
1
|
Window used by the user to set up detailed output output options for dead trees. More...
Public Member Functions | |
DetailedOutputDeadTreeSetup (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 | createGUI () |
JPanel | createTreeTypePanel (int iType) |
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... | |
JTextField | m_jSeedlingTimestepsEdit = new JTextField() |
Edit box for entering how often to save. More... | |
JTextField | m_jSaplingTimestepsEdit = new JTextField() |
Edit box for entering how often to save. More... | |
JTextField | m_jAdultTimestepsEdit = new JTextField() |
Edit box for entering how often to save. More... | |
JTextField | m_jSnagTimestepsEdit = new JTextField() |
Edit box for entering how often to save. More... | |
DefaultListModel< DataMember > | m_jSeedlingDataMemberListModel |
List model for the seedling data member list. More... | |
DefaultListModel< DataMember > | m_jSaplingDataMemberListModel = new DefaultListModel<DataMember>() |
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... | |
DefaultListModel< String > | m_jDeadCodesListModel = new DefaultListModel<String>() |
List model for the dead reason codes list. More... | |
JList< DataMember > | m_jSeedlingDataMemberList = new JList<DataMember>(m_jSeedlingDataMemberListModel) |
Seedling data member list. More... | |
JList< String > | m_jSeedlingSpeciesList = new JList<String>(m_jSpeciesListModel) |
Seedling species list. More... | |
JList< String > | m_jSeedlingSaveList = new JList<String>(m_jSeedlingSaveListModel) |
Seedling save list. More... | |
JList< String > | m_jSaplingSpeciesList = new JList<String>(m_jSpeciesListModel) |
Sapling species list. More... | |
JList< String > | m_jSaplingSaveList = new JList<String>(m_jSaplingSaveListModel) |
Sapling save list. More... | |
JList< DataMember > | m_jSaplingDataMemberList = new JList<DataMember>(m_jSaplingDataMemberListModel) |
Sapling data member list. More... | |
JList< String > | m_jAdultSpeciesList = new JList<String>(m_jSpeciesListModel) |
Adult species list. More... | |
JList< String > | m_jAdultSaveList = new JList<String>(m_jAdultSaveListModel) |
Adult save list. More... | |
JList< DataMember > | m_jAdultDataMemberList = new JList<DataMember>(m_jAdultDataMemberListModel) |
Adult data member list. More... | |
JList< String > | m_jSnagSpeciesList = new JList<String>(m_jSpeciesListModel) |
Snag species list. More... | |
JList< String > | m_jSnagSaveList = new JList<String>(m_jSnagSaveListModel) |
Snag save list. More... | |
JList< DataMember > | m_jSnagDataMemberList = new JList<DataMember>(m_jSnagDataMemberListModel) |
Snag data member list. More... | |
JList< String > | m_jSeedlingDeadCodeList = new JList<String>(m_jDeadCodesListModel) |
Seedling dead code list. More... | |
JList< String > | m_jSaplingDeadCodeList = new JList<String>(m_jDeadCodesListModel) |
Sapling dead code list. More... | |
JList< String > | m_jAdultDeadCodeList = new JList<String>(m_jDeadCodesListModel) |
Adult dead code list. More... | |
JList< String > | m_jSnagDeadCodeList = new JList<String>(m_jDeadCodesListModel) |
Snag dead code list. More... | |
Window used by the user to set up detailed output output options for dead trees.
Copyright: Copyright (c) Charles D. Canham 2011
Company: Cary Institute of Ecosystem Studies
Edit history:
---------------—
December 8, 2011: Wiped the slate clean for version 7 (LEM)
sortie.gui.DetailedOutputDeadTreeSetup.DetailedOutputDeadTreeSetup | ( | JDialog | oParent, |
DetailedOutput | oOutput | ||
) |
Constructor.
oParent | Parent window in which to display this dialog. |
oOutput | DetailedOutput object. |
void sortie.gui.DetailedOutputDeadTreeSetup.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 |
|
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.DetailedOutputDeadTreeSetup.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 |
Adult data member list.
|
private |
List model for the adult data member list.
|
private |
Adult dead code list.
|
private |
Adult save list.
|
private |
List model for the adult saved data member list.
|
private |
Adult species list.
|
private |
Edit box for entering how often to save.
|
private |
List model for the dead reason codes list.
|
private |
Sapling data member list.
|
private |
List model for the sapling data member list.
|
private |
Sapling dead code list.
|
private |
Sapling save list.
|
private |
List model for the sapling saved data member list.
|
private |
Sapling species list.
|
private |
Edit box for entering how often to save.
|
private |
Seedling data member list.
|
private |
List model for the seedling data member list.
|
private |
Seedling dead code list.
|
private |
Seedling save list.
|
private |
List model for the seedling saved data member list.
|
private |
Seedling species list.
|
private |
Edit box for entering how often to save.
|
private |
Snag data member list.
|
private |
List model for the snag data member list.
|
private |
Snag dead code list.
|
private |
Snag save list.
|
private |
List model for the snag saved data member list.
|
private |
Snag species list.
|
private |
Edit box for entering how often to save.
|
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.