|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITreeData<T>
Method Summary | |
---|---|
String |
formatDataForDepth(int depth,
int index)
Deprecated. formatting of data should be done by the exporter or a display converter |
String |
formatDataForDepth(int depth,
T object)
Deprecated. formatting of data should be done by the exporter or a display converter |
List<T> |
getChildren(int index)
Return the child objects below the object at the given index if the object is a tree node. |
List<T> |
getChildren(T object)
Return the child objects below the given object if the object is a tree node. |
List<T> |
getChildren(T object,
boolean fullDepth)
Return the child objects below the given object if the object is a tree node. |
T |
getDataAtIndex(int index)
|
int |
getDepthOfData(int index)
|
int |
getDepthOfData(T object)
|
int |
getElementCount()
|
boolean |
hasChildren(int index)
|
boolean |
hasChildren(T object)
|
int |
indexOf(T child)
|
boolean |
isValidIndex(int index)
Checks if a given index points to an element of the underlying list this ITreeData is connected to. |
Method Detail |
---|
@Deprecated String formatDataForDepth(int depth, T object)
depth
- object
-
@Deprecated String formatDataForDepth(int depth, int index)
depth
- index
-
int getDepthOfData(T object)
object
- The object that is represented by the tree node whose depth is
requested.
int getDepthOfData(int index)
index
- The index of the tree node whose depth is requested.
T getDataAtIndex(int index)
index
- The index for which the corresponding object in the tree
structure is requested.
int indexOf(T child)
child
- The child whose index is requested.
boolean hasChildren(T object)
object
- The object which should be checked for children.
true
if the object has children in the tree
structure, false
if it is a leaf.boolean hasChildren(int index)
index
- The index of the object in the tree structure which should be
checked for children.
true
if the object has children in the tree
structure, false
if it is a leaf.List<T> getChildren(T object)
object
- The object whose children are requested.
List<T> getChildren(T object, boolean fullDepth)
object
- The object whose children are requested.fullDepth
- to return only direct children or search for sub children
List<T> getChildren(int index)
index
- The index of the object whose children are requested.
int getElementCount()
boolean isValidIndex(int index)
index
- The index to check.
true
if the index points to an element of the
underlying list, false
if it doesn't.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |