Class TabsAdapter
- java.lang.Object
-
- com.googlecode.wicket.jquery.ui.widget.tabs.TabsAdapter
-
- All Implemented Interfaces:
ITabsListener
,Serializable
,org.apache.wicket.util.io.IClusterable
public class TabsAdapter extends Object implements ITabsListener
Adapter class forITabsListener
- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TabsAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isActivateEventEnabled()
Indicates whether the 'activate' event is enabled.
If true, theITabsListener.onActivate(AjaxRequestTarget, int, ITab)
event will be triggered on 'activate'boolean
isActivatingEventEnabled()
Indicates whether the 'beforeActivate' event is enabled.
If true, theITabsListener.onActivating(AjaxRequestTarget, int, ITab)
event will be triggered.boolean
isCreateEventEnabled()
Indicates whether the 'create' event is enabled.
If true, theITabsListener.onActivate(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
public boolean isCreateEventEnabled()
Description copied from interface:ITabsListener
Indicates whether the 'create' event is enabled.
If true, theITabsListener.onActivate(AjaxRequestTarget, int, ITab)
event will be triggered on 'create'- Specified by:
isCreateEventEnabled
in interfaceITabsListener
- Returns:
- true by default
-
isActivateEventEnabled
public boolean isActivateEventEnabled()
Description copied from interface:ITabsListener
Indicates whether the 'activate' event is enabled.
If true, theITabsListener.onActivate(AjaxRequestTarget, int, ITab)
event will be triggered on 'activate'- Specified by:
isActivateEventEnabled
in interfaceITabsListener
- Returns:
- true by default
-
isActivatingEventEnabled
public boolean isActivatingEventEnabled()
Description copied from interface:ITabsListener
Indicates whether the 'beforeActivate' event is enabled.
If true, theITabsListener.onActivating(AjaxRequestTarget, int, ITab)
event will be triggered.- Specified by:
isActivatingEventEnabled
in interfaceITabsListener
- Returns:
- false by default
-
onActivate
public void onActivate(org.apache.wicket.ajax.AjaxRequestTarget target, int index, org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Description copied from interface:ITabsListener
Triggered when a tab has been activated ('create' and 'activate' event).- Specified by:
onActivate
in interfaceITabsListener
- Parameters:
target
- theAjaxRequestTarget
index
- the tab index that triggered this eventtab
- theITab
that corresponds to the index
-
onActivating
public void onActivating(org.apache.wicket.ajax.AjaxRequestTarget target, int index, org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Description copied from interface:ITabsListener
Triggered when a tab is being activated ('beforeActivate' event).- Specified by:
onActivating
in interfaceITabsListener
- Parameters:
target
- theAjaxRequestTarget
index
- the previously selected tab indextab
- theITab
that corresponds to the index
-
-