Interface ITreeNodeFactory
public interface ITreeNodeFactory
Defines the interface to be provided by classes wanting to contribute to the Navigator Tree
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChildrenToTreeNode
(TreeNode parent) Explorer UI calls this method to allow plugins to add child TreeNodes to each TreeNode as it is first added to the Navigation tree.
-
Field Details
-
COPYRIGHT_NOTICE
Common copyright notice- See Also:
-
SCCSID
CMVC descriptors - expanded during extraction- See Also:
-
-
Method Details
-
addChildrenToTreeNode
Explorer UI calls this method to allow plugins to add child TreeNodes to each TreeNode as it is first added to the Navigation tree.When implementing this method, the method
getId()
should be called on the parent TreeNode to ensure children are only added to the required parent TreeNode(s). This is also important to ensure that the factory does not recursively add children to children that it adds.For example, to only add a child TreeNode to the WebSphere MQ TreeNode:
void addChildrenToTreeNode(TreeNode parent) { String parentId = parent.getId(); if (parentId.compareTo(TreeNodeId.NODEID_WMQ) == 0) { // add child tree node here } }
- Parameters:
parent
- parent TreeNode
-