org.openfaces.component.table
Class TreeStructure
java.lang.Object
UIComponentBase
org.openfaces.component.table.TreeStructure
- Direct Known Subclasses:
- DynamicTreeStructure, StaticTreeStructure
public abstract class TreeStructure
- extends UIComponentBase
A base class for all kinds of tree structure implementations. It defines a common interface that all tree structures
can be queried with.
There can be any number of nodes on the top level.
Each node has the following attributes:
- node data (required) : Any object. Can't be null.
- node key (optional) : Must be a serializable object that uniquely identifies a node among the whole tree.
must implement equals and hashcode methods to compare serialized instances correctly
if omitted, node data will be used as node key, so node data must comply to node key
requirements in this case. Can't be null.
- nodeHasChildren attribute (optional) : Informs whether the node has any children without querying the actual list of children.
- child nodes (required) : List of child nodes.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getLevel
public abstract int getLevel()
goToTopLevel
public abstract void goToTopLevel()
goToChildLevel
public abstract void goToChildLevel()
goToParentLevel
public abstract void goToParentLevel()
getNodeCount
public abstract int getNodeCount()
setNodeIndex
public abstract void setNodeIndex(int curentNodeIndex)
getNodeIndex
public abstract int getNodeIndex()
isNodeAvailable
public abstract boolean isNodeAvailable()
getNodeKey
public abstract java.lang.Object getNodeKey()
getNodeData
public abstract java.lang.Object getNodeData()
getNodeHasChildren
public abstract boolean getNodeHasChildren()
Copyright © 1998-2009 TeamDev Ltd. All Rights Reserved.