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()
IDraggableListener
IDraggableListener.onDragStop(AjaxRequestTarget, int, int)
event will be triggered.isStopEventEnabled
in interface IDraggableListener
public void onDragStart(org.apache.wicket.ajax.AjaxRequestTarget target, int top, int left)
IDraggableListener
offsetTop
and offsetLeft
are available as RequestCycle
parametersonDragStart
in interface IDraggableListener
target
- the AjaxRequestTarget
top
- the position's top valueleft
- the position's left valuepublic void onDragStop(org.apache.wicket.ajax.AjaxRequestTarget target, int top, int left)
IDraggableListener
RequestCycle
parametersonDragStop
in interface IDraggableListener
target
- the AjaxRequestTarget
top
- the position's top valueleft
- the position's left valueIDraggableListener.isStopEventEnabled()
Copyright © 2022 7thWeb. All rights reserved.