|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public TreeModel
This interface provides a generic tree model acting as a base class for all concrete tree models
Method Summary | |
---|---|
Deferred |
getRoot()
Returns the root node of the model; may return null if the concrete tree model supports for empty models |
Boolean |
hasChildren(Object node)
Returns whether or not the given node has children. |
DeferredIterator |
getChildren(Object node)
Returns an iterator over the child elements for the given node. |
Deferred |
getParent(Object node)
Returns the parent of a given node. |
Methods inherited from interface com.ibm.mashups.enabler.model.Model |
---|
setStrategy, getStrategies, getStrategy, addStrategy, removeStrategy |
Methods inherited from interface com.ibm.mashups.enabler.Locator |
---|
find |
Method Detail |
---|
Deferred getRoot()
null
if the concrete tree model supports for empty models
Boolean hasChildren(Object node)
true
- the iterator might be empty.
node
-
node object or node uri (without any scope) for which to check if it has children. Must not be null
.
DeferredIterator getChildren(Object node)
node
-
node object or node uri (without any scope) for which to return its children. Must not be null
.
null
Deferred getParent(Object node)
node
-
node object or node uri (without any scope) for which to return its parent. Must not be null
.
null
if the node has no parent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |