Serializable
, CellEditor
, TableCellEditor
, TreeCellEditor
JXTable.NumberEditor
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
changeEvent, listenerList
clickCountToStart, delegate, editorComponent
Constructor | Description |
---|---|
GenericEditor() |
|
GenericEditor(JTextField textField) |
Modifier and Type | Method | Description |
---|---|---|
Object |
getCellEditorValue() |
|
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column) |
|
boolean |
stopCellEditing() |
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
addCellEditorListener, removeCellEditorListener
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell
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
Copyright © 2018. All rights reserved.