Class MenuBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
com.googlecode.wicket.jquery.core.JQueryBehavior
com.googlecode.wicket.jquery.ui.JQueryUIBehavior
com.googlecode.wicket.jquery.ui.widget.menu.MenuBehavior
- All Implemented Interfaces:
com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware,JQueryDestroyListener.IDestroyable,Serializable,org.apache.wicket.IComponentAwareEventSink,org.apache.wicket.markup.html.IComponentAwareHeaderContributor,org.apache.wicket.util.io.IClusterable
public abstract class MenuBehavior
extends JQueryUIBehavior
implements com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
Provides a jQuery menu behavior.
- Since:
- 1.4.2, 1.6.2
- Author:
- Sebastien Briquet - sebfz1
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classProvides aJQueryAjaxBehaviorthat aims to be wired to the 'select' eventprotected static classProvides an event object that will be broadcasted by theMenuBehavior.OnSelectAjaxBehaviorcallback -
Field Summary
FieldsFields inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior
method, options, selector -
Constructor Summary
ConstructorsConstructorDescriptionMenuBehavior(String selector, com.googlecode.wicket.jquery.core.Options options, IMenuListener listener) ConstructorMenuBehavior(String selector, IMenuListener listener) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(org.apache.wicket.Component component) Gets the reference map of hash/menu-item.protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehaviornewOnSelectAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source) Gets a newJQueryAjaxBehaviorthat will be wired to the 'select' eventvoidonAjax(org.apache.wicket.ajax.AjaxRequestTarget target, com.googlecode.wicket.jquery.core.JQueryEvent event) voidonConfigure(org.apache.wicket.Component component) Methods inherited from class com.googlecode.wicket.jquery.ui.JQueryUIBehavior
destroy, onDestroy, widget, widget, widget, widgetMethods inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior
$, $, $, $, beforeRender, detach, getMethod, getOption, getOptions, getSelector, off, on, on, register, remove, renderHead, setOption, setOption, setOption, setOptions, setSelectorMethods inherited from class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
add, getJQueryLibrarySettings, renderOnDomReadyScript, renderPriorityHeaderItem, toStringMethods inherited from class org.apache.wicket.behavior.Behavior
afterRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onEvent, onException, onRemove, onTag, unbind
-
Field Details
-
METHOD
- See Also:
-
-
Constructor Details
-
Method Details
-
getMenuItemMap
Gets the reference map of hash/menu-item.- Returns:
- the non-null
Map
-
bind
public void bind(org.apache.wicket.Component component) - Overrides:
bindin classorg.apache.wicket.behavior.Behavior
-
onConfigure
public void onConfigure(org.apache.wicket.Component component) - Overrides:
onConfigurein classJQueryUIBehavior
-
onAjax
public void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, com.googlecode.wicket.jquery.core.JQueryEvent event) - Specified by:
onAjaxin interfacecom.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
-
newOnSelectAjaxBehavior
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnSelectAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source) Gets a newJQueryAjaxBehaviorthat will be wired to the 'select' event- Parameters:
source- theIJQueryAjaxAware- Returns:
- a new
OnSelectAjaxBehaviorby default
-