Interface ITabsListener
-
- All Superinterfaces:
org.apache.wicket.util.io.IClusterable
,Serializable
- All Known Implementing Classes:
TabbedPanel
,TabsAdapter
public interface ITabsListener extends org.apache.wicket.util.io.IClusterable
Event listener shared by theTabbedPanel
widget and theTabsBehavior
Warning: At least one event should be enabled for theAjaxTab
to load.- Since:
- 6.19.0
- Author:
- Sebastien Briquet - sebfz1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isActivateEventEnabled()
Indicates whether the 'activate' event is enabled.
If true, theonActivate(AjaxRequestTarget, int, ITab)
event will be triggered.boolean
isSelectEventEnabled()
Indicates whether the 'select' event is enabled.
If true, theonSelect(AjaxRequestTarget, int, ITab)
event will be triggered.boolean
isShowEventEnabled()
Indicates whether the 'show' event is enabled.
If true, theonShow(AjaxRequestTarget, int, ITab)
event will be triggered.void
onActivate(org.apache.wicket.ajax.AjaxRequestTarget target, int index, org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Triggered after a tab is being made visible and its animation completevoid
onSelect(org.apache.wicket.ajax.AjaxRequestTarget target, int index, org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Triggered before a tab is selected.void
onShow(org.apache.wicket.ajax.AjaxRequestTarget target, int index, org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Triggered just after a tab is being made visible, but before the end of the animation.
-
-
-
Method Detail
-
isSelectEventEnabled
boolean isSelectEventEnabled()
Indicates whether the 'select' event is enabled.
If true, theonSelect(AjaxRequestTarget, int, ITab)
event will be triggered.- Returns:
- true by default
-
isShowEventEnabled
boolean isShowEventEnabled()
Indicates whether the 'show' event is enabled.
If true, theonShow(AjaxRequestTarget, int, ITab)
event will be triggered.- Returns:
- false by default
-
isActivateEventEnabled
boolean isActivateEventEnabled()
Indicates whether the 'activate' event is enabled.
If true, theonActivate(AjaxRequestTarget, int, ITab)
event will be triggered.- Returns:
- false by default
-
onSelect
void onSelect(org.apache.wicket.ajax.AjaxRequestTarget target, int index, org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Triggered before a tab is selected.- Parameters:
target
- theAjaxRequestTarget
index
- the tab index that triggered this eventtab
- theITab
that corresponds to the index- See Also:
isSelectEventEnabled()
-
onShow
void onShow(org.apache.wicket.ajax.AjaxRequestTarget target, int index, org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Triggered just after a tab is being made visible, but before the end of the animation.- Parameters:
target
- theAjaxRequestTarget
index
- the tab index that triggered this eventtab
- theITab
that corresponds to the index- See Also:
isShowEventEnabled()
-
onActivate
void onActivate(org.apache.wicket.ajax.AjaxRequestTarget target, int index, org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Triggered after a tab is being made visible and its animation complete- Parameters:
target
- theAjaxRequestTarget
index
- the tab index that triggered this eventtab
- theITab
that corresponds to the index- See Also:
isActivateEventEnabled()
-
-