public class WebDefaultCellEditor<C extends javax.swing.JComponent>
extends javax.swing.AbstractCellEditor
implements javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor
| Modifier and Type | Class and Description |
|---|---|
protected class |
WebDefaultCellEditor.EditorDelegate<T> |
| Modifier and Type | Field and Description |
|---|---|
protected int |
clickCountToStart |
static java.lang.String |
COMBOBOX_CELL_EDITOR |
protected WebDefaultCellEditor.EditorDelegate |
delegate |
protected C |
editorComponent |
| Constructor and Description |
|---|
WebDefaultCellEditor() |
WebDefaultCellEditor(javax.swing.JCheckBox checkBox) |
WebDefaultCellEditor(javax.swing.JComboBox comboBox) |
WebDefaultCellEditor(javax.swing.JTextField textField) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelCellEditing() |
java.lang.Object |
getCellEditorValue() |
int |
getClickCountToStart() |
java.awt.Component |
getComponent() |
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) |
protected void |
initialize(C editor)
Initializes cell editor and its delegate.
|
boolean |
isCellEditable(java.util.EventObject anEvent) |
void |
setClickCountToStart(int count) |
boolean |
shouldSelectCell(java.util.EventObject anEvent) |
boolean |
stopCellEditing() |
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListenerpublic static final java.lang.String COMBOBOX_CELL_EDITOR
protected C extends javax.swing.JComponent editorComponent
protected WebDefaultCellEditor.EditorDelegate delegate
protected int clickCountToStart
public WebDefaultCellEditor()
public WebDefaultCellEditor(javax.swing.JTextField textField)
public WebDefaultCellEditor(javax.swing.JCheckBox checkBox)
public WebDefaultCellEditor(javax.swing.JComboBox comboBox)
protected void initialize(C editor)
editor - actual editor componentpublic java.awt.Component getComponent()
public void setClickCountToStart(int count)
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