psdi.webclient.controls

Class DojoTree

  • All Implemented Interfaces:
    java.lang.Cloneable


    public class DojoTree
    extends DatasrcInstance
    • Constructor Detail

      • DojoTree

        public DojoTree()
    • Method Detail

      • initialize

        public void initialize()
        Overridden to setup the databean to use speecific dobjectName and dataattribute. Gets and stores the source control for this tree, usually when the tree is launched from the dialog. If this tree was launched from a detail menu, then capture the attributes. Also gets the properties to be used by the tree control. After the properties have been set, this method will also initialise the data bean behind the tree.
        Overrides:
        initialize in class ControlInstance
        See Also:
        DataBean.initialize()
      • getColumns

        public java.util.List getColumns()
        It will return all columns defined, only if the tree must be displayed as a grid
        Returns:
        a list of columns, or empty if the grid=false
      • dropableObjects

        public com.ibm.json.java.JSONObject dropableObjects()
        This method will return a map containing objectnames, and for each, a list of objectname the drag'n'drop feature is allowed for
        Returns:
      • hasDragNDrop

        public boolean hasDragNDrop()
        Returns:
        true if the the drag'n'drop feature is activated on the control
      • hasCheckBoxes

        public boolean hasCheckBoxes()
        Returns:
        true if the checkbox feature is activated on the control
      • getRootNode

        public DojoTreeNode getRootNode()
        Returns:
        the main node of the tree. This node does not have any ancestor but the tree itself.
      • mustUpdateSelectedNode

        public boolean mustUpdateSelectedNode()
      • getPrototypeForObject

        protected psdi.webclient.controls.DojoTreeNodePrototype getPrototypeForObject(java.lang.String objectName)
      • generateTreeNodeUniqueId

        protected java.lang.String generateTreeNodeUniqueId()
      • pasteMbo

        public int pasteMbo()
                     throws java.rmi.RemoteException,
                            MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • copyMbo

        public int copyMbo()
                    throws java.rmi.RemoteException,
                           MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • clickEvent

        public int clickEvent()
                       throws java.rmi.RemoteException,
                              MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • render

        public int render()
                   throws java.lang.NoSuchMethodException,
                          java.lang.IllegalAccessException,
                          java.lang.reflect.InvocationTargetException
        Description copied from class: ControlInstance
        Render this control's components
        Overrides:
        render in class DatasrcInstance
        Throws:
        java.lang.NoSuchMethodException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
      • selectNode

        public int selectNode()
                       throws java.rmi.RemoteException,
                              MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • getConditionalProperties

        public java.util.HashMap getConditionalProperties(MboRemote representedObject)
                                                   throws java.rmi.RemoteException,
                                                          MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • getCheckedNodes

        public java.util.List getCheckedNodes()
                                       throws java.rmi.RemoteException,
                                              MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • getFetchChildrenSize

        public int getFetchChildrenSize()
      • getFetchChildrenLimit

        public int getFetchChildrenLimit()
      • getLogger

        public MXLogger getLogger()
      • isGrid

        public boolean isGrid()