psdi.webclient.controls

Class TabGroup

    • Constructor Detail

      • TabGroup

        public TabGroup()
    • Method Detail

      • isInitialized

        public boolean isInitialized()
      • 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
      • isMainTabGroup

        public boolean isMainTabGroup()
      • getCurrentTab

        public Tab getCurrentTab()
      • gotolisttab

        public int gotolisttab()
      • setCurrentTab

        public int setCurrentTab(java.lang.String tabType)
        Set the current tab to be the first tab of the tabType. Do nothing if such tab has not been found
      • setCurrentTab

        public void setCurrentTab(Tab tab)
      • setCurrentTab

        public void setCurrentTab(Tab tab,
                                  boolean setFocus)
        This is the go to place for any tab changes: all other activities that lead to a tab change ***MUST*** do all of their act here
        Parameters:
        tab - The tab to be made current
      • getLastId

        public java.lang.String getLastId()
      • changetab

        public int changetab()
      • nexttab

        public int nexttab()
      • nexttab

        public int nexttab(boolean wrapAround)
      • previoustab

        public int previoustab()
      • tabWasChanged

        public boolean tabWasChanged()
      • canRemove

        public boolean canRemove()
        Description copied from class: ControlInstance
        Can the control be removed Extend this method if a control has rules for whether or not it can be removed
        Overrides:
        canRemove in class ControlInstance
        Returns:
        - boolean
      • 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 ControlInstance
        Throws:
        java.lang.NoSuchMethodException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
      • removeChild

        public void removeChild(ControlInstance child)
        if removeChild is called on a tabgroup and the tab being removed is also the currentTab, call previoustab to get a new current tab
        Overrides:
        removeChild in class ControlInstance
      • preRender

        public boolean preRender()
        Flags all tabs for being processed for pre render check so that flags are ready when visiblility check is made in render
        Overrides:
        preRender in class ControlInstance
      • gotofirsttab

        public int gotofirsttab()
        Set the first visible tab of the tabgroup as the current tab. Mainly used by wizard tabs to start from the begining again.
        Returns:
      • getChangeToTab

        public Tab getChangeToTab()
        This is the tab the the TabGroup is trying to change to.
        Returns:
      • isMainTab

        public boolean isMainTab()