Class ContextMenuBehavior
- java.lang.Object
-
- org.apache.wicket.behavior.Behavior
-
- com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
-
- com.googlecode.wicket.jquery.ui.widget.menu.ContextMenuBehavior
-
- All Implemented Interfaces:
com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware,Serializable,org.apache.wicket.IComponentAwareEventSink,org.apache.wicket.markup.html.IComponentAwareHeaderContributor,org.apache.wicket.util.io.IClusterable
public class ContextMenuBehavior extends com.googlecode.wicket.jquery.core.JQueryAbstractBehavior implements com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAwareProvides a jQuery context menu behavior.
AContextMenuBehaviorcan be associated to only oneComponent(ie: The behavior cannot be reused).- Since:
- 6.2.8
- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classContextMenuBehavior.ContextMenuEventProvides an event object that will be broadcasted by theContextMenuBehavior.OnContextMenuAjaxBehaviorcallbackstatic classContextMenuBehavior.OnContextMenuAjaxBehaviorProvides aJQueryAjaxBehaviorthat aims to be wired to the 'contextmenu' event
-
Field Summary
Fields Modifier and Type Field Description static StringINVOKER_CSS_CLASSCSS class used to identify the component that invoke the context menu, in order to avoid events conflict (with the registered click inContextMenu)
-
Constructor Summary
Constructors Constructor Description ContextMenuBehavior(ContextMenu menu)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String$()voidbind(org.apache.wicket.Component component)voidonAjax(org.apache.wicket.ajax.AjaxRequestTarget target, com.googlecode.wicket.jquery.core.JQueryEvent event)-
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
add, getJQueryLibrarySettings, renderHead, renderOnDomReadyScript, renderPriorityHeaderItem, toString
-
-
-
-
Field Detail
-
INVOKER_CSS_CLASS
public static final String INVOKER_CSS_CLASS
CSS class used to identify the component that invoke the context menu, in order to avoid events conflict (with the registered click inContextMenu)- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ContextMenuBehavior
public ContextMenuBehavior(ContextMenu menu)
Constructor- Parameters:
menu- theContextMenuthat should be displayed
-
-
Method Detail
-
bind
public void bind(org.apache.wicket.Component component)
- Overrides:
bindin classorg.apache.wicket.behavior.Behavior
-
$
protected String $()
- Specified by:
$in classcom.googlecode.wicket.jquery.core.JQueryAbstractBehavior
-
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
-
-