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.
AContextMenuBehavior
can 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 class
ContextMenuBehavior.ContextMenuEvent
Provides an event object that will be broadcasted by theContextMenuBehavior.OnContextMenuAjaxBehavior
callbackstatic class
ContextMenuBehavior.OnContextMenuAjaxBehavior
Provides aJQueryAjaxBehavior
that aims to be wired to the 'contextmenu' event
-
Field Summary
Fields Modifier and Type Field Description static 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
)
-
Constructor Summary
Constructors Constructor Description ContextMenuBehavior(ContextMenu menu)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
$()
void
bind(org.apache.wicket.Component component)
void
onAjax(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
- theContextMenu
that should be displayed
-
-
Method Detail
-
bind
public void bind(org.apache.wicket.Component component)
- Overrides:
bind
in 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:
onAjax
in interfacecom.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
-
-