public abstract class MenuBehavior extends JQueryUIBehavior implements com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MenuBehavior.OnSelectAjaxBehavior
Provides a
JQueryAjaxBehavior that aims to be wired to the 'select' event |
protected static class |
MenuBehavior.SelectEvent
Provides an event object that will be broadcasted by the
MenuBehavior.OnSelectAjaxBehavior callback |
| Constructor and Description |
|---|
MenuBehavior(String selector,
IMenuListener listener)
Constructor
|
MenuBehavior(String selector,
com.googlecode.wicket.jquery.core.Options options,
IMenuListener listener)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind(org.apache.wicket.Component component) |
protected abstract Map<String,IMenuItem> |
getMenuItemMap()
Gets the reference map of hash/menu-item.
|
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior |
newOnSelectAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a new
JQueryAjaxBehavior that will be wired to the 'select' 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, setSelectoradd, getJQueryLibrarySettings, renderOnDomReadyScript, renderPriorityHeaderItem, toStringpublic static final String METHOD
public MenuBehavior(String selector, IMenuListener listener)
selector - the html selector (ie: "#myId")listener - the IMenuListenerpublic MenuBehavior(String selector, com.googlecode.wicket.jquery.core.Options options, IMenuListener listener)
selector - the html selector (ie: "#myId")options - the Optionslistener - the IMenuListenerprotected abstract Map<String,IMenuItem> getMenuItemMap()
Mappublic void bind(org.apache.wicket.Component component)
bind in class org.apache.wicket.behavior.Behaviorpublic void onConfigure(org.apache.wicket.Component component)
onConfigure in class JQueryUIBehaviorpublic void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
com.googlecode.wicket.jquery.core.JQueryEvent event)
onAjax in interface com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAwareprotected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnSelectAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
JQueryAjaxBehavior that will be wired to the 'select' eventsource - the IJQueryAjaxAwareOnSelectAjaxBehavior by defaultCopyright © 2017 7thWeb. All rights reserved.