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 intprotected TableCellEditorprotected TableCellEditorprotected Hashtable -
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructs a EachRowEditor.protectedRowCellEditor(RmaJTextField field) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int row, TableCellEditor editor) voidvoidgetCellEditor(int row) getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) booleanisCellEditable(EventObject anEvent) voidvoidsetClickCountToStart(int clickCount) booleanshouldSelectCell(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:
getTableCellEditorComponentin interfaceTableCellEditor
-
setClickCountToStart
public void setClickCountToStart(int clickCount) -
getCellEditorValue
- Specified by:
getCellEditorValuein interfaceCellEditor
-
stopCellEditing
public boolean stopCellEditing()- Specified by:
stopCellEditingin interfaceCellEditor
-
cancelCellEditing
public void cancelCellEditing()- Specified by:
cancelCellEditingin interfaceCellEditor
-
isCellEditable
- Specified by:
isCellEditablein interfaceCellEditor
-
addCellEditorListener
- Specified by:
addCellEditorListenerin interfaceCellEditor
-
removeCellEditorListener
- Specified by:
removeCellEditorListenerin interfaceCellEditor
-
shouldSelectCell
- Specified by:
shouldSelectCellin interfaceCellEditor
-
getCellEditor
-
getCellEditorTable
-