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 anAbstractTab
which loads the panel when theITab
is clicked.- Since:
- 1.2.1
- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.apache.wicket.markup.html.WebMarkupContainer
getLazyPanel()
Get theWebMarkupContainer
that will be lazy loadedprotected abstract org.apache.wicket.markup.html.WebMarkupContainer
getLazyPanel(String panelId)
Gets theWebMarkupContainer
that will be lazy loadedorg.apache.wicket.markup.html.WebMarkupContainer
getPanel(String panelId)
Gets the default panel (loading indicator)boolean
load(org.apache.wicket.ajax.AjaxRequestTarget target)
Loads the lazy component, if not already loaded.
-
-
-
Constructor Detail
-
AjaxTab
public AjaxTab(org.apache.wicket.model.IModel<String> title)
Constructor- Parameters:
title
- IModel used to represent the title of the tab.
-
-
Method Detail
-
getPanel
public final org.apache.wicket.markup.html.WebMarkupContainer getPanel(String panelId)
Gets the default panel (loading indicator)- Specified by:
getPanel
in interfaceorg.apache.wicket.extensions.markup.html.tabs.ITab
- Specified by:
getPanel
in classorg.apache.wicket.extensions.markup.html.tabs.AbstractTab
-
getLazyPanel
protected final org.apache.wicket.markup.html.WebMarkupContainer getLazyPanel()
Get theWebMarkupContainer
that will be lazy loaded- Returns:
- the
WebMarkupContainer
-
getLazyPanel
protected abstract org.apache.wicket.markup.html.WebMarkupContainer getLazyPanel(String panelId)
Gets theWebMarkupContainer
that 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
-
-