Package docking.widgets.tree.internal
Class InProgressGTreeRootNode
- java.lang.Object
- 
- docking.widgets.tree.AbstractGTreeNode
- 
- docking.widgets.tree.AbstractGTreeRootNode
- 
- docking.widgets.tree.internal.InProgressGTreeRootNode
 
 
 
- 
- All Implemented Interfaces:
- GTreeNode,- GTreeRootNode,- java.lang.Comparable<GTreeNode>,- java.lang.Iterable<GTreeNode>
 
 public class InProgressGTreeRootNode extends AbstractGTreeRootNode 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class docking.widgets.tree.AbstractGTreeNodeAbstractGTreeNode.AllPathsIterator
 
- 
 - 
Constructor SummaryConstructors Constructor Description InProgressGTreeRootNode()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Disposes this node and all of its descendants.protected voiddoAddNode(int index, GTreeNode child)protected java.util.List<GTreeNode>doGetActiveChildren()protected intdoGetAllChildCount()protected java.util.List<GTreeNode>doGetAllChildren()protected GTreeNodedoGetChild(int index)protected intdoGetChildCount()protected intdoGetIndexOfChild(GTreeNode node)protected intdoGetIndexOfChild(GTreeNode node, java.util.List<GTreeNode> children)Subclasses can override this method to perform faster lookups of a node; for example, if the subclass has a sorted list of children, then a binary search can be used.protected voiddoResetActiveChildren()Convenience method to clear any filtered items by restoring the active children of this node to be the complete set of children.protected voiddoSetActiveChildren(java.util.List<GTreeNode> childList)protected voiddoSetChildren(java.util.List<GTreeNode> childList, boolean notify)voidfireNodeChanged(GTreeNode parentNode, GTreeNode node)Notifies the tree that a node has changed.voidfireNodeStructureChanged(GTreeNode node)Notifies the tree that the node has different children.javax.swing.IcongetIcon(boolean expanded)Returns the Icon to be displayed for this node in the tree.java.lang.StringgetName()Returns the name of the node to be displayed in the treeGTreeNodegetParent()Returns the parent of this node.java.lang.StringgetToolTip()Returns the string to be displayed as a tooltip when the user hovers the mouse on this node in the tree.protected booleanisChildrenLoaded()booleanisChildrenLoadedOrInProgress()booleanisInProgress()Returns true if this node is currently being modified.booleanisLeaf()Returns true if this node never has children.voidremoveNode(GTreeNode node)Remove the given node from this node.protected voidsetInProgress()protected voidswingSetChildren(java.util.List<GTreeNode> childList, boolean notify, boolean onlyIfInProgress)- 
Methods inherited from class docking.widgets.tree.AbstractGTreeRootNodegetGTree, setGTree
 - 
Methods inherited from class docking.widgets.tree.AbstractGTreeNodeaddNode, addNode, allPaths, clearFilter, compareTo, filter, getAllChildCount, getAllChildren, getChild, getChild, getChildCount, getChildren, getFilter, getIndexInParent, getIndexOfChild, getLeafCount, getNodeCount, getRoot, getTree, getTreePath, hashCode, isAncestor, isEditable, isFilteredOut, iterator, loadChildren, removeAll, setChildren, toString, valueChanged
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface docking.widgets.tree.GTreeNodeaddNode, addNode, clearFilter, dispose, filter, fireNodeChanged, fireNodeStructureChanged, getAllChildCount, getAllChildren, getChild, getChild, getChildCount, getChildren, getIndexInParent, getIndexOfChild, getLeafCount, getNodeCount, getParent, getRoot, getTree, getTreePath, isAncestor, isEditable, isFilteredOut, isInProgress, removeAll, removeNode, setChildren, valueChanged
 
- 
 
- 
- 
- 
Method Detail- 
getNamepublic java.lang.String getName() Description copied from interface:GTreeNodeReturns the name of the node to be displayed in the tree- Returns:
- the name of the node.
 
 - 
