java.io.Serializable
, javax.swing.CellEditor
, javax.swing.table.TableCellEditor
, javax.swing.tree.TreeCellEditor
JXTable.NumberEditor
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 | 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, removeCellEditorListener
addCellEditorListener, removeCellEditorListener
public GenericEditor()
public GenericEditor(javax.swing.JTextField textField)
public boolean stopCellEditing()
stopCellEditing
in interface javax.swing.CellEditor
stopCellEditing
in class javax.swing.DefaultCellEditor
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent
in interface javax.swing.table.TableCellEditor
getTableCellEditorComponent
in class javax.swing.DefaultCellEditor
public java.lang.Object getCellEditorValue()
getCellEditorValue
in interface javax.swing.CellEditor
getCellEditorValue
in class javax.swing.DefaultCellEditor