com.alee.extended.tree.sample
Class SampleTreeCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
com.alee.utils.swing.WebDefaultCellEditor<C>
com.alee.laf.tree.WebTreeCellEditor
com.alee.extended.tree.sample.SampleTreeCellEditor
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor
public class SampleTreeCellEditor
- extends WebTreeCellEditor
Sample tree cell editor.
- Author:
- Mikle Garin
- See Also:
- Serialized Form
Fields inherited from class javax.swing.AbstractCellEditor |
changeEvent, listenerList |
Method Summary |
java.lang.Object |
getCellEditorValue()
Returns current editor's value. |
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. |
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 |
sampleNode
protected SampleNode sampleNode
- Last edited node.
SampleTreeCellEditor
public SampleTreeCellEditor()
- Constructs sample tree cell editor.
getTreeCellEditorComponent
public 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.
- Specified by:
getTreeCellEditorComponent
in interface javax.swing.tree.TreeCellEditor
- Overrides:
getTreeCellEditorComponent
in class WebTreeCellEditor
- Parameters:
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
- Returns:
- cell editor component
getCellEditorValue
public java.lang.Object getCellEditorValue()
- Returns current editor's value.
- Specified by:
getCellEditorValue
in interface javax.swing.CellEditor
- Overrides:
getCellEditorValue
in class WebDefaultCellEditor
- Returns:
- current editor's value