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.EditorDelegate
Modifier and Type | Field and Description |
---|---|
(package private) Class<?>[] |
argTypes |
(package private) Constructor<?> |
constructor |
(package private) Object |
value |
clickCountToStart, delegate, editorComponent
changeEvent, 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, shouldSelectCell
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCellEditorListener, removeCellEditorListener
Constructor<?> constructor
public GenericEditor()
public GenericEditor(JTextField textField)
public boolean stopCellEditing()
stopCellEditing
in interface CellEditor
stopCellEditing
in class DefaultCellEditor
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent
in interface TableCellEditor
getTableCellEditorComponent
in class DefaultCellEditor
public Object getCellEditorValue()
getCellEditorValue
in interface CellEditor
getCellEditorValue
in class DefaultCellEditor
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses