Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public class SynchronizingMutableTreeNode<E> extends DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject| Constructor and Description |
|---|
SynchronizingMutableTreeNode() |
SynchronizingMutableTreeNode(Object userObject) |
SynchronizingMutableTreeNode(Object userObject,
boolean allowsChildren) |
| Modifier and Type | Method and Description |
|---|---|
void |
synchronize(DefaultTreeModel treeModel,
List<Node<E>> children)
Synchronizes the children of this node with the provided children
while adding and removing only a minimum number of nodes.
|
void |
synchronize(DefaultTreeModel treeModel,
Tree<E> tree)
Synchronizes the children of this node with the roots of the provided
tree while adding and removing only a minimum number of nodes.
|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toStringpublic SynchronizingMutableTreeNode()
public SynchronizingMutableTreeNode(Object userObject)
public SynchronizingMutableTreeNode(Object userObject, boolean allowsChildren)
public void synchronize(DefaultTreeModel treeModel, Tree<E> tree) throws IOException, SQLException
IOExceptionSQLExceptionpublic void synchronize(DefaultTreeModel treeModel, List<Node<E>> children) throws IOException, SQLException
children - If children is null, then doesn't allow children.IOExceptionSQLExceptionCopyright © 2000–2016 AO Industries, Inc.. All rights reserved.