public class DraggableAdapter extends Object implements IDraggableListener
IDraggableListener| Constructor and Description |
|---|
DraggableAdapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCancelEventEnabled()
Indicates whether the 'dragcancel' event is enabled.
If true, the IDraggableListener.onDragCancel(AjaxRequestTarget, int, int) event will be triggered. |
void |
onDragCancel(org.apache.wicket.ajax.AjaxRequestTarget target,
int top,
int left)
Triggered when the drag cancels
offsetTop and offsetLeft are available as RequestCycle parameters |
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 isCancelEventEnabled()
IDraggableListenerIDraggableListener.onDragCancel(AjaxRequestTarget, int, int) event will be triggered.isCancelEventEnabled 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 valuepublic void onDragCancel(org.apache.wicket.ajax.AjaxRequestTarget target,
int top,
int left)
IDraggableListenerRequestCycle parametersonDragCancel in interface IDraggableListenertarget - the AjaxRequestTargettop - the position's top valueleft - the position's left valueIDraggableListener.isCancelEventEnabled()Copyright © 2021 7thWeb. All rights reserved.