|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITreeDataModel
The interface that defines a suitable data model for a
TreeView component.
| 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 objChildUniqueKey,
Object objParentUniqueKey)
Check to see (on the basis of some node object identifier) whether the parent node is indeed the parent of the object. |
| Method Detail |
|---|
Object getRoot()
int getChildCount(Object objParent)
objParent - is the parent object whose nr of children are soughtIterator getChildren(Object objParent)
objParent - is the parent object whose children are requestedObject getObject(Object objUniqueKey)
objUniqueKey - is the unique identifier of the node object being retrieved
Object getUniqueKey(Object objTarget,
Object objParentUniqueKey)
objTarget - is the Object whose identifier is requiredobjParentUniqueKey - is the unique id of the parent of objTarget
Object getParentUniqueKey(Object objChildUniqueKey)
objChildUniqueKey - is the identifier of the Object for which the parent
identifier is sought
boolean isAncestorOf(Object objChildUniqueKey,
Object objParentUniqueKey)
objChildUniqueKey - is the identifier of the object whose parent is being checkedobjParentUniqueKey - is the identifier of the parent which is to be checked against
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||