public abstract class TabsBehavior extends JQueryUIBehavior implements IJQueryAjaxAware
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TabsBehavior.ActivateEvent
Provides an event object that will be broadcasted by the
JQueryAjaxBehavior 'activate' callback |
protected static class |
TabsBehavior.ActivatingEvent
Provides an event object that will be broadcasted by the
JQueryAjaxBehavior 'beforeActivate' callback |
method, options, selector| Constructor and Description |
|---|
TabsBehavior(java.lang.String selector)
Constructor
|
TabsBehavior(java.lang.String selector,
Options options)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate(int index,
org.apache.wicket.ajax.AjaxRequestTarget target)
Activates the selected tab, identified by the index
|
void |
bind(org.apache.wicket.Component component) |
protected abstract java.util.List<org.apache.wicket.extensions.markup.html.tabs.ITab> |
getTabs()
Gets the reference
List of ITabs.Usually the model object of the component on which this TabsBehavior is bound to. |
protected java.util.List<org.apache.wicket.extensions.markup.html.tabs.ITab> |
getVisibleTabs()
Gets a read-only
ITab List having its visible flag set to true. |
boolean |
isActivateEventEnabled()
Indicates whether the 'activate' event is enabled.
If true, the onActivate(AjaxRequestTarget, int, ITab) event will be triggered on 'activate'Warning: 'activate' event is required to be enabled for the AjaxTab to load |
boolean |
isActivatingEventEnabled()
Indicates whether the 'beforeActivate' event is enabled.
If true, the onActivating(AjaxRequestTarget, int, ITab) event will be triggered. |
boolean |
isCreateEventEnabled()
Indicates whether the 'create' event is enabled.
If true, the onActivate(AjaxRequestTarget, int, ITab) event will be triggered on 'create'Warning: 'create' event is required to be enabled for the AjaxTab to load |
protected JQueryAjaxBehavior |
newActivateEventBehavior()
Gets a new
JQueryAjaxBehavior that acts as the 'activate' javascript callback |
protected JQueryAjaxBehavior |
newActivatingEventBehavior()
Gets a new
JQueryAjaxBehavior that acts as the 'beforeActivate' javascript callback |
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 ('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).
|
void |
onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
JQueryEvent event) |
void |
onConfigure(org.apache.wicket.Component component) |
$, $, $, beforeRender, getMethod, getOption, getOptions, getSelector, on, on, on, renderHead, setOption, setOption, setOption, setOptions, setSelectoradd, getJQueryLibrarySettings, getToken, renderScript, toStringpublic TabsBehavior(java.lang.String selector)
selector - the html selector (ie: "#myId")protected abstract java.util.List<org.apache.wicket.extensions.markup.html.tabs.ITab> getTabs()
List of ITabs.TabsBehavior is bound to.Listprotected java.util.List<org.apache.wicket.extensions.markup.html.tabs.ITab> getVisibleTabs()
ITab List having its visible flag set to true.List of ITabspublic void bind(org.apache.wicket.Component component)
bind in class org.apache.wicket.behavior.Behaviorpublic void activate(int index,
org.apache.wicket.ajax.AjaxRequestTarget target)
target - the AjaxRequestTargetindex - the tab's indexpublic void onConfigure(org.apache.wicket.Component component)
onConfigure in class JQueryUIBehaviorpublic void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
JQueryEvent event)
onAjax in interface IJQueryAjaxAwareprotected JQueryAjaxBehavior newActivateEventBehavior()
JQueryAjaxBehavior that acts as the 'activate' javascript callbackJQueryAjaxBehaviorprotected JQueryAjaxBehavior newActivatingEventBehavior()
JQueryAjaxBehavior that acts as the 'beforeActivate' javascript callbackJQueryAjaxBehaviorpublic boolean isCreateEventEnabled()
onActivate(AjaxRequestTarget, int, ITab) event will be triggered on 'create'AjaxTab to loadpublic boolean isActivateEventEnabled()
onActivate(AjaxRequestTarget, int, ITab) event will be triggered on 'activate'AjaxTab to loadpublic boolean isActivatingEventEnabled()
onActivating(AjaxRequestTarget, int, ITab) event will be triggered.public void onActivate(org.apache.wicket.ajax.AjaxRequestTarget target,
int index,
org.apache.wicket.extensions.markup.html.tabs.ITab tab)
target - the AjaxRequestTargetindex - the tab index that triggered this eventtab - the ITab that corresponds to the indexpublic void onActivating(org.apache.wicket.ajax.AjaxRequestTarget target,
int index,
org.apache.wicket.extensions.markup.html.tabs.ITab tab)
target - the AjaxRequestTargetindex - the previously selected tab indextab - the ITab that corresponds to the indexCopyright © 2014 7thWeb. All Rights Reserved.