public class DraggableAdapter extends Object implements IDraggableListener
IDraggableListener| Constructor and Description |
|---|
DraggableAdapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStopEventEnabled()
Indicates whether the 'stop' event is enabled.
If true, the IDraggableListener.onDragStop(AjaxRequestTarget, int, int) event will be triggered. |
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 |
public boolean isStopEventEnabled()
IDraggableListenerIDraggableListener.onDragStop(AjaxRequestTarget, int, int) event will be triggered.isStopEventEnabled in interface IDraggableListenerpublic void onDragStart(org.apache.wicket.ajax.AjaxRequestTarget target,
int top,
int left)
IDraggableListeneroffsetTop and offsetLeft are available as RequestCycle parametersonDragStart in interface IDraggableListenertarget - the AjaxRequestTargettop - the position's top valueleft - the position's left valuepublic void onDragStop(org.apache.wicket.ajax.AjaxRequestTarget target,
int top,
int left)
IDraggableListenerRequestCycle parametersonDragStop in interface IDraggableListenertarget - the AjaxRequestTargettop - the position's top valueleft - the position's left valueIDraggableListener.isStopEventEnabled()Copyright © 2017 7thWeb. All rights reserved.