java.lang.Object
org.apache.wicket.extensions.markup.html.tabs.PanelCachingTab
All Implemented Interfaces:
Serializable, ITab, IClusterable

public class PanelCachingTab extends Object implements ITab
A simple decorator that will cache the panel returned from the first call to getPanel()
Author:
Igor Vaynberg (ivaynberg)
See Also:
  • Constructor Details

    • PanelCachingTab

      public PanelCachingTab(ITab delegate)
      Constructor
      Parameters:
      delegate - ITab implementation to decorate
  • Method Details

    • getTitle

      public IModel<String> getTitle()
      Specified by:
      getTitle in interface ITab
      Returns:
      IModel used to represent the title of the tab. Must contain a string.
    • getPanel

      Specified by:
      getPanel in interface ITab
      Parameters:
      panelId - returned panel MUST have this id
      Returns:
      a container object (e.g. Panel or Fragment) that will be placed as the content of the tab
    • isVisible

      public boolean isVisible()
      Returns whether this tab should be visible
      Specified by:
      isVisible in interface ITab
      Returns:
      whether this tab should be visible