psdi.webclient.beans.designer

Class AppContentTreeBean

  • All Implemented Interfaces:
    java.util.EventListener, javax.servlet.http.HttpSessionBindingListener, DataBeanListener


    public class AppContentTreeBean
    extends TreeControlBean
    • Field Detail

      • currentNode

        protected java.lang.String[] currentNode
    • Constructor Detail

      • AppContentTreeBean

        public AppContentTreeBean()
    • 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 TreeControlBean
        Throws:
        MXException
        java.rmi.RemoteException
      • getTop

        public java.lang.Object[][] getTop(java.lang.String[] dataattributes,
                                           int maxchildren)
                                    throws MXException,
                                           java.rmi.RemoteException
        Description copied from class: TreeControlBean
        Gets the top nodes for the tree structure.
        Overrides:
        getTop in class TreeControlBean
        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
        Description copied from class: TreeControlBean
        Gets childnre for a given node
        Overrides:
        getChildren in class TreeControlBean
        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
        Description copied from class: TreeControlBean
        Sets the reference point for starting of the hierarchy
        Overrides:
        setHierarchy in class TreeControlBean
        Throws:
        MXException
        java.rmi.RemoteException - Apr 16, 2007
      • getMboValueData

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

        public int selectnode()
                       throws MXException,
                              java.rmi.RemoteException
        Description copied from class: TreeControlBean
        Handles the selectnode event fired from the frontend or through TreeNode It gets MBo for the uniqueid passed whena a node is selected
        Overrides:
        selectnode in class TreeControlBean
        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
        Description copied from class: TreeControlBean
        Sets the current node using the objectname, new uniqueidname and its value.
        Overrides:
        setcurrentnode in class TreeControlBean
        Throws:
        MXException
        java.rmi.RemoteException - Apr 16, 2007