public abstract class RightClickBehavior extends org.apache.wicket.ajax.AbstractDefaultAjaxBehavior implements IContextMenu
Modifier and Type | Field and Description |
---|---|
static String |
MOUSE_X_PARAM |
static String |
MOUSE_Y_PARAM |
Constructor and Description |
---|
RightClickBehavior(org.apache.wicket.MarkupContainer contextmenu,
org.apache.wicket.MarkupContainer componentToUpdate) |
Modifier and Type | Method and Description |
---|---|
void |
collapse(org.apache.wicket.ajax.AjaxRequestTarget target)
Close the contextmenu
|
CharSequence |
getCallbackUrl(boolean onlyTargetActivePage)
Add the x&y coordinates to the callback url by concatenating them.
|
org.apache.wicket.MarkupContainer |
getComponentToUpdate() |
org.apache.wicket.MarkupContainer |
getContextmenu() |
void |
renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
Set up a YUI 'contextmenu' event listener on the component.
|
findIndicatorId, generateCallbackScript, getAjaxCallDecorator, getCallbackScript, getCallbackScript, getChannelName, getFailureScript, getPreconditionScript, getSuccessScript, onBind, onRequest, respond, throttleScript
bind, getCallbackUrl, getComponent, getImplementationId, getStatelessHint, onComponentRendered, onComponentTag, onComponentTag, onRendered, onRenderHeadContribution, onRenderHeadInitContribution
public static final String MOUSE_X_PARAM
public static final String MOUSE_Y_PARAM
public RightClickBehavior(org.apache.wicket.MarkupContainer contextmenu, org.apache.wicket.MarkupContainer componentToUpdate)
public void renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
renderHead
in interface org.apache.wicket.markup.html.IHeaderContributor
renderHead
in class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
public CharSequence getCallbackUrl(boolean onlyTargetActivePage)
getCallbackUrl
in class org.apache.wicket.behavior.AbstractAjaxBehavior
public void collapse(org.apache.wicket.ajax.AjaxRequestTarget target)
IContextMenu
collapse
in interface IContextMenu
public org.apache.wicket.MarkupContainer getContextmenu()
public org.apache.wicket.MarkupContainer getComponentToUpdate()
Copyright © 2007-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.