|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.myarch.treeiterator.SwingAdapter
TreeNodeAdapter implementation for
javax.swing.tree.TreeNode
| Constructor Summary | |
SwingAdapter()
|
|
| Method Summary | |
java.util.Iterator |
getChildren(java.lang.Object node)
Returns java.util.Iterator to iterate over children of the node.
|
boolean |
hasChildren(java.lang.Object node)
Returns true if the node has children. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SwingAdapter()
| Method Detail |
public java.util.Iterator getChildren(java.lang.Object node)
java.util.Iterator to iterate over children of the node.
EnumarationAdapter is used since TreeNode doesn't
implement the Iterator interface directly.getChildren in interface TreeNodeAdapternode - nodejava.util.Iterator for the collection that contains children
of the given node.public boolean hasChildren(java.lang.Object node)
hasChildren in interface TreeNodeAdapternode - nodetrue if the node has children
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||