org.apache.wicket.extensions.markup.html.tabs
Class PanelCachingTab
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:
ITab
,
TabbedPanel
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PanelCachingTab
public PanelCachingTab(ITab delegate)
- Constructor
- Parameters:
delegate
- ITab implementation to decorate
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.
- See Also:
ITab.getTitle()
getPanel
public Panel getPanel(String panelId)
- Specified by:
getPanel
in interface ITab
- Parameters:
panelId
- returned panel MUST have this id
- Returns:
- a Panel object that will be placed as the content panel
- See Also:
ITab.getPanel(java.lang.String)
isVisible
public boolean isVisible()
- Description copied from interface:
ITab
- Returns whether this tab should be visible
- Specified by:
isVisible
in interface ITab
- Returns:
- whether this tab should be visible
- See Also:
ITab.isVisible()
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.