public class ContextMenuBehavior
extends com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
implements com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
ContextMenuBehavior
can be associated to only one Component
(ie: The behavior cannot be reused).Modifier and Type | Class and Description |
---|---|
protected static class |
ContextMenuBehavior.ContextMenuEvent
Provides an event object that will be broadcasted by the
ContextMenuBehavior.OnContextMenuAjaxBehavior callback |
static class |
ContextMenuBehavior.OnContextMenuAjaxBehavior
Provides a
JQueryAjaxBehavior that aims to be wired to the 'contextmenu' event |
Modifier and Type | Field and 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 in
ContextMenu ) |
Constructor and Description |
---|
ContextMenuBehavior(ContextMenu menu)
Constructor
|
Modifier and Type | Method and 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) |
add, getJQueryLibrarySettings, renderHead, renderOnDomReadyScript, renderPriorityHeaderItem, toString
public static final String INVOKER_CSS_CLASS
ContextMenu
)public ContextMenuBehavior(ContextMenu menu)
menu
- the ContextMenu
that should be displayedpublic void bind(org.apache.wicket.Component component)
bind
in class org.apache.wicket.behavior.Behavior
protected String $()
$
in class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
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
Copyright © 2016 7thWeb. All rights reserved.