SORTIE Java Interface
1
|
Window the user uses to set up detailed output options for grids. More...
Public Member Functions | |
DetailedOutputGridSetup (JDialog oParent, DetailedOutput oOutput) throws ModelException | |
Constructor. More... | |
void | saveAll () |
Causes all possible grids and grid members to be saved for the run. More... | |
void | actionPerformed (ActionEvent oEvent) |
Responds to button clicks. More... | |
Public Attributes | |
SORTIEComboBox< String > | m_jGridListCombo = new SORTIEComboBox<String>() |
Combo box for displaying grid list. More... | |
JButton | m_jAddButton = new JButton() |
Add button. More... | |
DefaultListModel< String > | m_jDataMemberListModel = new DefaultListModel<String>() |
List for data members. More... | |
JList< String > | m_jDataMemberList = new JList<String>(m_jDataMemberListModel) |
List for data members. More... | |
JTextField | m_jTimestepsEdit = new JTextField() |
For getting the timestep saving interval. More... | |
Protected Member Functions | |
void | doRemove () |
Removes the data members for a grid from the list of settings. More... | |
void | doAdd () |
Adds the data members for a grid to the list of settings. 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... | |
Protected Attributes | |
DetailedOutput | m_oOutput |
OutputBehaviors object to exchange data with. More... | |
ArrayList< DetailedGridSettings > | mp_oDetailedGridSaveSettings = new ArrayList<DetailedGridSettings>(0) |
For detailed output - collection of DetailedGridSettings objects representing the temp settings that changes will be made to. More... | |
Grid [] | mp_oGridList |
List of grids to display. More... | |
Private Member Functions | |
void | createGUI () |
Creates the window. More... | |
Private Attributes | |
JList< String > | m_jSaveList = new JList<String>(m_jSaveListModel) |
List for saving changes. More... | |
String | m_sHelpID = "windows.detailed_output_grid_setup" |
Help ID string. More... | |
Window the user uses to set up detailed output options for grids.
A combo box displays a list of all grids set up by BehaviorTypeBase-descended objects. When the user chooses one of these grids, a list of all its data members and package data members appears so the user can choose what to save.
We have to have a way to tell the regular data members from the package data members. They are all displayed together, not in separate boxes; so we append a "(p)" flag to the beginning of package data member display names. A custom renderer splits it back off for display so the user doesn't see it; and it will also be split off before notifying the DetailedGridSettings object that it's been picked.
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.DetailedOutputGridSetup.DetailedOutputGridSetup | ( | JDialog | oParent, |
DetailedOutput | oOutput | ||
) | throws ModelException |
Constructor.
Builds the GUI.
oParent | Parent dialog in which to display this dialog. |
oOutput | OutputBehaviors object, to draw data from to display and to send changes to |
ModelException | passed through from underlying methods |
void sortie.gui.DetailedOutputGridSetup.actionPerformed | ( | ActionEvent | oEvent | ) |
Responds to button clicks.
oEvent | The event telling us what button was clicked. |
|
private |
Creates the window.
|
protected |
Adds the data members for a grid to the list of settings.
|
protected |
Removes the data members for a grid from the list of settings.
|
protected |
Loads the settings from output into this form's temp array for display.
void sortie.gui.DetailedOutputGridSetup.saveAll | ( | ) |
Causes all possible grids and grid 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. |
|
protected |
Displays what's being saved in each save list based on what's in mp_oDetailedTreeSaveSettings.
JButton sortie.gui.DetailedOutputGridSetup.m_jAddButton = new JButton() |
Add button.
JList<String> sortie.gui.DetailedOutputGridSetup.m_jDataMemberList = new JList<String>(m_jDataMemberListModel) |
List for data members.
DefaultListModel<String> sortie.gui.DetailedOutputGridSetup.m_jDataMemberListModel = new DefaultListModel<String>() |
List for data members.
SORTIEComboBox<String> sortie.gui.DetailedOutputGridSetup.m_jGridListCombo = new SORTIEComboBox<String>() |
Combo box for displaying grid list.
|
private |
List for saving changes.
JTextField sortie.gui.DetailedOutputGridSetup.m_jTimestepsEdit = new JTextField() |
For getting the timestep saving interval.
|
protected |
OutputBehaviors object to exchange data with.
|
private |
Help ID string.
|
protected |
For detailed output - collection of DetailedGridSettings objects representing the temp settings that changes will be made to.
|
protected |
List of grids to display.