Class TreeBoxImpl

  • All Implemented Interfaces:
    GuiElement, TreeBox

    public class TreeBoxImpl
    extends AbstractGuiElement
    implements TreeBox
    Deprecated.
    Use (@link com.microstrategy.web.app.gui.TreeViewImpl} instead of this to render a tree view.
    The TreeBox GuiElement is designed to create a hierarchical tree that can be dynamically populated using WebEvents.
    It receives an enumeration of TreeNode objects. Each TreeNode contains its display information as well as the event to trigger when the node is selected, or in the case when the node is not a leaf, the event that will retrieve its content.
    Noticed that Events to expand a node will automatically be submitted through the iFrame using javascript.
    The TreeBox provides two render methods:
    Since:
    MicroStrategy Web 7.5.0
    • Constructor Detail

      • TreeBoxImpl

        public TreeBoxImpl()
        Deprecated.
        TreeBoxImpl constructor, initialize all tree properties.
    • Method Detail

      • renderTree

        public void renderTree​(MarkupOutput out,
                               java.util.Enumeration elements)
        Deprecated.
        Creates and register a tree. It also populate its root elements. Use the first time a tree is generated.
        Specified by:
        renderTree in interface TreeBox
        Parameters:
        out - MarkupOutput where to write the output
        elements - An Enumeration of TreeNode objects.
      • renderNodes

        public void renderNodes​(MarkupOutput out,
                                java.util.Enumeration elements)
        Deprecated.
        Generates the content for a list of TreeBox objects. You may use this method to update the tree content after an iframe request.
        Specified by:
        renderNodes in interface TreeBox
        Parameters:
        out - MarkupOutput where to write the output
        elements - An Enumeration of TreeNode objects.
      • getProperty

        public java.lang.Object getProperty​(java.lang.String key)
        Deprecated.
        Function that returns value for a given Tree's property.
        Specified by:
        getProperty in interface TreeBox
        Parameters:
        key - name of property
        Returns:
        Objest value held by property
      • setProperty

        public void setProperty​(java.lang.String key,
                                java.lang.Object obj)
        Deprecated.
        Function used for setting Tree properties. Key is the name of the property and obj its value.
        Specified by:
        setProperty in interface TreeBox
        Parameters:
        key - name of property
        obj - property's value.