public class WebTreeCellEditor<C extends javax.swing.JComponent> extends WebDefaultCellEditor<C>
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 |
|---|---|
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.
|
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTableCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditingaddCellEditorListener, 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 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