|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry.contrib.tree.simple.SimpleTreeDataModel
public class SimpleTreeDataModel
Field Summary | |
---|---|
protected ITreeNode |
m_objRootNode
|
Constructor Summary | |
---|---|
SimpleTreeDataModel(ITreeNode objRootNode)
Constructor for SimpleTreeDataModel. |
Method Summary | |
---|---|
int |
getChildCount(Object objParent)
Returns the number of children of parent node. |
Iterator |
getChildren(Object objParent)
Get an iterator to the Collection of children belonging to the parent node object |
Object |
getObject(Object objUniqueKey)
Get the actual node object based on some identifier (for example an UUID) |
Object |
getParentUniqueKey(Object objChildUniqueKey)
Get the unique identifier of the parent of an object |
Object |
getRoot()
Returns the root node of the tree |
Object |
getUniqueKey(Object objTarget,
Object objParentUniqueKey)
Get the unique identifier (UUID) of the node object with a certain parent node |
boolean |
isAncestorOf(Object objTargetUniqueKey,
Object objParentUniqueKey)
Check to see (on the basis of some node object identifier) whether the parent node is indeed the parent of the object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ITreeNode m_objRootNode
Constructor Detail |
---|
public SimpleTreeDataModel(ITreeNode objRootNode)
Method Detail |
---|
public Object getRoot()
ITreeDataModel
getRoot
in interface ITreeDataModel
ITreeDataModel.getRoot()
public int getChildCount(Object objParent)
ITreeDataModel
getChildCount
in interface ITreeDataModel
objParent
- is the parent object whose nr of children are soughtITreeDataModel.getChildCount(Object)
public Iterator getChildren(Object objParent)
ITreeDataModel
getChildren
in interface ITreeDataModel
objParent
- is the parent object whose children are requestedITreeDataModel.getChildren(Object)
public Object getObject(Object objUniqueKey)
ITreeDataModel
getObject
in interface ITreeDataModel
objUniqueKey
- is the unique identifier of the node object being retrieved
ITreeDataModel.getObject(Object)
public Object getUniqueKey(Object objTarget, Object objParentUniqueKey)
ITreeDataModel
getUniqueKey
in interface ITreeDataModel
objTarget
- is the Object whose identifier is requiredobjParentUniqueKey
- is the unique id of the parent of objTarget
ITreeDataModel.getUniqueKey(Object, Object)
public boolean isAncestorOf(Object objTargetUniqueKey, Object objParentUniqueKey)
ITreeDataModel
isAncestorOf
in interface ITreeDataModel
objTargetUniqueKey
- is the identifier of the object whose parent is being checkedobjParentUniqueKey
- is the identifier of the parent which is to be checked againstITreeDataModel.isAncestorOf(Object, Object)
public Object getParentUniqueKey(Object objChildUniqueKey)
ITreeDataModel
getParentUniqueKey
in interface ITreeDataModel
objChildUniqueKey
- is the identifier of the Object for which the parent identifier is sought
ITreeDataModel.getParentUniqueKey(java.lang.Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |