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 () | |
Constructor. |
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
|
Constructor. Sets up a text field as the default editor unless we say otherwise. |
|
Sets the m_sValue string correctly when a combo box change is fired.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
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 "&¤t_m_sValue|combo_choice_1,combo_choice_2,combo_choice_n". Otherwise, it gets the default text field.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |