|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.behavior.Behavior
com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
com.googlecode.wicket.jquery.core.JQueryBehavior
com.googlecode.wicket.jquery.ui.widget.tabs.TabsBehavior
public abstract class TabsBehavior
Provides a jQuery tabs behavior.
Note, this class has almost the same code as AccordionBehavior
Nested Class Summary | |
---|---|
protected static class |
TabsBehavior.ActivateEvent
Provides an event object that will be broadcasted by the JQueryAjaxBehavior 'activate' callback |
protected static class |
TabsBehavior.ActivatingEvent
|
Field Summary |
---|
Fields inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior |
---|
method, options, selector |
Constructor Summary | |
---|---|
TabsBehavior(String selector)
Constructor |
|
TabsBehavior(String selector,
Options options)
Constructor |
Method Summary | |
---|---|
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 tabs. Usually the model object of the component on which this TabsBehavior is bound to. |
boolean |
isOnActivatingEventEnabled()
Indicates whether the 'beforeActivate' event is enabled. If true, the onActivating(AjaxRequestTarget, int, ITab) event will be triggered. |
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)
|
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior |
---|
$, $, $, getOption, on, on, renderHead, setOption, setOptions |
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior |
---|
add, toString |
Methods inherited from class org.apache.wicket.behavior.Behavior |
---|
afterRender, beforeRender, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onComponentTag, onEvent, onException, onRemove, unbind |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TabsBehavior(String selector)
selector
- the html selector (ie: "#myId")public TabsBehavior(String selector, Options options)
selector
- the html selector (ie: "#myId")options
- the Options
Method Detail |
---|
protected abstract List<org.apache.wicket.extensions.markup.html.tabs.ITab> getTabs()
TabsBehavior
is bound to.
List
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)
target
- the AjaxRequestTarget
index
- the tab's indexpublic void onConfigure(org.apache.wicket.Component component)
onConfigure
in class org.apache.wicket.behavior.Behavior
public void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, JQueryEvent event)
onAjax
in interface IJQueryAjaxAware
protected JQueryAjaxBehavior newActivateEventBehavior()
JQueryAjaxBehavior
that acts as the 'activate' javascript callback
JQueryAjaxBehavior
protected JQueryAjaxBehavior newActivatingEventBehavior()
JQueryAjaxBehavior
that acts as the 'beforeActivate' javascript callback
JQueryAjaxBehavior
public boolean isOnActivatingEventEnabled()
onActivating(AjaxRequestTarget, int, ITab)
event will be triggered.
public void onActivating(org.apache.wicket.ajax.AjaxRequestTarget target, int index, org.apache.wicket.extensions.markup.html.tabs.ITab tab)
target
- the AjaxRequestTarget
index
- the previously selected tab indextab
- the ITab
that corresponds to the indexpublic void onActivate(org.apache.wicket.ajax.AjaxRequestTarget target, int index, org.apache.wicket.extensions.markup.html.tabs.ITab tab)
target
- the AjaxRequestTarget
index
- the tab index that triggered this eventtab
- the ITab
that corresponds to the index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |