Interface IDraggableListener
-
- All Superinterfaces:
org.apache.wicket.util.io.IClusterable
,Serializable
- All Known Implementing Classes:
Draggable
,DraggableAdapter
public interface IDraggableListener extends org.apache.wicket.util.io.IClusterable
Event listener shared by theDraggable
widget and theDraggableBehavior
- Author:
- Sebastien Briquet - sebfz1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isStopEventEnabled()
Indicates whether the 'stop' event is enabled.
If true, theonDragStop(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
andoffsetLeft
are available asRequestCycle
parametersvoid
onDragStop(org.apache.wicket.ajax.AjaxRequestTarget target, int top, int left)
Triggered when the drag stops
offsetTop and offsetLeft are available asRequestCycle
parameters
-
-
-
Method Detail
-
isStopEventEnabled
boolean isStopEventEnabled()
Indicates whether the 'stop' event is enabled.
If true, theonDragStop(AjaxRequestTarget, int, int)
event will be triggered.- Returns:
- false by default
-
onDragStart
void onDragStart(org.apache.wicket.ajax.AjaxRequestTarget target, int top, int left)
Triggered when the drag starts
Note:offsetTop
andoffsetLeft
are available asRequestCycle
parameters- Parameters:
target
- theAjaxRequestTarget
top
- the position's top valueleft
- the position's left value
-
onDragStop
void onDragStop(org.apache.wicket.ajax.AjaxRequestTarget target, int top, int left)
Triggered when the drag stops
offsetTop and offsetLeft are available asRequestCycle
parameters- Parameters:
target
- theAjaxRequestTarget
top
- the position's top valueleft
- the position's left value- See Also:
isStopEventEnabled()
-
-