public interface ITreeNodeFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT_NOTICE
Common copyright notice
|
static java.lang.String |
SCCSID
CMVC descriptors - expanded during extraction
|
Modifier and Type | Method and Description |
---|---|
void |
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.
|
static final java.lang.String COPYRIGHT_NOTICE
static final java.lang.String SCCSID
void addChildrenToTreeNode(TreeNode parent)
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 } }
parent
- parent TreeNode