SORTIE Java Interface
1
|
Makes a window for editing climate importer data. More...
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 |
Makes a window for editing climate importer data.
Copyright: Copyright (c) Charles D. Canham 2008 Company: Cary Institute of Ecosystem Studies
Edit history:
---------------—
January 24, 2017: Created (LEM)
sortie.gui.behaviorsetup.ClimateImporterEditor.ClimateImporterEditor | ( | JDialog | jParent, |
GUIManager | oManager, | ||
MainWindow | oWindow, | ||
ClimateImporter | oClim | ||
) |
Constructor.
jParent | |
oManager | |
oWindow | |
oClim |
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.
e | ActionEvent object. |
|
private |
Adds the regular old data pieces to the main panel and returns it.
This is everything that the behavior can treat as usual.
|
private |
Add the monthly temp and precip data to the main panel.
These will be displayed with months in columns and timesteps in rows.
jMainPanel | Panel to add to. |
|
protected |
Discovers which EnhancedTable in the parameter editing window has focus.
|
private |
Pass the newly collected parameters to the behavior.
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.
oFile | File to open. |
sCommandString | Command string - here we'll figure out whether it's temperature or precipitation. |
|
private |
void sortie.gui.behaviorsetup.ClimateImporterEditor.setLastTouched | ( | EnhancedTable | oTable | ) |
Sets a table as last touched by the user.
oTable | Table to be set as last touched. |
Implements sortie.gui.behaviorsetup.EnhancedTableWindow.
|
private |
|
private |
Climate Importer behavior.
|
private |
GUI Manager.
|
private |
|
private |
Help ID string.