psdi.webclient.controls

Class TreeNode

  • All Implemented Interfaces:
    java.lang.Cloneable


    public class TreeNode
    extends ControlInstance
    Control instance and event handler for TreeNode control that is cloned in the parent Tree.
    • Constructor Detail

      • TreeNode

        public TreeNode()
    • Method Detail

      • initialize

        public void initialize()
        Fires routine to create child nodes if this node was meant to be opened by default
        Overrides:
        initialize in class ControlInstance
      • render

        public int render()
                   throws java.lang.NoSuchMethodException,
                          java.lang.IllegalAccessException,
                          java.lang.reflect.InvocationTargetException
        Overridden to gather properties before complete can take place. This method also clones the treenodes.
        Overrides:
        render in class ControlInstance
        Throws:
        java.lang.NoSuchMethodException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
        See Also:
        ControlInstance.render()
      • getNodeLabel

        public java.lang.String getNodeLabel()
        Creates label to be displayed for each node. It makes use of the mandatory dataattribute objectname, keyattribute and all the dataattributes listed in the treeattributes For every treeattribute defined in the presentation for this node, create label based on the mandatory attributes plus the dataattibutes in the treeattribute
        Returns:
        node label
      • isMarkedForDelete

        public boolean isMarkedForDelete()
                                  throws MXException
        Creates label to be displayed for each node. It makes use of the mandotory dataattribute objectname, keyattribute and all the dataattributes listed in the treeattributes For every treeattribute defined in the presentation for this node, create label based on the mandatory attributes plus the dataattibutes in the treeattribute
        Throws:
        MXException
      • setNodeProperties

        public void setNodeProperties(java.util.Hashtable treeNodeInfo)
        Sets properties for this node based on teh collection passed in.
      • selectnode

        public void selectnode()
                        throws MXException,
                               java.rmi.RemoteException
        Called when a node is selected in the tree
        Throws:
        MXException
        java.rmi.RemoteException
      • selectrecord

        public int selectrecord()
                         throws MXException,
                                java.rmi.RemoteException
        Called when a node is selected in the tree
        Throws:
        MXException
        java.rmi.RemoteException
      • togglechildren

        public void togglechildren()
                            throws MXException,
                                   java.rmi.RemoteException
        Called when a node is selected in the tree.
        Throws:
        MXException
        java.rmi.RemoteException
      • isExpanded

        public boolean isExpanded()
        Returns:
        Returns the expanded.
      • expandAllNodes

        public boolean expandAllNodes()
        Returns:
        Returns the expanded.
      • setExpanded

        public void setExpanded(boolean expanded)
        Parameters:
        expanded - The expanded to set.
      • isStartOpened

        public boolean isStartOpened()
        Returns:
        Returns the startOpened.
      • setStartOpened

        public void setStartOpened(boolean startOpened)
        Parameters:
        startOpened - The startOpened to set.
      • hasChildNodes

        public boolean hasChildNodes()
        Returns:
        Returns the hasChildNodes.
      • setHasChildNodes

        public void setHasChildNodes(boolean hasChildNodes)
        Parameters:
        hasChildNodes - The hasChildNodes to set.
      • hasParentNode

        public boolean hasParentNode()
        Returns:
        Returns the hasParentNode.
      • setHasParentNode

        public void setHasParentNode(boolean hasParentNode)
        Parameters:
        hasParentNode - The hasParentNode to set.
      • getNodeData

        public java.lang.Object[] getNodeData()
        Returns:
        Returns the nodeData.
      • setNodeData

        public void setNodeData(java.lang.Object[] nodeData)
        Parameters:
        nodeData - The nodeData to set.
      • getTree

        public Tree getTree()
        Returns:
        Returns the tree.
      • setTree

        public void setTree(Tree tree)
        Parameters:
        tree - The tree to set.
      • isCollapsed

        public boolean isCollapsed()
        Returns:
        Returns the collapsed.
      • setCollapsed

        public void setCollapsed(boolean collapsed)
        Parameters:
        collapsed - The collapsed to set.
      • isFakeMessageNode

        public boolean isFakeMessageNode()
        Returns true if this node is fake Apr 6, 2007
      • createBreadcrumbs

        public void createBreadcrumbs()
        When this node is selected, it creates bread crumbs leading upto to its parents It prepares that the breadcrums as a ArrayList collection where, each element is a Hashtable having following keys
        • uniqueid
        • label
        • selected - true | false
        It sets the breadcrumbs to the Tree from where its called by Breadcrums control via reflection. Apr 6, 2007
      • isLastChildForParent

        public boolean isLastChildForParent()
        Returns true if this is the last node in a parent's hierarchy May 24, 2007
      • setLastChildForParent

        public void setLastChildForParent(boolean lastNode)
        Set flag for this node's being in last position in a parent's hierarchy May 24, 2007
      • isFirstChildForParent

        public boolean isFirstChildForParent()
        Returns true if this is the first node in a parent's hierarchy
      • setFirstChildForParent

        public void setFirstChildForParent(boolean firstChildForParent)
        Set flag for this node's being in first position in a parent's hierarchy
      • getKeyValue

        public java.lang.String getKeyValue()
        Returns key value for this node Thsi method return a string which is embedded in the HTML image for QA automation. May 30, 2007
      • isDataHidden

        public boolean isDataHidden()
        Returns true if data for this node is hidden
      • setDataHidden

        public void setDataHidden(boolean setDataHidden)
        Used to set the flag for data being hidden for this node.
        Parameters:
        setDataHidden -