public static class JXTable.GenericEditor
extends javax.swing.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.
| Constructor and Description |
|---|
JXTable.GenericEditor() |
JXTable.GenericEditor(javax.swing.JTextField textField) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getCellEditorValue() |
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column) |
boolean |
stopCellEditing() |
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCelladdCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListenerpublic JXTable.GenericEditor()
public JXTable.GenericEditor(javax.swing.JTextField textField)
public boolean stopCellEditing()
stopCellEditing in interface javax.swing.CellEditorstopCellEditing in class javax.swing.DefaultCellEditorpublic java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
getTableCellEditorComponent in interface javax.swing.table.TableCellEditorgetTableCellEditorComponent in class javax.swing.DefaultCellEditorpublic java.lang.Object getCellEditorValue()
getCellEditorValue in interface javax.swing.CellEditorgetCellEditorValue in class javax.swing.DefaultCellEditor