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.IJQueryAjaxAware
Provides a jQuery context menu behavior.
A
A
ContextMenuBehavior can be associated to only one Component (ie: The behavior cannot be reused).- Since:
- 6.2.8
- Author:
- Sebastien Briquet - sebfz1
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classProvides an event object that will be broadcasted by theContextMenuBehavior.OnContextMenuAjaxBehaviorcallbackstatic classProvides aJQueryAjaxBehaviorthat aims to be wired to the 'contextmenu' event -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCSS 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 -
Method Summary
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
add, getJQueryLibrarySettings, renderHead, renderOnDomReadyScript, renderPriorityHeaderItem, toStringMethods inherited from class org.apache.wicket.behavior.Behavior
afterRender, beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onConfigure, onEvent, onException, onRemove, onTag, unbind
-
Field Details
-
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:
-
-
Constructor Details
-
Method Details
-
bind
public void bind(org.apache.wicket.Component component) - Overrides:
bindin classorg.apache.wicket.behavior.Behavior
-
$
- 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
-