- All Implemented Interfaces:
Serializable, ITab, org.apache.wicket.util.io.IClusterable
A simple decorator that will cache the panel returned from the first call to getPanel()
- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
-
-
Constructor Summary
Constructors
-
Method Summary
org.apache.wicket.markup.html.WebMarkupContainer
org.apache.wicket.model.IModel<String>
boolean
Returns whether this tab should be visible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PanelCachingTab
Constructor
- Parameters:
delegate - ITab implementation to decorate
-
Method Details
-
getTitle
- Specified by:
getTitle in interface ITab
- Returns:
- IModel used to represent the title of the tab. Must contain a string.
-
getPanel
public org.apache.wicket.markup.html.WebMarkupContainer getPanel(String panelId)
- 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
Returns whether this tab should be visible
- Specified by:
isVisible in interface ITab
- Returns:
- whether this tab should be visible