public abstract class DraggableBehavior extends JQueryUIBehavior implements IJQueryAjaxAware
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DraggableBehavior.DraggableEvent
Provides a base class for draggable event object
|
protected static class |
DraggableBehavior.DragStartEvent
Provides an event object that will be broadcasted by the
JQueryAjaxBehavior 'start' callback |
protected static class |
DraggableBehavior.DragStopEvent
Provides an event object that will be broadcasted by the
JQueryAjaxBehavior 'stop' callback |
method, options, selector| Constructor and Description |
|---|
DraggableBehavior(java.lang.String selector)
Constructor
|
DraggableBehavior(java.lang.String selector,
Options options)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind(org.apache.wicket.Component component) |
boolean |
isStopEventEnabled()
Indicates whether the 'stop' event is enabled.
If true, the onDragStop(AjaxRequestTarget, int, int) event will be triggered. |
protected JQueryAjaxBehavior |
newOnDragStartBehavior()
Gets a new
JQueryAjaxBehavior that will be called on 'start' javascript event |
protected JQueryAjaxBehavior |
newOnDragStopBehavior()
Gets a new
JQueryAjaxBehavior that will be called on 'stop' javascript event |
void |
onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
JQueryEvent event) |
void |
onConfigure(org.apache.wicket.Component component) |
void |
onDragStart(org.apache.wicket.ajax.AjaxRequestTarget target,
int top,
int left)
Triggered when the drag starts
Note: offsetTop and offsetLeft are available as RequestCycle parameters |
void |
onDragStop(org.apache.wicket.ajax.AjaxRequestTarget target,
int top,
int left)
Triggered when the drag stops
offsetTop and offsetLeft are available as RequestCycle parameters |
$, $, $, beforeRender, getMethod, getOption, getOptions, getSelector, on, on, on, renderHead, setOption, setOption, setOption, setOptions, setSelectoradd, getJQueryLibrarySettings, getToken, renderScript, toStringpublic DraggableBehavior(java.lang.String selector)
selector - the html selector (ie: "#myId")public void bind(org.apache.wicket.Component component)
bind in class org.apache.wicket.behavior.Behaviorpublic void onConfigure(org.apache.wicket.Component component)
onConfigure in class JQueryUIBehaviorpublic void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
JQueryEvent event)
onAjax in interface IJQueryAjaxAwareprotected JQueryAjaxBehavior newOnDragStartBehavior()
JQueryAjaxBehavior that will be called on 'start' javascript eventJQueryAjaxBehaviorprotected JQueryAjaxBehavior newOnDragStopBehavior()
JQueryAjaxBehavior that will be called on 'stop' javascript eventJQueryAjaxBehaviorpublic boolean isStopEventEnabled()
onDragStop(AjaxRequestTarget, int, int) event will be triggered.public void onDragStart(org.apache.wicket.ajax.AjaxRequestTarget target,
int top,
int left)
target - the AjaxRequestTargettop - the position's top valueleft - the position's left valuepublic void onDragStop(org.apache.wicket.ajax.AjaxRequestTarget target,
int top,
int left)
RequestCycle parameterstarget - the AjaxRequestTargettop - the position's top valueleft - the position's left valueisStopEventEnabled()Copyright © 2014 7thWeb. All Rights Reserved.