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.- 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 on 'activate'boolean
isActivatingEventEnabled()
Indicates whether the 'beforeActivate' event is enabled.
If true, theonActivating(AjaxRequestTarget, int, ITab)
event will be triggered.boolean
isCreateEventEnabled()
Indicates whether the 'create' event is enabled.
If true, theonActivate(AjaxRequestTarget, int, ITab)
event will be triggered on 'create'void
onActivate(org.apache.wicket.ajax.AjaxRequestTarget target, int index, org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Triggered when a tab has been activated ('create' and 'activate' event).void
onActivating(org.apache.wicket.ajax.AjaxRequestTarget target, int index, org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Triggered when a tab is being activated ('beforeActivate' event).
-
-
-
Method Detail
-
isCreateEventEnabled
boolean isCreateEventEnabled()
Indicates whether the 'create' event is enabled.
If true, theonActivate(AjaxRequestTarget, int, ITab)
event will be triggered on 'create'- Returns:
- true by default
-
isActivateEventEnabled
boolean isActivateEventEnabled()
Indicates whether the 'activate' event is enabled.
If true, theonActivate(AjaxRequestTarget, int, ITab)
event will be triggered on 'activate'- Returns:
- true by default
-
isActivatingEventEnabled
boolean isActivatingEventEnabled()
Indicates whether the 'beforeActivate' event is enabled.
If true, theonActivating(AjaxRequestTarget, int, ITab)
event will be triggered.- Returns:
- false by default
-
onActivate
void onActivate(org.apache.wicket.ajax.AjaxRequestTarget target, int index, org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Triggered when a tab has been activated ('create' and 'activate' event).- Parameters:
target
- theAjaxRequestTarget
index
- the tab index that triggered this eventtab
- theITab
that corresponds to the index
-
onActivating
void onActivating(org.apache.wicket.ajax.AjaxRequestTarget target, int index, org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Triggered when a tab is being activated ('beforeActivate' event).- Parameters:
target
- theAjaxRequestTarget
index
- the previously selected tab indextab
- theITab
that corresponds to the index
-
-