psdi.webclient.controls

Class ToolbarButton

  • All Implemented Interfaces:
    java.lang.Cloneable


    public class ToolbarButton
    extends ControlInstance
    This control class manages the enabled/disabled state of the toolbar button.

    A toolbar button is enabled when one of the following is true:

  • no tab on which it is enabled is provided in its definition
  • it is configured to appear on ALL tabs
  • it is configured to appear on a given tab and the current tab name is the same (including the LIST tab)
  • it is configured to appear on the MAIN tab and the current tab is not the list tab
    • Constructor Detail

      • ToolbarButton

        public ToolbarButton()
    • 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
      • needsSep

        public boolean needsSep()
      • addSep

        public void addSep()
      • dynamicButtonHandling

        public void dynamicButtonHandling()
      • isVisible

        public boolean isVisible()
        Description copied from class: BaseInstance
        Return whether or not the instance is visible or not (Whether or not it should be shown) Each control or component will handle visibility in it's own way.
        Overrides:
        isVisible in class ControlInstance
        Returns:
        true - visible, false - not visible
      • eventCheck

        public void eventCheck()
        Description copied from class: ControlInstance
        Checks to see if the control has an mxevent and if the user has access to it. If not, the control is disabled. Otherwise the control is enabled.
        Overrides:
        eventCheck in class ControlInstance
      • 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
      • isFirstButton

        public boolean isFirstButton()
      • setIsFirstButton

        public void setIsFirstButton(boolean aBool)