|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Basic interface to build tree structures.
| Method Summary | |
boolean |
allowsSubElements()
Returns true if the receiver allows sub elements.
|
ITreeElement |
getElementAt(int index)
Returns the ITreeElement at the specified index.
|
ITreeElement[] |
getElements()
Returns the elements in the ITreeElement.
|
int |
getIndex(ITreeElement element)
Returns the index of the specified element in the
ITreeElement.
|
ITreeElement |
getParent()
Returns the parent of the ITreeElement
|
int |
getSize()
Returns the number of elements in the ITreeElement.
|
boolean |
hasSubElements()
Returns true if the ITreeNode contains any
sub elements.
|
boolean |
isSubElement(ITreeElement element)
Returns true if the specified element is a
sub element, i.e. a descendant of the ITreeElement.
|
| Method Detail |
public ITreeElement[] getElements()
Returns the elements in the ITreeElement.
ITreeElementpublic boolean allowsSubElements()
Returns true if the receiver allows sub elements.
true if sub elements are allowed;
false otherwisepublic ITreeElement getElementAt(int index)
Returns the ITreeElement at the specified index.
index - the index to query the ITreeElement for
ITreeElement at the specified indexpublic int getSize()
Returns the number of elements in the ITreeElement.
ITreeElement<public int getIndex(ITreeElement element)
Returns the index of the specified element in the
ITreeElement.
element - the ITreeElement to get the index for
element in the
ITreeElementpublic ITreeElement getParent()
Returns the parent of the ITreeElement
ITreeElementpublic boolean hasSubElements()
Returns true if the ITreeNode contains any
sub elements.
true if the ITreeNode has any sub
elements; false otherwisepublic boolean isSubElement(ITreeElement element)
Returns true if the specified element is a
sub element, i.e. a descendant of the ITreeElement.
element - the element for which to test the posterity
true if the specified element is a
sub element, i.e. a descendant of the ITreeElement;
false otherwise
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||