public class ContextMenuBehavior extends JQueryAbstractBehavior implements 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
JQueryAjaxBehavior 'contextmenu' callback |
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,
JQueryEvent event) |
add, getJQueryLibrarySettings, getToken, onConfigure, renderHead, renderScript, 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 JQueryAbstractBehavior
public void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, JQueryEvent event)
onAjax
in interface IJQueryAjaxAware
Copyright © 2014 7thWeb. All Rights Reserved.