Class TabHeader


public class TabHeader extends Component<TabHeader>
Tab header component
Since:
4.0
Author:
JBStrap
  • Constructor Details

    • TabHeader

      public TabHeader()
  • Method Details

    • writeHTML

      public boolean writeHTML(StringWriter writer)
      Description copied from class: Component
      Creates the component's HTML equivalent

      This method doesn't need to be used during application development. This method is used when developing a custom component. When creating a custom component, this method needs to be implemented. In the parameter (StringWriter class) the component's HTML equivalent must be specified, and the method has to return with a Boolean value. This boolean value determines if the component was drawn. If the user doesn't have access right to the component, or if the component couldn't be drawn, it should return with false. Otherwise, it must return with true.

      Specified by:
      writeHTML in class Component<TabHeader>
      Returns:
      If the componentwas drawn, true, otherwise false
    • createTab

      public TabHeader createTab(TabPage tabPage)
      Parameters:
      tabPage - The tab page component instance
      Returns:
      The tab header
    • removeTab

      public TabHeader removeTab(TabPage tabPage)
      Parameters:
      tabPage - The tab page component instance
      Returns:
      The tab header
    • setActive

      public TabHeader setActive(int index)
      Parameters:
      index - The new active tab page index
      Returns:
      The tab header
    • getActiveTabIndex

      public Integer getActiveTabIndex()
    • getLinks

      public List<Link> getLinks()
      Returns:
      The Map contains the added links
    • setTabType

      public TabHeader setTabType(TabType tabType)
    • getTabType

      public TabType getTabType()