public class CellEditorAdapter extends AbstractCellEditor implements TableCellEditor, TreeCellEditor
| Modifier and Type | Field and Description |
|---|---|
protected int |
clickCountToStart |
protected PropertyEditor |
editor |
changeEvent, listenerList| Constructor and Description |
|---|
CellEditorAdapter(PropertyEditor editor) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelCellEditing() |
Object |
getCellEditorValue() |
int |
getClickCountToStart() |
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean selected,
int row,
int column) |
Component |
getTreeCellEditorComponent(JTree tree,
Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row) |
boolean |
isCellEditable(EventObject event) |
void |
setClickCountToStart(int count) |
boolean |
shouldSelectCell(EventObject event) |
boolean |
stopCellEditing() |
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCellEditorListener, removeCellEditorListenerprotected PropertyEditor editor
protected int clickCountToStart
public CellEditorAdapter(PropertyEditor editor)
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row)
getTreeCellEditorComponent in interface TreeCellEditorpublic Component getTableCellEditorComponent(JTable table, Object value, boolean selected, int row, int column)
getTableCellEditorComponent in interface TableCellEditorpublic void setClickCountToStart(int count)
public int getClickCountToStart()
public Object getCellEditorValue()
getCellEditorValue in interface CellEditorpublic boolean isCellEditable(EventObject event)
isCellEditable in interface CellEditorisCellEditable in class AbstractCellEditorpublic boolean shouldSelectCell(EventObject event)
shouldSelectCell in interface CellEditorshouldSelectCell in class AbstractCellEditorpublic boolean stopCellEditing()
stopCellEditing in interface CellEditorstopCellEditing in class AbstractCellEditorpublic void cancelCellEditing()
cancelCellEditing in interface CellEditorcancelCellEditing in class AbstractCellEditorCopyright © 2015. All rights reserved.