Class ClientSideBootstrapTabbedPanel<T extends ITab>

All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IGenericComponent<Integer,GenericPanel<Integer>>, IMetadataContext<Serializable,Component>, IQueueRegion, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable

public class ClientSideBootstrapTabbedPanel<T extends ITab> extends GenericPanel<Integer>

A "pure" client side stateless tabs component. You use it as you would use TabbedPanel, but instead of generating links that trigger server round trips id does generates just "client side" links.

Author:
Ernesto Reinaldo Barreiro (reiern70@gmailcom)
See Also:
  • Constructor Details

    • ClientSideBootstrapTabbedPanel

      public ClientSideBootstrapTabbedPanel(String id, List<T> tabs)
      Constructor.
      Parameters:
      id - The component id
      tabs - A list of all tabs
    • ClientSideBootstrapTabbedPanel

      public ClientSideBootstrapTabbedPanel(String id, List<T> tabs, IModel<Integer> activeTabIndexModel)
      Constructor.
      Parameters:
      id - The component id
      tabs - A list of all tabs
      activeTabIndexModel - The model saying which tab is the current active one
  • Method Details

    • onInitialize

      protected void onInitialize()
      Overrides:
      onInitialize in class MarkupContainer
    • newTabTitleLabel

      protected Component newTabTitleLabel(String id, IModel<String> title, int tabIndex)
      Override to create a different title label.
      Parameters:
      id -
      title - The label title
      tabIndex - The index of the tab
      Returns:
    • newTabLink

      protected WebMarkupContainer newTabLink(String id, String href, int tabIndex)
      Override to create a different tab's link.
      Parameters:
      id -
      href - The href (id) of the corresponding tab's content.
      tabIndex - The index of the tab
      Returns:
    • newTabsContentsContainer

      protected WebMarkupContainer newTabsContentsContainer(String id)
      Override to create a different tabs content's container.
      Parameters:
      id - The component id fo the content's container
      Returns:
      The content's container
    • getPanelsContainerCssClass

      protected CharSequence getPanelsContainerCssClass()
      Override to return a different CSS class for tabs contents panel container.
      Returns:
      The CSS class for tabs contents panel container.
    • newTabsContainer

      protected WebMarkupContainer newTabsContainer(String id)
      Override to returns a different tabs container.
      Parameters:
      id - The component id of the tabs container
      Returns:
      The tabs container
    • getTabContainerCssClass

      protected CharSequence getTabContainerCssClass()
      Override to return a different CSS class for tabs container.
      Returns:
      The CSS class for tabs container