public static class JXTable.GenericEditor extends DefaultCellEditor
Object. The editor tries to
create a new instance of the column's class by reflection. It assumes
that the class has a constructor taking a single String
parameter.
The editor can be configured with a custom JTextField.
DefaultCellEditor.EditorDelegateclickCountToStart, delegate, editorComponentchangeEvent, listenerList| Constructor and Description |
|---|
GenericEditor() |
GenericEditor(JTextField textField) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getCellEditorValue() |
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column) |
boolean |
stopCellEditing() |
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCelladdCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCellEditorListener, removeCellEditorListenerpublic GenericEditor()
public GenericEditor(JTextField textField)
public boolean stopCellEditing()
stopCellEditing in interface CellEditorstopCellEditing in class DefaultCellEditorpublic Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent in interface TableCellEditorgetTableCellEditorComponent in class DefaultCellEditorpublic Object getCellEditorValue()
getCellEditorValue in interface CellEditorgetCellEditorValue in class DefaultCellEditorCopyright © 2017. All Rights Reserved.