javawrapper.ParameterCellEditor Class Reference

Handles the editing for the file parameter table. More...

Inherits javax::swing::DefaultCellEditor, and java::awt::event::ActionListener.

List of all members.

Public Member Functions

Component getTableCellEditorComponent (JTable jTable, Object oValue, boolean bIsSelected, int iRow, int iColumn)
 Retrieves the editor for a given cell.
void actionPerformed (ActionEvent e)
 Sets the m_sValue string correctly when a combo box change is fired.

Package Functions

 ParameterCellEditor ()
 Implements undo / redo support for individual cells.

Static Package Attributes

static final long serialVersionUID = 1


Detailed Description

Handles the editing for the file parameter table.

The main features added are support for combo boxes and forcing all other values entered to be numbers.

I put in undo / redo support for individual cells but I'm commenting it out for now. I'm not convinced it's useful, especially since I haven't implemented undo / redo for multi-cell operations (like cut / paste).

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

Author:
Lora E. Murphy
Version:
1.0

Edit history:
------------------
April 28, 2004: Submitted in beta version (LEM)

Constructor & Destructor Documentation

javawrapper.ParameterCellEditor.ParameterCellEditor (  )  [package]

Implements undo / redo support for individual cells.

Constructor. Sets up a text field as the default editor unless we say otherwise.


Member Function Documentation

Component javawrapper.ParameterCellEditor.getTableCellEditorComponent ( JTable  jTable,
Object  oValue,
boolean  bIsSelected,
int  iRow,
int  iColumn 
)

Retrieves the editor for a given cell.

If the cell's value starts with "&&", that's the code that it's formatted for a combo box. The format is "&&current_m_sValue|combo_choice_1,combo_choice_2,combo_choice_n". Otherwise, it gets the default text field.

Parameters:
jTable The table being edited.
oValue The m_sValue currently in the cell.
bIsSelected Whether or not the cell is selected.
iRow Row number of the cell.
iColumn Column number of the cell.
Returns:
The component to use when editing.

void javawrapper.ParameterCellEditor.actionPerformed ( ActionEvent  e  ) 

Sets the m_sValue string correctly when a combo box change is fired.

Parameters:
e Action event


Member Data Documentation

final long javawrapper.ParameterCellEditor.serialVersionUID = 1 [static, package]


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

Generated on Tue Apr 19 13:59:39 2011 for SORTIE Java Interface by  doxygen 1.5.6