psdi.webclient.controls

Class DojoTreeNode

  • All Implemented Interfaces:
    java.lang.Cloneable


    public class DojoTreeNode
    extends ControlInstance
    • Field Detail

      • DOJO_TREENODE_RELATION

        public static final java.lang.String DOJO_TREENODE_RELATION
        See Also:
        Constant Field Values
      • DOJO_TREENODE_ATTRIBUTE

        public static final java.lang.String DOJO_TREENODE_ATTRIBUTE
        See Also:
        Constant Field Values
      • DOJO_TREENODE_RELATION_ATTR

        public static final java.lang.String DOJO_TREENODE_RELATION_ATTR
        See Also:
        Constant Field Values
      • DOJO_TREENODE_SORT_ATTR

        public static final java.lang.String DOJO_TREENODE_SORT_ATTR
        See Also:
        Constant Field Values
      • DOJO_TREENODE_ATTRIBUTE_ATTR

        public static final java.lang.String DOJO_TREENODE_ATTRIBUTE_ATTR
        See Also:
        Constant Field Values
      • DOJO_TREENODE_COLUMN_ATTR

        public static final java.lang.String DOJO_TREENODE_COLUMN_ATTR
        See Also:
        Constant Field Values
      • DOJO_TREENODE_OPENFOLDERIMAGE

        public static final java.lang.String DOJO_TREENODE_OPENFOLDERIMAGE
        See Also:
        Constant Field Values
      • DOJO_TREENODE_FOLDERIMAGE

        public static final java.lang.String DOJO_TREENODE_FOLDERIMAGE
        See Also:
        Constant Field Values
      • DOJO_TREENODE_IMAGE

        public static final java.lang.String DOJO_TREENODE_IMAGE
        See Also:
        Constant Field Values
      • DOJO_TREENODE_ATTRIBUTE_SEPARATOR

        public static final java.lang.String DOJO_TREENODE_ATTRIBUTE_SEPARATOR
        See Also:
        Constant Field Values
      • DOJO_TREENODE_OBJECTNAME

        public static final java.lang.String DOJO_TREENODE_OBJECTNAME
        See Also:
        Constant Field Values
      • DOJO_TREENODE_TEXTCSS

        public static final java.lang.String DOJO_TREENODE_TEXTCSS
        See Also:
        Constant Field Values
      • DOJO_TREENODE_DISPLAY

        public static final java.lang.String DOJO_TREENODE_DISPLAY
        See Also:
        Constant Field Values
      • DOJO_TREENODE_SIGOPTION

        public static final java.lang.String DOJO_TREENODE_SIGOPTION
        See Also:
        Constant Field Values
      • DOJO_TREENODE_SIGOPTION_DATASRC

        public static final java.lang.String DOJO_TREENODE_SIGOPTION_DATASRC
        See Also:
        Constant Field Values
      • DOJO_TREENODE_EVENTVALUE

        public static final java.lang.String DOJO_TREENODE_EVENTVALUE
        See Also:
        Constant Field Values
      • DOJO_TREENODE_CONTEXTMENU

        public static final java.lang.String DOJO_TREENODE_CONTEXTMENU
        See Also:
        Constant Field Values
    • Constructor Detail

      • DojoTreeNode

        public DojoTreeNode()
      • DojoTreeNode

        public DojoTreeNode(DojoTree owner,
                            MboRemote representedObject,
                            psdi.webclient.controls.DojoTreeNodePrototype prototype)
    • Method Detail

      • initialize

        public void initialize()
        Description copied from class: BaseInstance
        should be extended to do any setup required by the instance. for example, the DatasrcInstance will call initialize to create data sources found in the bind list.
        Overrides:
        initialize in class ControlInstance
      • getPrototype

        public psdi.webclient.controls.DojoTreeNodePrototype getPrototype()
      • contextmenu

        public int contextmenu()
                        throws java.rmi.RemoteException,
                               MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • getData

        public java.util.Map getData()
      • getSeparator

        protected java.lang.String getSeparator()
      • setPrototype

        protected void setPrototype(psdi.webclient.controls.DojoTreeNodePrototype dojoTreeNodePrototype)
      • setOwner

        protected void setOwner(DojoTree dojoTree)
      • setRepresentedObject

        protected void setRepresentedObject(MboRemote mbo)
      • getRepresentedObject

        public MboRemote getRepresentedObject()
                                       throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • generateChildrenNodes

        protected java.util.List generateChildrenNodes()
                                                throws java.rmi.RemoteException,
                                                       MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • openNode

        public int openNode()
                     throws java.rmi.RemoteException,
                            MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • setOpened

        public void setOpened(boolean value)
      • getChildrenNodes

        public int getChildrenNodes()
                             throws java.rmi.RemoteException,
                                    MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • getChildrenSize

        public int getChildrenSize()
                            throws java.rmi.RemoteException,
                                   MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • toJSON

        public com.ibm.json.java.JSONObject toJSON()
                                            throws java.rmi.RemoteException,
                                                   MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • findTreeNodeById

        protected DojoTreeNode findTreeNodeById(java.lang.String id)
      • sigOptionCheck

        protected void sigOptionCheck()
        Checks to see if the control's sigoption property is set. If it is, then access is checked for the sigoption. If the user desn't have access then the control's visibility is set to false, and inputmode changed to masked. The the user has privileges for the sigoption, then the method looks to see if there are any conditional properties associated with the sigoption and sets them on it's instance.
        Overrides:
        sigOptionCheck in class ControlInstance
      • isChecked

        public boolean isChecked()
                          throws java.rmi.RemoteException,
                                 MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • setChecked

        public int setChecked()
                       throws java.rmi.RemoteException,
                              MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • rightClick

        public int rightClick()
                       throws java.rmi.RemoteException,
                              MXException
        Throws:
        java.rmi.RemoteException
        MXException