psdi.webclient.beans.common

Class TreeControlBean

    • Field Detail

      • objectname

        protected java.lang.String objectname
      • uniqueidname

        protected java.lang.String uniqueidname
      • uniqueidvalue

        protected java.lang.String uniqueidvalue
      • refreshTree

        protected boolean refreshTree
      • ignoreTreeRefresh

        protected boolean ignoreTreeRefresh
    • Constructor Detail

      • TreeControlBean

        public TreeControlBean()
    • Method Detail

      • initialize

        protected void initialize()
                           throws MXException,
                                  java.rmi.RemoteException
        Description copied from class: DataBean
        Typically called after the DataBean gets a new MboSetRemote On the MboSetRemote it sets the app, the app defaults, user defaults If the remote is an instanceof NonPersistentMboSetRemote then setup is called on it and sets the current row to 0. If the DataBean isn't bound to a table then initialize fetches the first mbo (sets the current row to 0). If this method is overridden under most case you will want to call super.initalize at the end of the the new initialize method.
        Overrides:
        initialize in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • selectnode

        public int selectnode()
                       throws MXException,
                              java.rmi.RemoteException
        Handles the selectnode event fired from the frontend or through TreeNode It gets MBo for the uniqueid passed whena a node is selected
        Returns:
        EVENT_HANDLED;
        Throws:
        MXException
        java.rmi.RemoteException
      • setcurrentnode

        public void setcurrentnode(java.lang.String newobjectname,
                                   java.lang.String newuniqueidname,
                                   java.lang.String newuniqueidvalue)
                            throws MXException,
                                   java.rmi.RemoteException
        Sets the current node using the objectname, new uniqueidname and its value.
        Parameters:
        newobjectname -
        newuniqueidname -
        newuniqueidvalue -
        Throws:
        MXException
        java.rmi.RemoteException - Apr 16, 2007
      • getTop

        public java.lang.Object[][] getTop(java.lang.String[] dataattributes,
                                           int maxchildren)
                                    throws MXException,
                                           java.rmi.RemoteException
        Gets the top nodes for the tree structure.
        Parameters:
        dataattributes -
        maxchildren -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException - Apr 16, 2007
      • getChildren

        public java.lang.Object[][] getChildren(java.lang.String objectname,
                                                java.lang.String uniqueid,
                                                java.lang.String[] dataattributes,
                                                int maxchildren)
                                         throws MXException,
                                                java.rmi.RemoteException
        Gets childnre for a given node
        Parameters:
        objectname -
        uniqueid -
        dataattributes -
        maxchildren -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException - Apr 16, 2007
      • getPathToTop

        public java.lang.Object[][] getPathToTop(java.lang.String objectname,
                                                 java.lang.String uniqueid,
                                                 java.lang.String[] dataattributes,
                                                 int maxchildren)
                                          throws MXException,
                                                 java.rmi.RemoteException
        Gets Path to Top for a given node
        Parameters:
        objectname -
        uniqueid -
        dataattributes -
        maxchildren -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException - Apr 16, 2007
      • getMboValueData

        public java.lang.Object[] getMboValueData(java.lang.String[] dataattributes)
                                           throws MXException,
                                                  java.rmi.RemoteException
        Gets data a for givens et of attributes from the current mbo
        Parameters:
        dataattributes -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException - Apr 16, 2007
      • setHierarchy

        public void setHierarchy(java.lang.String objectname,
                                 java.lang.String uniqueid,
                                 java.lang.String hierarchy)
                          throws MXException,
                                 java.rmi.RemoteException
        Sets the reference point for starting of the hierarchy
        Parameters:
        objectname -
        uniqueid -
        hierarchy -
        Throws:
        MXException
        java.rmi.RemoteException - Apr 16, 2007
      • getobjectname

        public java.lang.String getobjectname()
        Returns Object name
        Returns:
        String Apr 16, 2007
      • setobjectname

        public void setobjectname(java.lang.String newobjectname)
        Sets objectname
        Parameters:
        newobjectname - Apr 16, 2007
      • getuniqueidname

        public java.lang.String getuniqueidname()
        Returns uniqueidname
        Returns:
        String Apr 16, 2007
      • setuniqueidname

        public void setuniqueidname(java.lang.String newuniqueidname)
        Sets uniqueidname
        Parameters:
        newuniqueidname - Apr 16, 2007
      • getuniqueidvalue

        public java.lang.String getuniqueidvalue()
        Returns uniqueidvalue
        Returns:
        Apr 16, 2007
      • setuniqueidvalue

        public void setuniqueidvalue(java.lang.String newuniqueidvalue)
        Sets uniqueidvalue
        Parameters:
        newuniqueidvalue - Apr 16, 2007
      • setRefreshTree

        public void setRefreshTree(boolean flag)
        Sets flag for tree refresh
        Parameters:
        flag - Apr 16, 2007
      • getRefreshTree

        public boolean getRefreshTree()
      • storeProperties

        protected void storeProperties()
        Called from DrillDownBean to store information for the hierarchy. This is a fail safe method
      • getSourceAttributeValue

        public java.lang.String getSourceAttributeValue()
        Returns:
        Source Attribute proeprty as String Apr 10, 2007
      • setSourceAttributeValue

        public void setSourceAttributeValue(java.lang.String sourceAttributevalue)
        Sets new source attribute
        Parameters:
        sourceAttributevalue - Apr 10, 2007
      • getSourceDataAttribute

        public java.lang.String getSourceDataAttribute()
        Returns:
        Source Data Attribute proeprty as String Apr 10, 2007
      • setSourceDataAttribute

        public void setSourceDataAttribute(java.lang.String sourceDataattribute)
        Sets new source data attribute
        Parameters:
        sourceAttributevalue - Apr 10, 2007
      • getBreadcrumbs

        public java.util.ArrayList getBreadcrumbs()
        Skeleon method which can be implemented to return an array list of breadcrumbs expected by the Breadcrums control. This will only eb called when the id of the bean is linked to "breadcrumsourceid" proeprty of the breadcrumbs control
        It should prepare the breadcrums as an ArrayList collection where each element is a Hashtable having following keys
        • uniqueid
        • label
        • selected - true | false
        Returns:
        ArrayList Apr 10, 2007
      • clearbreadcrumbs

        public int clearbreadcrumbs()
      • getBoundTree

        public Tree getBoundTree()
        Returns the tree control bound to this bean
        Returns:
        Tree control instance
      • markTreesForRefresh

        public void markTreesForRefresh(java.lang.String dontRefreshMe)
        Marks all trees on current page to be refreshed except this one when next render come around to this one. This is done to by pass structure changed event
      • setIgnoreTreeRefresh

        public void setIgnoreTreeRefresh(boolean ignoreTreeRefresh)
        Flag to avoid calling markTreesForRefresh
        Parameters:
        ignoreTreeRefresh -