Package rma.swing.table
Class RowCellEditor
java.lang.Object
rma.swing.table.RowCellEditor
- All Implemented Interfaces:
Serializable
,CellEditor
,TableCellEditor
Allows the user to set a Cell Editor for each row in a Table Column
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected TableCellEditor
protected TableCellEditor
protected Hashtable
-
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructs a EachRowEditor.protected
RowCellEditor
(RmaJTextField field) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(int row, TableCellEditor editor) void
void
getCellEditor
(int row) getTableCellEditorComponent
(JTable table, Object value, boolean isSelected, int row, int column) boolean
isCellEditable
(EventObject anEvent) void
void
setClickCountToStart
(int clickCount) boolean
shouldSelectCell
(EventObject anEvent) boolean
-
Field Details
-
editors
-
editor
-
defaultEditor
-
clickCountToStart
protected int clickCountToStart
-
-
Constructor Details
-
RowCellEditor
public RowCellEditor()Constructs a EachRowEditor. create default editor- See Also:
-
RowCellEditor
-
RowCellEditor
-
-
Method Details
-
add
- Parameters:
row
- table roweditor
- table cell editor
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) - Specified by:
getTableCellEditorComponent
in interfaceTableCellEditor
-
setClickCountToStart
public void setClickCountToStart(int clickCount) -
getCellEditorValue
- Specified by:
getCellEditorValue
in interfaceCellEditor
-
stopCellEditing
public boolean stopCellEditing()- Specified by:
stopCellEditing
in interfaceCellEditor
-
cancelCellEditing
public void cancelCellEditing()- Specified by:
cancelCellEditing
in interfaceCellEditor
-
isCellEditable
- Specified by:
isCellEditable
in interfaceCellEditor
-
addCellEditorListener
- Specified by:
addCellEditorListener
in interfaceCellEditor
-
removeCellEditorListener
- Specified by:
removeCellEditorListener
in interfaceCellEditor
-
shouldSelectCell
- Specified by:
shouldSelectCell
in interfaceCellEditor
-
getCellEditor
-
getCellEditorTable
-