getIconpublic javax.swing.Icon getIcon(boolean expanded) Description copied from interface:GTreeNodeReturns the Icon to be displayed for this node in the tree.- Parameters:
- expanded- true if the node is expanded.
- Returns:
- the icon to be displayed for this node in the tree.
 
 - 
getToolTippublic java.lang.String getToolTip() Description copied from interface:GTreeNodeReturns the string to be displayed as a tooltip when the user hovers the mouse on this node in the tree.- Returns:
- the tooltip to be displayed.
 
 - 
isLeafpublic boolean isLeaf() Description copied from interface:GTreeNodeReturns true if this node never has children.- Returns:
- true if this node is a leaf.
 
 - 
getParentpublic GTreeNode getParent() Description copied from interface:GTreeNodeReturns the parent of this node.
 - 
disposepublic void dispose() Description copied from interface:GTreeNodeDisposes this node and all of its descendants.
 - 
isInProgresspublic boolean isInProgress() Description copied from interface:GTreeNodeReturns true if this node is currently being modified.- Specified by:
- isInProgressin interface- GTreeNode
- Returns:
- true if this node is currently being modified.
 
 - 
setInProgressprotected void setInProgress() 
 - 
isChildrenLoadedOrInProgresspublic boolean isChildrenLoadedOrInProgress() 
 - 
isChildrenLoadedprotected boolean isChildrenLoaded() 
 - 
doGetChildCountprotected int doGetChildCount() 
 - 
doGetAllChildCountprotected int doGetAllChildCount() 
 - 
doGetAllChildrenprotected java.util.List<GTreeNode> doGetAllChildren() 
 - 
doGetActiveChildrenprotected java.util.List<GTreeNode> doGetActiveChildren() 
 - 
doGetChildprotected GTreeNode doGetChild(int index) 
 - 
doGetIndexOfChildprotected int doGetIndexOfChild(GTreeNode node) 
 - 
doGetIndexOfChildprotected int doGetIndexOfChild(GTreeNode node, java.util.List<GTreeNode> children) Subclasses can override this method to perform faster lookups of a node; for example, if the subclass has a sorted list of children, then a binary search can be used.- Parameters:
- node- the node whose index we seek
- children- the children who contain the given node (may be null)
- Returns:
- the index of the given child in the given list
 
 - 
doAddNodeprotected void doAddNode(int index, GTreeNode child)
 - 
removeNodepublic void removeNode(GTreeNode node) Description copied from interface:GTreeNodeRemove the given node from this node.- Specified by:
- removeNodein interface- GTreeNode
- Parameters:
- node- the to be removed.
 
 - 
doSetChildrenprotected void doSetChildren(java.util.List<GTreeNode> childList, boolean notify) 
 - 
swingSetChildrenprotected void swingSetChildren(java.util.List<GTreeNode> childList, boolean notify, boolean onlyIfInProgress) 
 - 
doSetActiveChildrenprotected void doSetActiveChildren(java.util.List<GTreeNode> childList) 
 - 
doResetActiveChildrenprotected void doResetActiveChildren() Convenience method to clear any filtered items by restoring the active children of this node to be the complete set of children.
 - 
fireNodeChangedpublic void fireNodeChanged(GTreeNode parentNode, GTreeNode node) Description copied from interface:GTreeNodeNotifies the tree that a node has changed.- Specified by:
- fireNodeChangedin interface- GTreeNode
- Parameters:
- parentNode- the node that contains the node that was changed.
- node- the that changed.
 
 - 
fireNodeStructureChangedpublic void fireNodeStructureChanged(GTreeNode node) Description copied from interface:GTreeNodeNotifies the tree that the node has different children. This method- Specified by:
- fireNodeStructureChangedin interface- GTreeNode
- Parameters:
- node- the node that has changed.
 
 
- 
 
-