|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface TreeAdapter
Used as an adapter between an already existing tree model and this collections library.
A few well known trees already have implementations in this library, such as TreeModelAdapter for Swing's TreeModel interface and DOMAdapter for XML DOM.
DOMAdapter,
TreeModelAdapter| Method Summary | |
|---|---|
java.lang.Iterable<java.lang.Object> |
getChildren(java.lang.Object node)
Retrieves the children of the node specified. |
java.lang.Object |
getRoot()
Retrieves the root of the tree. |
| Method Detail |
|---|
java.lang.Iterable<java.lang.Object> getChildren(java.lang.Object node)
node - The node to retrieve the children for.
java.lang.Object getRoot()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||