Package ghidra.framework.main.datatree
Class DomainFolderRootNode
- java.lang.Object
-
- docking.widgets.tree.AbstractGTreeNode
-
- docking.widgets.tree.GTreeLazyNode
-
- ghidra.framework.main.datatree.DomainFolderNode
-
- ghidra.framework.main.datatree.DomainFolderRootNode
-
- All Implemented Interfaces:
GTreeNode
,GTreeRootNode
,Cuttable
,java.lang.Comparable<GTreeNode>
,java.lang.Iterable<GTreeNode>
public class DomainFolderRootNode extends DomainFolderNode implements GTreeRootNode
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class docking.widgets.tree.AbstractGTreeNode
AbstractGTreeNode.AllPathsIterator
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes this node and all of its descendants.protected void
doAddNode(int index, GTreeNode child)
protected java.util.List<GTreeNode>
doGetActiveChildren()
protected int
doGetAllChildCount()
protected java.util.List<GTreeNode>
doGetAllChildren()
protected GTreeNode
doGetChild(int index)
protected int
doGetChildCount()
protected int
doGetIndexOfChild(GTreeNode node)
protected 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.protected void
doResetActiveChildren()
Convenience method to clear any filtered items by restoring the active children of this node to be the complete set of children.protected void
doSetActiveChildren(java.util.List<GTreeNode> childList)
protected void
doSetChildren(java.util.List<GTreeNode> childList, boolean notify)
void
fireNodeChanged(GTreeNode parentNode, GTreeNode node)
Notifies the tree that a node has changed.void
fireNodeStructureChanged(GTreeNode node)
Notifies the tree that the node has different children.GTree
getGTree()
javax.swing.Icon
getIcon(boolean expanded)
Returns the Icon to be displayed for this node in the tree.java.lang.String
getName()
Returns the name of the node to be displayed in the treeGTreeNode
getParent()
Returns the parent of this node.java.lang.String
getToolTip()
Returns the string to be displayed as a tooltip when the user hovers the mouse on this node in the tree.protected boolean
isChildrenLoaded()
boolean
isChildrenLoadedOrInProgress()
boolean
isInProgress()
Returns true if this node is currently being modified.void
removeNode(GTreeNode node)
Remove the given node from this node.void
setGTree(GTree tree)
protected void
setInProgress()
protected void
swingSetChildren(java.util.List<GTreeNode> childList, boolean notify, boolean onlyIfInProgress)
-
Methods inherited from class ghidra.framework.main.datatree.DomainFolderNode
compareTo, equals, generateChildren, getDomainFileFilter, getDomainFolder, hashCode, isCut, isEditable, isLeaf, setIsCut, toString, valueChanged
-
Methods inherited from class docking.widgets.tree.GTreeLazyNode
addNode, getAllChildrenIfLoaded, loadChildren
-
Methods inherited from class docking.widgets.tree.AbstractGTreeNode
addNode, allPaths, clearFilter, filter, getAllChildCount, getAllChildren, getChild, getChild, getChildCount, getChildren, getFilter, getIndexInParent, getIndexOfChild, getLeafCount, getNodeCount, getRoot, getTree, getTreePath, isAncestor, isFilteredOut, iterator, removeAll, setChildren
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface docking.widgets.tree.GTreeNode
addNode, addNode, clearFilter, filter, fireNodeChanged, fireNodeStructureChanged, getAllChildCount, getAllChildren, getChild, getChild, getChildCount, getChildren, getIndexInParent, getIndexOfChild, getLeafCount, getNodeCount, getParent, getRoot, getTree, getTreePath, isAncestor, isEditable, isFilteredOut, isInProgress, isLeaf, removeAll, removeNode, setChildren, valueChanged
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:GTreeNode
Returns the name of the node to be displayed in the tree- Specified by:
getName
in interfaceGTreeNode
- Overrides:
getName
in classDomainFolderNode
- Returns:
- the name of the node.
-
getGTree
public GTree getGTree()
- Specified by:
getGTree
in interfaceGTreeRootNode
-
setGTree
public void setGTree(GTree tree)
- Specified by:
setGTree
in interfaceGTreeRootNode
-
dispose
public void dispose()
Description copied from interface:GTreeNode
Disposes this node and all of its descendants.
-
getToolTip
public java.lang.String getToolTip()
Description copied from interface:GTreeNode
Returns the string to be displayed as a tooltip when the user hovers the mouse on this node in the tree.- Specified by:
getToolTip
in interfaceGTreeNode
- Overrides:
getToolTip
in classDomainFolderNode
- Returns:
- the tooltip to be displayed.
-
getIcon
public javax.swing.Icon getIcon(boolean expanded)
Description copied from interface:GTreeNode
Returns the Icon to be displayed for this node in the tree.- Specified by:
getIcon
in interfaceGTreeNode
- Overrides:
getIcon
in classDomainFolderNode
- Parameters:
expanded
- true if the node is expanded.- Returns:
- the icon to be displayed for this node in the tree.
-
getParent
public GTreeNode getParent()
Description copied from interface:GTreeNode
Returns the parent of this node.
-
isInProgress
public boolean isInProgress()
Description copied from interface:GTreeNode
Returns true if this node is currently being modified.- Specified by:
isInProgress
in interfaceGTreeNode
- Returns:
- true if this node is currently being modified.
-
setInProgress
protected void setInProgress()
-
isChildrenLoadedOrInProgress
public boolean isChildrenLoadedOrInProgress()
-
isChildrenLoaded
protected boolean isChildrenLoaded()
-
doGetChildCount
protected int doGetChildCount()
-
doGetAllChildCount
protected int doGetAllChildCount()
-
doGetAllChildren
protected java.util.List<GTreeNode> doGetAllChildren()
-
doGetActiveChildren
protected java.util.List<GTreeNode> doGetActiveChildren()
-
doGetChild
protected GTreeNode doGetChild(int index)
-
doGetIndexOfChild
protected int doGetIndexOfChild(GTreeNode node)
-
doGetIndexOfChild
protected 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 seekchildren
- the children who contain the given node (may be null)- Returns:
- the index of the given child in the given list
-
doAddNode
protected void doAddNode(int index, GTreeNode child)
-
removeNode
public void removeNode(GTreeNode node)
Description copied from interface:GTreeNode
Remove the given node from this node.- Specified by:
removeNode
in interfaceGTreeNode
- Parameters:
node
- the to be removed.
-
doSetChildren
protected void doSetChildren(java.util.List<GTreeNode> childList, boolean notify)
-
swingSetChildren
protected void swingSetChildren(java.util.List<GTreeNode> childList, boolean notify, boolean onlyIfInProgress)
-
doSetActiveChildren
protected void doSetActiveChildren(java.util.List<GTreeNode> childList)
-
doResetActiveChildren
protected void doResetActiveChildren()
Convenience method to clear any filtered items by restoring the active children of this node to be the complete set of children.
-
fireNodeChanged
public void fireNodeChanged(GTreeNode parentNode, GTreeNode node)
Description copied from interface:GTreeNode
Notifies the tree that a node has changed.- Specified by:
fireNodeChanged
in interfaceGTreeNode
- Parameters:
parentNode
- the node that contains the node that was changed.node
- the that changed.
-
fireNodeStructureChanged
public void fireNodeStructureChanged(GTreeNode node)
Description copied from interface:GTreeNode
Notifies the tree that the node has different children. This method- Specified by:
fireNodeStructureChanged
in interfaceGTreeNode
- Parameters:
node
- the node that has changed.
-
-