|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TreeElement
Represents an element of a tree model.
| Method Summary | |
|---|---|
void |
add(TreeElement element)
Add a tree element to the element. |
void |
addAll(Iterable<? extends TreeElement> elements)
Add all the elements to the element. |
void |
clear()
Clear the element. |
TreeElement |
getChild(int index)
Return the child a the specified index. |
int |
getChildCount()
Return the number of childs. |
String |
getElementName()
Return the name of the element. |
Icon |
getIcon()
Return the icon of the element. |
int |
indexOf(TreeElement treeElement)
Return the index of the specified element. |
boolean |
isCategory()
Indicate if the element is a category or not. |
boolean |
isLeaf()
Indicate if the element is a leaf or not. |
boolean |
isRoot()
Indicate if the element is root or not. |
| Method Detail |
|---|
String getElementName()
Icon getIcon()
boolean isRoot()
true if the element is the root else false.boolean isCategory()
true if the element is a category else false.boolean isLeaf()
true if the element is a leaf else false.TreeElement getChild(int index)
index - The index.
null.int getChildCount()
int indexOf(TreeElement treeElement)
treeElement - The element to search.
-1.void add(TreeElement element)
element - The element to add.void addAll(Iterable<? extends TreeElement> elements)
elements - The elements to add.void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||