|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
org.embl.ebi.escience.baclava.iterator.JoinIteratorNode
public class JoinIteratorNode
A DefaultMutableTreeNode implementing ResumableIterator which wraps a JoinIterator.
| Field Summary |
|---|
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
EMPTY_ENUMERATION |
| Constructor Summary | |
|---|---|
JoinIteratorNode()
Create a new JoinIteratorNode, calls to insert(...) will add iterators to the join. |
|
| Method Summary | |
|---|---|
boolean |
getAllowsChildren()
JoinIteratorNode objects rely on their children to provide them with objects to iterate over, they do not contain any collections themselves |
int[] |
getCurrentLocation()
Return the current location |
boolean |
hasNext()
Return true if calls to next() will succeed |
void |
insert(javax.swing.tree.MutableTreeNode node,
int index)
Trap any calls to add children and forcibly reset everything |
boolean |
isLeaf()
JoinIteratorNode objects are never leaves in the tree or at least shouldn't act as such. |
java.lang.Object |
next()
Return a Map of named objects derived from any iterator nodes attached to this one as children. |
void |
remove()
Calls to the remove operation are not allowed from this iterator |
void |
reset()
Reset the underlying JoinIterator |
int |
size()
Return the size of the underlying JoinIterator |
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JoinIteratorNode()
| Method Detail |
|---|
public java.lang.Object next()
next in interface java.util.Iteratorpublic boolean hasNext()
hasNext in interface java.util.Iteratorpublic int[] getCurrentLocation()
getCurrentLocation in interface ResumableIteratorpublic void reset()
reset in interface ResumableIteratorpublic int size()
size in interface ResumableIterator
public void remove()
throws java.lang.UnsupportedOperationException
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationException
public void insert(javax.swing.tree.MutableTreeNode node,
int index)
insert in interface javax.swing.tree.MutableTreeNodeinsert in class javax.swing.tree.DefaultMutableTreeNodepublic boolean isLeaf()
isLeaf in interface javax.swing.tree.TreeNodeisLeaf in class javax.swing.tree.DefaultMutableTreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface javax.swing.tree.TreeNodegetAllowsChildren in class javax.swing.tree.DefaultMutableTreeNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||