Class TreeTabManagerTransform

    • Field Detail

      • FP_EXPAND_ALL

        public static final java.lang.String FP_EXPAND_ALL
        Used by formal parameter expandAll.
        See Also:
        Constant Field Values
      • FP_NODE_ACTION

        public static final java.lang.String FP_NODE_ACTION
        Used by formal parameter nodeAction.
        See Also:
        Constant Field Values
      • FP_TREE_STYLE

        public static final java.lang.String FP_TREE_STYLE
        Used by formal parameter normTabManager;
        See Also:
        Constant Field Values
      • expandAll

        public FormalParameter expandAll
        Determine whether all nodes should be expanded by default. Default value is false.
      • nodeAction

        public FormalParameter nodeAction
        Determine whether all non-leaf nodes should expand or collapse. Default value is 1.
      • treeStyle

        public FormalParameter treeStyle
        Determine whether to use tree style of TreeTabManager, instead of back to normal tab manager. Default value is false.
    • Constructor Detail

      • TreeTabManagerTransform

        public TreeTabManagerTransform()
    • Method Detail

      • renderInfosPanel

        public void renderInfosPanel​(MarkupOutput out)
        Render the panel displaying the path of current selected tab.
        Parameters:
        out - MarkupOutput instance where the HTML to render will be saved
      • renderOtherInfosPanel

        public void renderOtherInfosPanel​(MarkupOutput out)
        Render other informations in the Info Panel, in addition to current selected tab.
        Parameters:
        out - MarkupOutput instance where the HTML to render will be saved
      • renderControlBar

        public void renderControlBar​(MarkupOutput out)
        Renders the tab control HTML for being able to switch from one TabBean child tab to another. Generates a tree style control panel for holding the different TabBean titles of the tabs that are available for this TabManagerBean instance. The structure of the tree is determined by the structure the different TabBeans are organized in pageconfig.xml.
        Overrides:
        renderControlBar in class TabManagerTransform
        Parameters:
        out - MarkupOutput instance where the HTML to render will be saved
      • renderTabManagerControlTree

        protected void renderTabManagerControlTree​(MarkupOutput out)
        Render the tree control of tab manager.
        Parameters:
        out - MarkupOutput instance where the HTML to render will be saved
      • setTreeJavaScript

        protected void setTreeJavaScript​(TreeView tree)
        Set the java script class and add javascript for tree control inside tree tab manager.
        Parameters:
        tree - The tree view instance for tree tab manager.
      • generateTabBeanTree

        protected void generateTabBeanTree​(TabBean parentTab,
                                           TreeNode parentNode)
        Generate the control tree branch under parentTab TabBean.
        Parameters:
        parentTab - The TabBean of which the control tree branch would be rendered.
        parentNode - The corresponding node of the parentTab TabBean.
      • createNode

        protected TreeNode createNode​(TabBean tab)
        Create a tree node corresponding to the TabBean.
        Parameters:
        tab - The TabBean of which a tree node would be created.
        Returns:
        A TreeNode corresponding to the TabBean.
      • isLeaf

        protected boolean isLeaf​(TabBean tab)
        Determine whether a TabBean is a Leaf or not.
        Parameters:
        tab - The TabBean to be determined.
        Returns:
        A boolean value.