|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
L'interfaccia NTree contiene dei metodi generici per la gestione di un albero.
Method Summary | |
boolean |
getAllowsChildren()
Restituisce se il nodo consente di avere figli, indipendentemente dal fatto che gi� ne abbia oppure no. |
NTree |
getChildAt(int index)
Restituisce un nodo figli in posizione data. |
int |
getChildCount()
Restituisce il conteggio del numero di nodi figli contenuti in questo nodo. |
java.lang.Object |
getData()
Restituisce l'oggetto contenuto in questo nodo. |
NTree |
getParentNode()
Restituisce il nodo genitore di questo nodo. |
boolean |
isLeaf()
Stabilisce se questo � un nodo foglio (senza figli). |
boolean |
isRoot()
Stabilisce se questo � un nodo radice (nodo senza genitore). |
Method Detail |
public boolean isRoot()
true
se questo nodo � un nodo radice, false
altrimenti.public boolean isLeaf()
true
se questo nodo � un nodo radice, false
altrimenti.public java.lang.Object getData()
true
se questo nodo � un nodo radice, false
altrimenti.public NTree getParentNode()
public NTree getChildAt(int index)
index
- la posizione del nodo figli da restituire.
public int getChildCount()
public boolean getAllowsChildren()
true
se il nodo permette gi� figli, false
altrimenti.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |