Interface ITreeNodeFactory


public interface ITreeNodeFactory
Defines the interface to be provided by classes wanting to contribute to the Navigator Tree
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Common copyright notice
    static final String
    CMVC descriptors - expanded during extraction
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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

  • Method Details

    • addChildrenToTreeNode

      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.

      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