Architecture Diagrams for /JabRef/jabref  WARNING: Processor stopped at maximum of 1350 files. Some objects might not be visible.[edit]
Packages / org.jabref.model / TreeNode

abstract class TreeNode

Represents a node in a tree. Usually, tree nodes have a value property which allows access to the value stored in the node. In contrast to this approach, the TreeNode<T> class is designed to be used as a base class which provides the tree traversing functionality via inheritance. Example usage: private class BasicTreeNode extends TreeNode<BasicTreeNode> { public BasicTreeNode() { super(BasicTreeNode.class); } } This class started out as a copy of javax.swing.tree.DefaultMutableTreeNode.
Class fields and methodsA
abstract class TreeNode
Represents a node in a tree. Usually, tree nodes have a value property ...
constructor TreeNode(derivingClass)
method addChild()
method addChild(child)
method addChild(child,index)
method childIndexExists(index)
A
method copyNode()
method copySubtree()
method findChildrenSatisfying(matcher)
method getChildAt(index)
method getChildren()
method getDescendant(indexedPath)
method getFirstChild()
method getIndexOfChild()
method getIndexOfChild(childNode)
method getIndexedPathFromRoot()
method getLastChild()
method getLevel()
method getNextSibling()
method getNumberOfChildren()
method getParent()
method getPathFromRoot()
method getPositionInParent()
method getPreviousSibling()
method getRelativeSibling(shiftIndex)
method getRoot()
method isAncestorOf(anotherNode)
method isLeaf()
method isNodeDescendant(anotherNode)
method isRoot()
method moveAllChildrenTo()
method moveAllChildrenTo(target,targetIndex)
method moveTo()
method moveTo(target)
method moveTo(target,targetIndex)
method notifyAboutDescendantChange(source)
method removeAllChildren()
method removeChild(child)
method removeChild(childIndex)
method removeFromParent()
method setParent(parent)
method sortChildren(comparator,recursive)
method subscribeToDescendantChanged(subscriber)
Constructs a tree node without parent and no children.
Adds the node at the end the children collection. Also sets the parent ...
Adds the node at the given position in the children collection. Also se...
Returns whether the specified index is a valid index for a child.
Creates a copy of this node, completely separated from the tree (i.e. n...
Creates a deep copy of this node and all of its children.
Returns the group and any of its children in the tree satisfying the gi...
Returns the child at the specified index in this node's children collec...
Gets a forward-order list of this node's children. <p> The returned lis...
Get the descendant of this node as indicated by the indexedPath. <p> If...
Returns this node's first child if it exists (otherwise returns an empt...
Gets the index of the specified child in this node's child list. <p> If...
Get the path from the root node to this node. <p> The elements in the r...
Returns this node's last child if it exists (otherwise returns an empty...
Gets the number of levels above this node, i.e. the distance from the r...
Returns the next sibling of this node in the parent's children list. Re...
Returns the number of children of this node.
Returns this node's parent or an empty Optional if this node has no par...
Returns the path from the root, to get to this node. The last element i...
Get the child index of this node in its parent. <p> If this node is a r...
Returns the previous sibling of this node in the parent's children list...
Returns the sibling which is shiftIndex away from this node.
Returns the root of the tree that contains this node. The root is the a...
Returns true if this node is an ancestor of the given node. <p> A node ...
Returns true if this node has no children.
Returns true if anotherNode is a descendant of this node -- if it is th...
Returns true if this node is the root of the tree. The root is the only...
Removes all children from this node and makes them a child of the speci...
Removes this node from its parent and makes it a child of the specified...
Removes this node from its parent and makes it a child of the specified...
Helper method which notifies all subscribers about a change in the subt...
Removes all of this node's children, setting their parents to empty. If...
Removes the given child from this node's child list, giving it an empty...
Removes the child at the specified index from this node's children and ...
Removes the subtree rooted at this node from the tree, giving this node...
Sets the parent node of this node. <p> This method does not add this no...
Sorts the list of children according to the order induced by the specif...
Adds the given function to the list of subscribers which are notified w...