public class XMLEditor extends AbstractCellEditor implements TableCellEditor, TreeCellEditor
| Modifier and Type | Class and Description |
|---|---|
protected class |
XMLEditor.EditorDelegate |
| Modifier and Type | Field and Description |
|---|---|
protected int |
clickCountToStart |
protected XMLEditor.EditorDelegate |
delegate |
protected JComponent |
editorComponent |
changeEvent, listenerList| Constructor and Description |
|---|
XMLEditor()
Constructs an XMLEditor that uses a text field.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancelCellEditing() |
Object |
getCellEditorValue() |
int |
getClickCountToStart()
ClickCountToStart controls the number of clicks required to start
editing.
|
Component |
getComponent()
Returns the component used to edit this editor's value.
|
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column) |
Component |
getTreeCellEditorComponent(JTree tree,
Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row) |
boolean |
isCellEditable(EventObject anEvent) |
void |
setClickCountToStart(int count)
Specifies the number of clicks needed to start editing.
|
boolean |
shouldSelectCell(EventObject anEvent) |
boolean |
stopCellEditing() |
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCellEditorListener, removeCellEditorListenerprotected JComponent editorComponent
protected XMLEditor.EditorDelegate delegate
protected int clickCountToStart
public Component getComponent()
public void setClickCountToStart(int count)
count - an int specifying the number of clicks needed to start
editinggetClickCountToStart()public int getClickCountToStart()
public Object getCellEditorValue()
getCellEditorValue in interface CellEditorpublic boolean isCellEditable(EventObject anEvent)
isCellEditable in interface CellEditorisCellEditable in class AbstractCellEditorpublic boolean shouldSelectCell(EventObject anEvent)
shouldSelectCell in interface CellEditorshouldSelectCell in class AbstractCellEditorpublic boolean stopCellEditing()
stopCellEditing in interface CellEditorstopCellEditing in class AbstractCellEditorpublic void cancelCellEditing()
cancelCellEditing in interface CellEditorcancelCellEditing in class AbstractCellEditorpublic Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
getTreeCellEditorComponent in interface TreeCellEditorpublic Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent in interface TableCellEditor
Abbot is hosted on