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, removeCellEditorListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCellEditorListener, removeCellEditorListener
protected 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 CellEditor
public boolean isCellEditable(EventObject anEvent)
isCellEditable
in interface CellEditor
isCellEditable
in class AbstractCellEditor
public boolean shouldSelectCell(EventObject anEvent)
shouldSelectCell
in interface CellEditor
shouldSelectCell
in class AbstractCellEditor
public boolean stopCellEditing()
stopCellEditing
in interface CellEditor
stopCellEditing
in class AbstractCellEditor
public void cancelCellEditing()
cancelCellEditing
in interface CellEditor
cancelCellEditing
in class AbstractCellEditor
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
getTreeCellEditorComponent
in interface TreeCellEditor
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent
in interface TableCellEditor
Abbot is hosted on