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

Makes a window for editing climate importer data. More...

Inheritance diagram for sortie.gui.behaviorsetup.ClimateImporterEditor:
sortie.gui.behaviorsetup.EnhancedTableWindow

Public Member Functions

 ClimateImporterEditor (JDialog jParent, GUIManager oManager, MainWindow oWindow, ClimateImporter oClim)
 Constructor. More...
 
void actionPerformed (ActionEvent e)
 Responds to button events. More...
 
void setLastTouched (EnhancedTable oTable)
 Sets a table as last touched by the user. More...
 
void readDataFile (File oFile, String sCommandString) throws ModelException
 Read a data file with monthly temperature or precipitation values. More...
 

Protected Member Functions

EnhancedTable getLastTouchedTable ()
 Discovers which EnhancedTable in the parameter editing window has focus. More...
 

Private Member Functions

JPanel addDefaultsToMainPanel ()
 Adds the regular old data pieces to the main panel and returns it. More...
 
JPanel addMonthlyDataToMainPanel (JPanel jMainPanel) throws ModelException
 Add the monthly temp and precip data to the main panel. More...
 
void passDataToBehavior () throws ModelException
 Pass the newly collected parameters to the behavior. More...
 
void refreshParametersDisplay () throws ModelException
 

Private Attributes

String m_sHelpID = "windows.edit_climate_importer_data"
 Help ID string. More...
 
ClimateImporter m_oClim
 Climate Importer behavior. More...
 
GUIManager m_oManager
 GUI Manager. More...
 
JDialog m_jParent
 
MainWindow m_oWindow
 

Detailed Description

Makes a window for editing climate importer data.

Copyright: Copyright (c) Charles D. Canham 2008 Company: Cary Institute of Ecosystem Studies

Author
Lora E. Murphy
Version
1.0



Edit history:
---------------—
January 24, 2017: Created (LEM)

Constructor & Destructor Documentation

◆ ClimateImporterEditor()

sortie.gui.behaviorsetup.ClimateImporterEditor.ClimateImporterEditor ( JDialog  jParent,
GUIManager  oManager,
MainWindow  oWindow,
ClimateImporter  oClim 
)

Constructor.

Parameters
jParent
oManager
oWindow
oClim

Member Function Documentation

◆ actionPerformed()

void sortie.gui.behaviorsetup.ClimateImporterEditor.actionPerformed ( ActionEvent  e)

Responds to button events.

If OK, then the parameter window is constructed and this window is closed. If Cancel, then this window is closed.

Parameters
eActionEvent object.

◆ addDefaultsToMainPanel()

JPanel sortie.gui.behaviorsetup.ClimateImporterEditor.addDefaultsToMainPanel ( )
private

Adds the regular old data pieces to the main panel and returns it.

This is everything that the behavior can treat as usual.

Returns
Panel with all that stuff added.

◆ addMonthlyDataToMainPanel()

JPanel sortie.gui.behaviorsetup.ClimateImporterEditor.addMonthlyDataToMainPanel ( JPanel  jMainPanel) throws ModelException
private

Add the monthly temp and precip data to the main panel.

These will be displayed with months in columns and timesteps in rows.

Parameters
jMainPanelPanel to add to.
Returns
Panel with updates.

◆ getLastTouchedTable()

EnhancedTable sortie.gui.behaviorsetup.ClimateImporterEditor.getLastTouchedTable ( )
protected

Discovers which EnhancedTable in the parameter editing window has focus.

Returns
EnhancedTable object with focus, or null if none has focus.

◆ passDataToBehavior()

void sortie.gui.behaviorsetup.ClimateImporterEditor.passDataToBehavior ( ) throws ModelException
private

Pass the newly collected parameters to the behavior.

◆ readDataFile()

void sortie.gui.behaviorsetup.ClimateImporterEditor.readDataFile ( File  oFile,
String  sCommandString 
) throws ModelException

Read a data file with monthly temperature or precipitation values.

This will load the contents of the file into the window.

Parameters
oFileFile to open.
sCommandStringCommand string - here we'll figure out whether it's temperature or precipitation.

◆ refreshParametersDisplay()

void sortie.gui.behaviorsetup.ClimateImporterEditor.refreshParametersDisplay ( ) throws ModelException
private

◆ setLastTouched()

void sortie.gui.behaviorsetup.ClimateImporterEditor.setLastTouched ( EnhancedTable  oTable)

Sets a table as last touched by the user.

Parameters
oTableTable to be set as last touched.

Implements sortie.gui.behaviorsetup.EnhancedTableWindow.

Member Data Documentation

◆ m_jParent

JDialog sortie.gui.behaviorsetup.ClimateImporterEditor.m_jParent
private

◆ m_oClim

ClimateImporter sortie.gui.behaviorsetup.ClimateImporterEditor.m_oClim
private

Climate Importer behavior.

◆ m_oManager

GUIManager sortie.gui.behaviorsetup.ClimateImporterEditor.m_oManager
private

GUI Manager.

◆ m_oWindow

MainWindow sortie.gui.behaviorsetup.ClimateImporterEditor.m_oWindow
private

◆ m_sHelpID

String sortie.gui.behaviorsetup.ClimateImporterEditor.m_sHelpID = "windows.edit_climate_importer_data"
private

Help ID string.


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