Class FixedTabFactory

    • Field Detail

      • tooltip

        private String tooltip
      • helpId

        private String helpId
      • visible

        private boolean visible
      • content

        private String content
      • tabIndex

        private int tabIndex
    • Constructor Detail

      • FixedTabFactory

        public FixedTabFactory()
        Create a new factory instance.
    • Method Detail

      • getActions

        public TabAction[] getActions​(InvokationContext<? super TabAction> context)
        Description copied from interface: ActionFactory
        This method may be called one or several times for each request. This is decided by the extension point. If, for example, the extension point is a pure single-item extension point then this method is probably only called once. If the extension point is a per-item extension point in a list context, then this method may be called once for every item in the list. The context parameter contains all information about the context of the extension point, including the current item, if any.
        Specified by:
        getActions in interface ActionFactory<TabAction>
        Parameters:
        context - The current invokation context
        Returns:
        An array of actions that should be added to the extension point. Returns null or an empty array if there are no actions in the current context.
      • getId

        public String getId()
        Description copied from interface: TabAction
        ID attribute of the main tab tag. You need to set this value to reference the tab in a javascript.
        Specified by:
        getId in interface TabAction
        Returns:
        The ID, or null
      • getClazz

        public String getClazz()
        Description copied from interface: TabAction
        Class attribute of the main tab tag.
        Specified by:
        getClazz in interface TabAction
        Returns:
        Class attribute, or null to not add any class attribute
      • getStyle

        public String getStyle()
        Description copied from interface: TabAction
        Extra CSS style attributes that will be added to the style attribute of the main tab tag.
        Specified by:
        getStyle in interface TabAction
        Returns:
        Style attributes, or null
      • getTooltip

        public String getTooltip()
        Description copied from interface: TabAction
        A tooltip that is shown as a yellow popup when the user points the mouse at the tab.
        Specified by:
        getTooltip in interface TabAction
        Returns:
        The tooltip or null to not display any tooltip
      • isVisible

        public boolean isVisible()
        Description copied from interface: TabAction
        If the tab should be visible or not.
        Specified by:
        isVisible in interface TabAction
      • getHelpId

        public String getHelpId()
        Description copied from interface: TabAction
        The external id of a help text that the user can display to get more information about how to use the information in this tab. See Help.getExternalId().
        Specified by:
        getHelpId in interface TabAction
        Returns:
        The help id or null to not display any help
      • getContent

        public String getContent()
        Description copied from interface: TabAction
        Get the (HTML) contents of the tab.
        Specified by:
        getContent in interface TabAction
      • getTabIndex

        public int getTabIndex()
        Description copied from interface: TabAction
        Get the tab index used to control focus order when tabbing. Use -1 to disable.
        Specified by:
        getTabIndex in interface TabAction
      • setId

        public void setId​(String id)
      • setClazz

        public void setClazz​(String clazz)
      • setStyle

        public void setStyle​(String style)
      • setTitle

        public void setTitle​(String title)
      • setTooltip

        public void setTooltip​(String tooltip)
      • setVisible

        public void setVisible​(boolean visible)
      • setVisible

        public void setVisible​(String visible)
      • setHelpId

        public void setHelpId​(String helpId)
      • setContent

        public void setContent​(String content)
      • setTabIndex

        public void setTabIndex​(String tabIndex)