com.googlecode.wicket.jquery.ui.widget.menu
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.widget.menu.MenuBehavior
- All Implemented Interfaces:
- IJQueryAjaxAware, Serializable, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.markup.html.IComponentAwareHeaderContributor, org.apache.wicket.util.io.IClusterable
public abstract class MenuBehavior
- extends JQueryBehavior
- implements IJQueryAjaxAware
Provides a jQuery menu behavior.
- Since:
- 1.4.2, 1.6.2
- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
Methods inherited from class org.apache.wicket.behavior.Behavior |
afterRender, beforeRender, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onComponentTag, onEvent, onException, onRemove, unbind |
MenuBehavior
public MenuBehavior(String selector)
- Constructor
- Parameters:
selector
- the html selector (ie: "#myId")
MenuBehavior
public MenuBehavior(String selector,
Options options)
- Constructor
- Parameters:
selector
- the html selector (ie: "#myId")options
- the Options
getMenuItemMap
protected abstract Map<String,IMenuItem> getMenuItemMap()
- Gets the reference map of hash/menu-item.
- Returns:
- the non-null
Map
bind
public void bind(org.apache.wicket.Component component)
- Overrides:
bind
in class org.apache.wicket.behavior.Behavior
onConfigure
public void onConfigure(org.apache.wicket.Component component)
- Overrides:
onConfigure
in class JQueryAbstractBehavior
onAjax
public void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
JQueryEvent event)
- Specified by:
onAjax
in interface IJQueryAjaxAware
newOnSelectBehavior
protected JQueryAjaxBehavior newOnSelectBehavior()
- Gets a new
JQueryAjaxBehavior
that acts as the 'select' javascript callback
- Returns:
- the
JQueryAjaxBehavior
onClick
public void onClick(org.apache.wicket.ajax.AjaxRequestTarget target,
IMenuItem item)
- Triggered when a menu-item is clicked
- Parameters:
target
- the AjaxRequestTarget
item
- the IMenuItem
Copyright © 2013 7thWeb. All Rights Reserved.