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, setSelector
add, getJQueryLibrarySettings, renderOnDomReadyScript, renderPriorityHeaderItem, toString
public static final String METHOD
public MenuBehavior(String selector, IMenuListener listener)
selector
- the html selector (ie: "#myId")listener
- the IMenuListener
public MenuBehavior(String selector, com.googlecode.wicket.jquery.core.Options options, IMenuListener listener)
selector
- the html selector (ie: "#myId")options
- the Options
listener
- the IMenuListener
protected abstract Map<String,IMenuItem> getMenuItemMap()
Map
public void bind(org.apache.wicket.Component component)
bind
in class org.apache.wicket.behavior.Behavior
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 newOnSelectAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
JQueryAjaxBehavior
that will be wired to the 'select' eventsource
- the IJQueryAjaxAware
OnSelectAjaxBehavior
by defaultCopyright © 2016 7thWeb. All rights reserved.