public interface ITreeContainer
Modifier and Type | Method and Description |
---|---|
boolean |
accept(ITreeNodeVisitor visitor)
Visits the nodes of the container by a visitor
|
ITreeNode |
addNode() |
ITreeNode |
addNode(int index) |
ITreeNode |
addNode(int index,
ITreeNodeDescriptor descriptor) |
ITreeNode |
addNode(ITreeNodeDescriptor descriptor) |
java.util.List<ITreeNode> |
getChildren() |
int |
getLevel()
Gets the level of the node, where 0 is the root level
|
ITreeContainer |
getParentContainer() |
void |
removeAllNodes() |
void |
removeNode(int index) |
void |
removeNode(ITreeNode node) |
void |
setAllChildrenBelowExpandedAboveCollapsed(int pivotLevel)
Expands all nodes of the given level and below and collapses all nodes above
|
void |
setAllChildrenChecked(boolean checked) |
void |
setAllChildrenExpanded(boolean expanded) |
void |
setAllChildrenExpanded(java.lang.Integer pivotLevel,
boolean expanded)
Sets all children expanded or collapsed until a pivot level is reached
|
ITreeNode addNode()
ITreeNode addNode(int index)
ITreeNode addNode(ITreeNodeDescriptor descriptor)
ITreeNode addNode(int index, ITreeNodeDescriptor descriptor)
void removeNode(ITreeNode node)
void removeNode(int index)
void removeAllNodes()
java.util.List<ITreeNode> getChildren()
ITreeContainer getParentContainer()
void setAllChildrenExpanded(boolean expanded)
void setAllChildrenExpanded(java.lang.Integer pivotLevel, boolean expanded)
pivotLevel
- The pivot level to use, assuming this node has level 0, the children level 1 and so on
If expanded is true, all nodes of this level and below will be expanded
If expanded is false, all node of this level and above will be collapsed
If expanded is null, the expansion is unboundexpanded
- If true, nodes will be expanded, I false nodes will be collapsedjava.lang.IllegalArgumentException
- if the level is not greater or equal 0void setAllChildrenChecked(boolean checked)
void setAllChildrenBelowExpandedAboveCollapsed(int pivotLevel)
pivotLevel
- The pivot level, assuming this node has level 0, the children level 1 and so onboolean accept(ITreeNodeVisitor visitor)
visitor
- The visitor to visit the nodes, must not be nullint getLevel()
Siehe auch Jowidgets Nutzerhandbuch