public abstract class TabsBehavior extends JQueryUIBehavior implements com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
Modifier and Type | Class and Description |
---|---|
protected static class |
TabsBehavior.ActivateEvent
Provides an event object that will be broadcasted by the
TabsBehavior.OnActivateAjaxBehavior callback |
protected static class |
TabsBehavior.ActivatingEvent
Provides an event object that will be broadcasted by the
TabsBehavior.OnActivatingAjaxBehavior callback |
protected static class |
TabsBehavior.OnActivateAjaxBehavior
Provides a
JQueryAjaxBehavior that aims to be wired to the 'activate' event |
protected static class |
TabsBehavior.OnActivatingAjaxBehavior
Provides a
JQueryAjaxBehavior that aims to be wired to the 'beforeActivate' event |
Constructor and Description |
---|
TabsBehavior(String selector,
ITabsListener listener)
Constructor
|
TabsBehavior(String selector,
com.googlecode.wicket.jquery.core.Options options,
ITabsListener listener)
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 List<org.apache.wicket.extensions.markup.html.tabs.ITab> |
getTabs()
Gets the reference
List of ITab s .Usually the model object of the component on which this TabsBehavior is bound to. |
protected List<org.apache.wicket.extensions.markup.html.tabs.ITab> |
getVisibleTabs()
Gets a read-only
ITab List having its visible flag set to true. |
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior |
newOnActivateAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a new
JQueryAjaxBehavior that will be wired to the 'activate' event |
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior |
newOnActivatingAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a new
JQueryAjaxBehavior that will be wired to the 'beforeActivate' event |
void |
onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
com.googlecode.wicket.jquery.core.JQueryEvent event) |
void |
onConfigure(org.apache.wicket.Component component) |
destroy, onDestroy, widget, widget, widget, widget
$, $, $, $, beforeRender, detach, getMethod, getOption, getOptions, getSelector, off, on, on, register, remove, renderHead, setOption, setOption, setOption, setOptions, setSelector
add, getJQueryLibrarySettings, renderOnDomReadyScript, renderPriorityHeaderItem, toString
public static final String METHOD
public TabsBehavior(String selector, ITabsListener listener)
selector
- the html selector (ie: "#myId")listener
- the ITabsListener
public TabsBehavior(String selector, com.googlecode.wicket.jquery.core.Options options, ITabsListener listener)
selector
- the html selector (ie: "#myId")options
- the Options
listener
- the ITabsListener
protected abstract List<org.apache.wicket.extensions.markup.html.tabs.ITab> getTabs()
List
of ITab
s
.TabsBehavior
is bound to.List
protected List<org.apache.wicket.extensions.markup.html.tabs.ITab> getVisibleTabs()
ITab
List
having its visible flag set to true.List
of ITab
s
public void bind(org.apache.wicket.Component component)
bind
in class org.apache.wicket.behavior.Behavior
public void activate(int index, org.apache.wicket.ajax.AjaxRequestTarget target)
index
- the tab's indextarget
- the AjaxRequestTarget
public void onConfigure(org.apache.wicket.Component component)
onConfigure
in class JQueryUIBehavior
public void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, com.googlecode.wicket.jquery.core.JQueryEvent event)
onAjax
in interface com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnActivateAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
JQueryAjaxBehavior
that will be wired to the 'activate' eventsource
- the IJQueryAjaxAware
OnActivateAjaxBehavior
by defaultprotected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnActivatingAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
JQueryAjaxBehavior
that will be wired to the 'beforeActivate' eventsource
- the IJQueryAjaxAware
OnActivateAjaxBehavior
by defaultCopyright © 2016 7thWeb. All rights reserved.