Public Member Functions | |
DetailedOutputGridSetup (JDialog oParent, OutputBehaviors oOutput) throws ModelException | |
Constructor. | |
void | SaveAll () |
Causes all possible grids and grid members to be saved for the run. | |
void | actionPerformed (ActionEvent oEvent) |
Responds to button clicks. | |
Protected Member Functions | |
void | DoRemove () |
Removes the data members for a grid from the list of settings. | |
void | DoAdd () |
Adds the data members for a grid to the list of settings. | |
void | jbInit () throws Exception |
Creates the window. | |
void | LoadSettings () |
Loads the settings from output into this form's temp array for display. | |
void | UpdateSaves () |
Displays what's being saved in each save list based on what's in mp_oDetailedTreeSaveSettings. | |
Protected Attributes | |
OutputBehaviors | m_oOutputBehaviors |
OutputBehaviors object to exchange data with. | |
Vector | mp_oDetailedGridSaveSettings = new Vector(0) |
For detailed output - collection of DetailedGridSettings objects representing the temp settings that changes will be made to. | |
Grid[] | mp_oGridList |
List of grids to display. | |
Package Attributes | |
JComboBox | m_jGridListCombo = new JComboBox() |
Combo box for displaying grid list. | |
JButton | jAddButton = new JButton() |
Add button. | |
DefaultListModel | jDataMemberListModel = new DefaultListModel() |
List for data members. | |
DefaultListModel | jSaveListModel = new DefaultListModel() |
List for saving changes. | |
JTextField | jTimestepsEdit = new JTextField() |
For getting the timestep saving interval. | |
JList | jSavedList = new JList(jSaveListModel) |
List for saving changes. | |
GridBagLayout | gridBagLayout1 = new GridBagLayout() |
Window layout. | |
JButton | jRemoveButton = new JButton() |
Remove button. | |
JList | jDataMemberList = new JList(jDataMemberListModel) |
List of grid data members. | |
Private Attributes | |
String | m_sHelpID = "windows.detailed_output_grid_setup" |
Help ID string. |
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: Institute of Ecosystem Studies
|
Constructor. Builds the GUI.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Responds to button clicks.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Adds the data members for a grid to the list of settings.
|
|
Removes the data members for a grid from the list of settings.
|
|
Creates the window. Auto-generated except for tweaks by me.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Loads the settings from output into this form's temp array for display.
|
|
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.
|
|
Displays what's being saved in each save list based on what's in mp_oDetailedTreeSaveSettings.
|