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
,ITab
,IClusterable
public abstract class AjaxTab extends 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 WebMarkupContainer
getLazyPanel()
Get theWebMarkupContainer
that will be lazy loadedprotected abstract WebMarkupContainer
getLazyPanel(String panelId)
Gets theWebMarkupContainer
that will be lazy loadedWebMarkupContainer
getPanel(String panelId)
Gets the default panel (loading indicator)boolean
load(AjaxRequestTarget target)
Loads the lazy component, if not already loaded.-
Methods inherited from class org.apache.wicket.extensions.markup.html.tabs.AbstractTab
getTitle, isVisible
-
-
-
-
Method Detail
-
getPanel
public final WebMarkupContainer getPanel(String panelId)
Gets the default panel (loading indicator)- Specified by:
getPanel
in interfaceITab
- Specified by:
getPanel
in classAbstractTab
-
getLazyPanel
protected final WebMarkupContainer getLazyPanel()
Get theWebMarkupContainer
that will be lazy loaded- Returns:
- the
WebMarkupContainer
-
getLazyPanel
protected abstract 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(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
-
-