Class AjaxTab
java.lang.Object
org.apache.wicket.extensions.markup.html.tabs.AbstractTab
com.googlecode.wicket.jquery.ui.widget.tabs.AjaxTab
- All Implemented Interfaces:
Serializable,org.apache.wicket.extensions.markup.html.tabs.ITab,org.apache.wicket.util.io.IClusterable
public abstract class AjaxTab
extends org.apache.wicket.extensions.markup.html.tabs.AbstractTab
Provides an
AbstractTab which loads the panel when the ITab is clicked.- Since:
- 1.2.1
- Author:
- Sebastien Briquet - sebfz1
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final org.apache.wicket.markup.html.WebMarkupContainerGet theWebMarkupContainerthat will be lazy loadedprotected abstract org.apache.wicket.markup.html.WebMarkupContainergetLazyPanel(String panelId) Gets theWebMarkupContainerthat will be lazy loadedfinal org.apache.wicket.markup.html.WebMarkupContainerGets the default panel (loading indicator)booleanload(org.apache.wicket.ajax.AjaxRequestTarget target) Loads the lazy component, if not already loaded.Methods inherited from class org.apache.wicket.extensions.markup.html.tabs.AbstractTab
getTitle, isVisible
-
Constructor Details
-
AjaxTab
Constructor- Parameters:
title- IModel used to represent the title of the tab.
-
-
Method Details
-
getPanel
Gets the default panel (loading indicator)- Specified by:
getPanelin interfaceorg.apache.wicket.extensions.markup.html.tabs.ITab- Specified by:
getPanelin classorg.apache.wicket.extensions.markup.html.tabs.AbstractTab
-
getLazyPanel
protected final org.apache.wicket.markup.html.WebMarkupContainer getLazyPanel()Get theWebMarkupContainerthat will be lazy loaded- Returns:
- the
WebMarkupContainer
-
getLazyPanel
Gets theWebMarkupContainerthat will be lazy loaded- Parameters:
panelId- the markup id to use- Returns:
- the
WebMarkupContainer
-
load
public boolean load(org.apache.wicket.ajax.AjaxRequestTarget target) Loads the lazy component, if not already loaded.- Parameters:
target- theAjaxRequestTarget- Returns:
- True if the component has just been loaded. Otherwise false if the component has already been loaded
-