JXTable.NumberEditorpublic 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 | Description |
|---|---|
GenericEditor() |
|
GenericEditor(javax.swing.JTextField textField) |
| Modifier and Type | Method | 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() |
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListeneraddCellEditorListener, removeCellEditorListenerpublic GenericEditor()
public GenericEditor(javax.swing.JTextField textField)
public boolean stopCellEditing()
stopCellEditing 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 class javax.swing.DefaultCellEditorpublic java.lang.Object getCellEditorValue()
getCellEditorValue in class javax.swing.DefaultCellEditor