Interface IAccordionListener
-
- All Superinterfaces:
org.apache.wicket.util.io.IClusterable
,Serializable
- All Known Implementing Classes:
AccordionAdapter
,AccordionPanel
public interface IAccordionListener extends org.apache.wicket.util.io.IClusterable
Event listener shared by theAccordionPanel
widget and theAccordionBehavior
- 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'
Warning: 'activate' event is required to be enabled for theAjaxTab
to loadboolean
isCreateEventEnabled()
Indicates whether the 'create' event is enabled.
If true, theonActivate(AjaxRequestTarget, int, ITab)
event will be triggered on 'create'
Warning: 'create' event is required to be enabled for theAjaxTab
to loadvoid
onActivate(org.apache.wicket.ajax.AjaxRequestTarget target, int index, org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Triggered when an accordion tab has been activated (on 'create' and/or 'activate' 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'
Warning: 'create' event is required to be enabled for theAjaxTab
to load- 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'
Warning: 'activate' event is required to be enabled for theAjaxTab
to load- Returns:
- true by default
-
onActivate
void onActivate(org.apache.wicket.ajax.AjaxRequestTarget target, int index, org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Triggered when an accordion tab has been activated (on 'create' and/or 'activate' event).- Parameters:
target
- theAjaxRequestTarget
index
- the accordion header that triggered this eventtab
- theITab
that corresponds to the index
-
-