|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractCellEditor
com.alee.utils.swing.WebDefaultCellEditor<C>
com.alee.laf.tree.WebTreeCellEditor<C>
public class WebTreeCellEditor<C extends javax.swing.JComponent>
This class provides a styled default cell editor for trees.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.alee.utils.swing.WebDefaultCellEditor |
---|
WebDefaultCellEditor.EditorDelegate<T> |
Field Summary | |
---|---|
protected boolean |
autoUpdateLeadingIcon
Whether should update editor's leading icon automatically when it is possible or not. |
Fields inherited from class com.alee.utils.swing.WebDefaultCellEditor |
---|
clickCountToStart, COMBOBOX_CELL_EDITOR, delegate, editorComponent |
Fields inherited from class javax.swing.AbstractCellEditor |
---|
changeEvent, listenerList |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class com.alee.utils.swing.WebDefaultCellEditor |
---|
getCellEditorValue, getClickCountToStart, getComponent, getTableCellEditorComponent, initialize, isCellEditable, setClickCountToStart, shouldSelectCell |
Methods inherited from class javax.swing.AbstractCellEditor |
---|
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.CellEditor |
---|
addCellEditorListener, removeCellEditorListener |
Field Detail |
---|
protected boolean autoUpdateLeadingIcon
Constructor Detail |
---|
public WebTreeCellEditor()
public WebTreeCellEditor(WebTextField textField)
textField
- editor textfieldpublic WebTreeCellEditor(WebCheckBox checkBox)
checkBox
- editor checkboxpublic WebTreeCellEditor(WebComboBox comboBox)
comboBox
- editor comboboxMethod Detail |
---|
public void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
public boolean stopCellEditing()
stopCellEditing
in interface javax.swing.CellEditor
stopCellEditing
in class WebDefaultCellEditor<C extends javax.swing.JComponent>
public void cancelCellEditing()
cancelCellEditing
in interface javax.swing.CellEditor
cancelCellEditing
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.TreeCellEditor
getTreeCellEditorComponent
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |