public class WebTreeCellEditor<C extends javax.swing.JComponent> extends WebDefaultCellEditor<C> implements java.awt.event.FocusListener
WebDefaultCellEditor.EditorDelegate<T>| Modifier and Type | Field and Description |
|---|---|
protected boolean |
autoUpdateLeadingIcon
Whether should update editor's leading icon automatically when it is possible or not.
|
clickCountToStart, COMBOBOX_CELL_EDITOR, delegate, editorComponent| Constructor and Description |
|---|
WebTreeCellEditor()
Constructs default tree cell editor with a text field as editor.
|
WebTreeCellEditor(WebCheckBox checkBox)
Constructs tree cell editor with a specified check box as editor.
|
WebTreeCellEditor(WebComboBox comboBox)
Constructs tree cell editor with a specified combo box as editor.
|
WebTreeCellEditor(WebTextField textField)
Constructs tree cell editor with a specified text field as editor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancelCellEditing() |
void |
focusGained(java.awt.event.FocusEvent e) |
void |
focusLost(java.awt.event.FocusEvent e) |
java.awt.Component |
getTreeCellEditorComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
Returns custom tree cell editor component.
|
boolean |
stopCellEditing() |
getCellEditorValue, getClickCountToStart, getComponent, getTableCellEditorComponent, initialize, isCellEditable, setClickCountToStart, shouldSelectCelladdCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListenerprotected boolean autoUpdateLeadingIcon
public WebTreeCellEditor()
public WebTreeCellEditor(WebTextField textField)
textField - editor textfieldpublic WebTreeCellEditor(WebCheckBox checkBox)
checkBox - editor checkboxpublic WebTreeCellEditor(WebComboBox comboBox)
comboBox - editor comboboxpublic void focusGained(java.awt.event.FocusEvent e)
focusGained in interface java.awt.event.FocusListenerpublic void focusLost(java.awt.event.FocusEvent e)
focusLost in interface java.awt.event.FocusListenerpublic boolean stopCellEditing()
stopCellEditing in interface javax.swing.CellEditorstopCellEditing in class WebDefaultCellEditor<C extends javax.swing.JComponent>public void cancelCellEditing()
cancelCellEditing in interface javax.swing.CellEditorcancelCellEditing in class WebDefaultCellEditor<C extends javax.swing.JComponent>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.TreeCellEditorgetTreeCellEditorComponent in class WebDefaultCellEditor<C extends javax.swing.JComponent>tree - treevalue - cell valueisSelected - whether cell is selected or notexpanded - whether cell is expanded or notleaf - whether cell is leaf or notrow - cell row index