public class DnDBehaviour extends JQueryBehavior implements org.apache.wicket.behavior.IBehaviorListener
INTERFACE_JS, JQUERY_BGIFRAME_JS, JQUERY_DEBUG_JS, JQUERY_REGEXP, JQUERY_UI_JS| Constructor and Description |
|---|
DnDBehaviour() |
DnDBehaviour(Options draggableOptions,
Options droppableOptions,
String dragSelector,
String dropSelector) |
DnDBehaviour(String dragSelector,
String dropSelector) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDropScript() |
protected CharSequence |
getOnReadyScript()
to be override by subclass if need to run script when dom is ready.
|
String |
getRebindScript() |
void |
onDrop(String srcId,
String destId,
org.apache.wicket.ajax.AjaxRequestTarget target) |
void |
renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.head.IHeaderResponse response) |
void |
respond(org.apache.wicket.ajax.AjaxRequestTarget target) |
protected void |
updateAjaxAttributes(org.apache.wicket.ajax.attributes.AjaxRequestAttributes attributes) |
getIncludeJQueryJS, loggerfindIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, onBind, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributesafterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbindbeforeRender, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onConfigure, onEvent, onException, onRemovepublic DnDBehaviour()
public DnDBehaviour(Options draggableOptions, Options droppableOptions, String dragSelector, String dropSelector)
draggableOptions - (helper=clone to "leave a copy" of the object you are dragging. Doesn't work
without helper argument.)droppableOptions - (hoverClass=cssClass to set on hover over a droppable)dropSelector - jquery selector setting what elements are droppable (example: #myListId li)dragSelector - jquery selector setting what elements are draggable (example: .draggable)public void renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.head.IHeaderResponse response)
renderHead in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributorrenderHead in class JQueryBehaviorpublic String getDropScript()
public final void respond(org.apache.wicket.ajax.AjaxRequestTarget target)
respond in class JQueryBehaviorprotected void updateAjaxAttributes(org.apache.wicket.ajax.attributes.AjaxRequestAttributes attributes)
updateAjaxAttributes in class org.apache.wicket.ajax.AbstractDefaultAjaxBehaviorpublic void onDrop(String srcId, String destId, org.apache.wicket.ajax.AjaxRequestTarget target)
protected CharSequence getOnReadyScript()
JQueryBehaviorgetOnReadyScript in class JQueryBehaviorpublic String getRebindScript()
Copyright © 2015. All rights reserved.