public class XMLEditor
extends javax.swing.AbstractCellEditor
implements javax.swing.table.TableCellEditor, javax.swing.tree.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 javax.swing.JComponent |
editorComponent |
| Constructor and Description |
|---|
XMLEditor()
Constructs an XMLEditor that uses a text field.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancelCellEditing() |
java.lang.Object |
getCellEditorValue() |
int |
getClickCountToStart()
ClickCountToStart controls the number of clicks required to start
editing.
|
java.awt.Component |
getComponent()
Returns the component used to edit this editor's value.
|
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column) |
java.awt.Component |
getTreeCellEditorComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row) |
boolean |
isCellEditable(java.util.EventObject anEvent) |
void |
setClickCountToStart(int count)
Specifies the number of clicks needed to start editing.
|
boolean |
shouldSelectCell(java.util.EventObject anEvent) |
boolean |
stopCellEditing() |
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListenerprotected javax.swing.JComponent editorComponent
protected XMLEditor.EditorDelegate delegate
protected int clickCountToStart
public java.awt.Component getComponent()
public void setClickCountToStart(int count)
count - an int specifying the number of clicks needed to start
editinggetClickCountToStart()public int getClickCountToStart()
public java.lang.Object getCellEditorValue()
getCellEditorValue in interface javax.swing.CellEditorpublic boolean isCellEditable(java.util.EventObject anEvent)
isCellEditable in interface javax.swing.CellEditorisCellEditable in class javax.swing.AbstractCellEditorpublic boolean shouldSelectCell(java.util.EventObject anEvent)
shouldSelectCell in interface javax.swing.CellEditorshouldSelectCell in class javax.swing.AbstractCellEditorpublic boolean stopCellEditing()
stopCellEditing in interface javax.swing.CellEditorstopCellEditing in class javax.swing.AbstractCellEditorpublic void cancelCellEditing()
cancelCellEditing in interface javax.swing.CellEditorcancelCellEditing in class javax.swing.AbstractCellEditorpublic java.awt.Component getTreeCellEditorComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
getTreeCellEditorComponent in interface javax.swing.tree.TreeCellEditorpublic java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor
Abbot is hosted on