com.ibm.mq.explorer.ui.extensions

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 and Description
      static java.lang.String COPYRIGHT_NOTICE
      Common copyright notice
      static java.lang.String SCCSID
      CMVC descriptors - expanded during extraction
    • Field Detail

      • COPYRIGHT_NOTICE

        static final java.lang.String COPYRIGHT_NOTICE
        Common copyright notice
        See Also:
        Constant Field Values
      • SCCSID

        static final java.lang.String SCCSID
        CMVC descriptors - expanded during extraction
        See Also:
        Constant Field Values
    • Method Detail

      • 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