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, removeCellEditorListener
protected 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.CellEditor
public boolean isCellEditable(java.util.EventObject anEvent)
isCellEditable
in interface javax.swing.CellEditor
isCellEditable
in class javax.swing.AbstractCellEditor
public boolean shouldSelectCell(java.util.EventObject anEvent)
shouldSelectCell
in interface javax.swing.CellEditor
shouldSelectCell
in class javax.swing.AbstractCellEditor
public boolean stopCellEditing()
stopCellEditing
in interface javax.swing.CellEditor
stopCellEditing
in class javax.swing.AbstractCellEditor
public void cancelCellEditing()
cancelCellEditing
in interface javax.swing.CellEditor
cancelCellEditing
in class javax.swing.AbstractCellEditor
public 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.TreeCellEditor
public 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