SORTIE Java Interface  1
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
sortie.gui.DetailedOutputGridSetup Class Reference

Window the user uses to set up detailed output options for grids. More...

Inheritance diagram for sortie.gui.DetailedOutputGridSetup:

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< DetailedGridSettingsmp_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...
 

Detailed Description

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

Author
Lora E. Murphy
Version
1.0


Edit history:
---------------—
December 8, 2011: Wiped the slate clean for version 7 (LEM)

Constructor & Destructor Documentation

◆ DetailedOutputGridSetup()

sortie.gui.DetailedOutputGridSetup.DetailedOutputGridSetup ( JDialog  oParent,
DetailedOutput  oOutput 
) throws ModelException

Constructor.

Builds the GUI.

Parameters
oParentParent dialog in which to display this dialog.
oOutputOutputBehaviors object, to draw data from to display and to send changes to
Exceptions
ModelExceptionpassed through from underlying methods

Member Function Documentation

◆ actionPerformed()

void sortie.gui.DetailedOutputGridSetup.actionPerformed ( ActionEvent  oEvent)

Responds to button clicks.

Parameters
oEventThe event telling us what button was clicked.

◆ createGUI()

void sortie.gui.DetailedOutputGridSetup.createGUI ( )
private

Creates the window.

◆ doAdd()

void sortie.gui.DetailedOutputGridSetup.doAdd ( )
protected

Adds the data members for a grid to the list of settings.

◆ doRemove()

void sortie.gui.DetailedOutputGridSetup.doRemove ( )
protected

Removes the data members for a grid from the list of settings.

◆ loadSettings()

void sortie.gui.DetailedOutputGridSetup.loadSettings ( )
protected

Loads the settings from output into this form's temp array for display.

◆ saveAll()

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.

Exceptions
ModelExceptionpassed through from called methods.

◆ updateSaves()

void sortie.gui.DetailedOutputGridSetup.updateSaves ( )
protected

Displays what's being saved in each save list based on what's in mp_oDetailedTreeSaveSettings.

Member Data Documentation

◆ m_jAddButton

JButton sortie.gui.DetailedOutputGridSetup.m_jAddButton = new JButton()

Add button.

◆ m_jDataMemberList

JList<String> sortie.gui.DetailedOutputGridSetup.m_jDataMemberList = new JList<String>(m_jDataMemberListModel)

List for data members.

◆ m_jDataMemberListModel

DefaultListModel<String> sortie.gui.DetailedOutputGridSetup.m_jDataMemberListModel = new DefaultListModel<String>()

List for data members.

◆ m_jGridListCombo

SORTIEComboBox<String> sortie.gui.DetailedOutputGridSetup.m_jGridListCombo = new SORTIEComboBox<String>()

Combo box for displaying grid list.

◆ m_jSaveList

JList<String> sortie.gui.DetailedOutputGridSetup.m_jSaveList = new JList<String>(m_jSaveListModel)
private

List for saving changes.

◆ m_jTimestepsEdit

JTextField sortie.gui.DetailedOutputGridSetup.m_jTimestepsEdit = new JTextField()

For getting the timestep saving interval.

◆ m_oOutput

DetailedOutput sortie.gui.DetailedOutputGridSetup.m_oOutput
protected

OutputBehaviors object to exchange data with.

◆ m_sHelpID

String sortie.gui.DetailedOutputGridSetup.m_sHelpID = "windows.detailed_output_grid_setup"
private

Help ID string.

◆ mp_oDetailedGridSaveSettings

ArrayList<DetailedGridSettings> sortie.gui.DetailedOutputGridSetup.mp_oDetailedGridSaveSettings = new ArrayList<DetailedGridSettings>(0)
protected

For detailed output - collection of DetailedGridSettings objects representing the temp settings that changes will be made to.

◆ mp_oGridList

Grid [] sortie.gui.DetailedOutputGridSetup.mp_oGridList
protected

List of grids to display.


The documentation for this class was generated from the following file: