Class DraggableAdapter
- java.lang.Object
-
- com.googlecode.wicket.jquery.ui.interaction.draggable.DraggableAdapter
-
- All Implemented Interfaces:
IDraggableListener,Serializable,org.apache.wicket.util.io.IClusterable
public class DraggableAdapter extends Object implements IDraggableListener
Adapter class forIDraggableListener- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DraggableAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisStopEventEnabled()Indicates whether the 'stop' event is enabled.
If true, theIDraggableListener.onDragStop(AjaxRequestTarget, int, int)event will be triggered.voidonDragStart(org.apache.wicket.ajax.AjaxRequestTarget target, int top, int left)Triggered when the drag starts
Note:offsetTopandoffsetLeftare available asRequestCycleparametersvoidonDragStop(org.apache.wicket.ajax.AjaxRequestTarget target, int top, int left)Triggered when the drag stops
offsetTop and offsetLeft are available asRequestCycleparameters
-
-
-
Method Detail
-
isStopEventEnabled
public boolean isStopEventEnabled()
Description copied from interface:IDraggableListenerIndicates whether the 'stop' event is enabled.
If true, theIDraggableListener.onDragStop(AjaxRequestTarget, int, int)event will be triggered.- Specified by:
isStopEventEnabledin interfaceIDraggableListener- Returns:
- false by default
-
onDragStart
public void onDragStart(org.apache.wicket.ajax.AjaxRequestTarget target, int top, int left)Description copied from interface:IDraggableListenerTriggered when the drag starts
Note:offsetTopandoffsetLeftare available asRequestCycleparameters- Specified by:
onDragStartin interfaceIDraggableListener- Parameters:
target- theAjaxRequestTargettop- the position's top valueleft- the position's left value
-
onDragStop
public void onDragStop(org.apache.wicket.ajax.AjaxRequestTarget target, int top, int left)Description copied from interface:IDraggableListenerTriggered when the drag stops
offsetTop and offsetLeft are available asRequestCycleparameters- Specified by:
onDragStopin interfaceIDraggableListener- Parameters:
target- theAjaxRequestTargettop- the position's top valueleft- the position's left value- See Also:
IDraggableListener.isStopEventEnabled()
-
-