public interface ItsNatTreeCellEditor
extends javax.swing.CellEditor
ItsNatComponentManager.createDefaultItsNatTreeCellEditor(ItsNatComponent)
,
ItsNatTree.getItsNatTreeCellEditor()
Modifier and Type | Method and Description |
---|---|
ItsNatComponent |
getTreeCellEditorComponent(ItsNatTree tree,
int row,
java.lang.Object value,
boolean isSelected,
boolean isExpanded,
boolean isLeaf,
org.w3c.dom.Element labelElem)
Returns the component used to edit in place the tree node value.
|
ItsNatComponent getTreeCellEditorComponent(ItsNatTree tree, int row, java.lang.Object value, boolean isSelected, boolean isExpanded, boolean isLeaf, org.w3c.dom.Element labelElem)
Default implementation uses a ItsNatHTMLInputText
(text not formatted version) to edit
the tree node value.
Default implementation ignores isSelected
parameter.
tree
- the tree component, may be used to provide contextual information. Default implementation ignores it.row
- the tree node row (seeing the tree as a list).value
- the value to edit (initial value).isSelected
- true if the tree node is selected.isExpanded
- true if the tree node is expanded.isLeaf
- true if the tree node is a leaf.labelElem
- the tree node label element to render the value into. Is a hint, if provided should be obtained by calling tree.getItsNatTreeUI().getLabelElementFromRow(row)
.ItsNatTree.setItsNatTreeCellEditor(ItsNatTreeCellEditor)
Copyright © 2007 Innowhere Software Services S.L. All Rights Reserved.