javawrapper::GridValueEditor Class Reference

Window for editing grid values in a spreadsheet-like format. More...

Inheritance diagram for javawrapper::GridValueEditor:

javawrapper::EnhancedTableWindow List of all members.

Public Member Functions

 GridValueEditor (JDialog oFrame, GUIManager oManager, Grid oGrid)
 Constructor.
void SetLastTouched (EnhancedTable oTable)
 Sets a table as last touched by the user.
void actionPerformed (ActionEvent e)
 Responds to button events.
void WriteCurrentWindow (String sFileName)
 Saves the data in the current set of tables as a tab-delimited text file.
void SaveData () throws ModelException
 Saves updated grid values to the grids.

Protected Member Functions

EnhancedTable GetLastTouchedTable ()
 Discovers which EnhancedTable in the parameter editing window has focus.
String GetDisplayName (DataMember[] p_oDataMemberList, String sCodeName)
 Gets the display name of a data member, given its code name.

Package Attributes

Vector mp_oAllTables = new Vector(0)
 Vector holding all of the EnhancedTable objects in this window.
String m_sHelpID = "windows.grid_edit_window"
 Help topic ID string.

Detailed Description

Window for editing grid values in a spreadsheet-like format.

This uses EnhancedTable for advanced display and editing functions.

Copyright: Copyright (c) Charles D. Canham 2003

Company: Institute of Ecosystem Studies

Author:
Lora E. Murphy
Version:
1.0

Edit history:
------------------
September 14, 2004: Created (LEM)


Constructor & Destructor Documentation

javawrapper::GridValueEditor::GridValueEditor ( JDialog  oFrame,
GUIManager  oManager,
Grid  oGrid 
) [inline]

Constructor.

Builds the window. The window is composed of several panels, one for each grid data member and package data member.

Parameters:
oFrame JDialog Parent window in which to display
oGrid Grid Grid object for which to edit values.
oManager GUIManager object


Member Function Documentation

void javawrapper::GridValueEditor::SetLastTouched ( EnhancedTable  oTable  )  [inline]

Sets a table as last touched by the user.

Parameters:
oTable Table to be set as last touched.

Edit history:
------------------
September 14, 2004: Created (LEM)

Implements javawrapper::EnhancedTableWindow.

void javawrapper::GridValueEditor::actionPerformed ( ActionEvent  e  )  [inline]

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:
e ActionEvent object.

Edit history:
------------------
September 14, 2004: Created (LEM)

EnhancedTable javawrapper::GridValueEditor::GetLastTouchedTable (  )  [inline, protected]

Discovers which EnhancedTable in the parameter editing window has focus.

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

Edit history:
------------------
September 14, 2004: Created (LEM)

void javawrapper::GridValueEditor::WriteCurrentWindow ( String  sFileName  )  [inline]

Saves the data in the current set of tables as a tab-delimited text file.

Parameters:
sFileName File name to save to.

Edit history:
------------------
September 14, 2004: Created (LEM)

void javawrapper::GridValueEditor::SaveData (  )  throws ModelException [inline]

Saves updated grid values to the grids.

Exceptions:
ModelException if the data extracted is invalid.

Edit history:
------------------
September 14, 2004: Created (LEM)

String javawrapper::GridValueEditor::GetDisplayName ( DataMember[]  p_oDataMemberList,
String  sCodeName 
) [inline, protected]

Gets the display name of a data member, given its code name.

Parameters:
p_oDataMemberList Array of all data members.
sCodeName String The code name of the data member.
Returns:
String The display name of the data member, or the empty string if the display name cannot be found.


The documentation for this class was generated from the following file:
Generated on Thu May 24 09:34:54 2007 for SORTIE Java Interface by  doxygen 1.5.2