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, logger
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, onBind, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes
afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
beforeRender, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onConfigure, onEvent, onException, onRemove
public 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.IComponentAwareHeaderContributor
renderHead
in class JQueryBehavior
public String getDropScript()
public final void respond(org.apache.wicket.ajax.AjaxRequestTarget target)
respond
in class JQueryBehavior
protected void updateAjaxAttributes(org.apache.wicket.ajax.attributes.AjaxRequestAttributes attributes)
updateAjaxAttributes
in class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
public void onDrop(String srcId, String destId, org.apache.wicket.ajax.AjaxRequestTarget target)
protected CharSequence getOnReadyScript()
JQueryBehavior
getOnReadyScript
in class JQueryBehavior
public String getRebindScript()
Copyright © 2015. All rights reserved.