Class Tabs

All Implemented Interfaces:
Component, Container, Serializable, Cloneable

public class Tabs extends AbstractContainer
A component for tabs.
See Also:
  • Field Details

  • Constructor Details

    • Tabs

      public Tabs(List<Link> tabs)
      Construct a tab.
      Parameters:
      tabs - a list of Links.
    • Tabs

      public Tabs(List<Link> tabs, int selTab)
    • Tabs

      public Tabs(List<Link> tabs, int selTab, boolean alert)
    • Tabs

      public Tabs(List<Link> tabs, int selTab, boolean alert, int frameborder)
    • Tabs

      public Tabs(List<Link> tabs, int selTab, short alertMode, int frameborder)
      Construct a tab.
      Parameters:
      tabs - a list of links.
      selTab - the index of the tab which should be the selected one
      alertMode - determines if an alert should be shown when the user wants to change the tab. If value is NO_ALERT no alert is shown. If the value is ALERT_ON_CHANGE the alert will be shown if something has been changed within the tab. If value is ALERT_ALWAYS the alert is always shown (also if nothing has been changed in the tab).
      frameborder - shows the frameborder in specified width (1 is default, 0 is no border): necessary to define here, because IE does not interpret definition in style-class
  • Method Details

    • setDivClass

      public void setDivClass(String cssClass)
      Tabs are placed in a HTML div element. With this method you can define a CSS class for this div element. On default the div element doesn't have a class.
      Parameters:
      cssClass - String holding the name of the CSS class.
    • setContent

      public void setContent(Object o)
      Description copied from class: AbstractComponent
      sets the content of the component
      Specified by:
      setContent in interface Component
      Overrides:
      setContent in class AbstractComponent
      Parameters:
      o - any object where the string representation is used for rendering
    • getContent

      public Object getContent()
      Specified by:
      getContent in interface Component
      Overrides:
      getContent in class AbstractComponent
      Returns:
      the content object of the component