com.alkacon.geranium.client.dnd
public interface I_DNDController
Implement and assign to the DNDHandler to control the drag process as well as the underlying model.
| Modifier and Type | Method and Description |
|---|---|
void |
onAnimationStart(I_Draggable draggable,
I_DropTarget target,
DNDHandler handler)
Executed when end animation starts.
|
boolean |
onBeforeDrop(I_Draggable draggable,
I_DropTarget target,
DNDHandler handler)
Executed before drop.
|
void |
onDragCancel(I_Draggable draggable,
I_DropTarget target,
DNDHandler handler)
Executed on drag cancel.
|
boolean |
onDragStart(I_Draggable draggable,
I_DropTarget target,
DNDHandler handler)
Executed on drag start.
|
void |
onDrop(I_Draggable draggable,
I_DropTarget target,
DNDHandler handler)
Executed on drop.
|
void |
onPositionedPlaceholder(I_Draggable draggable,
I_DropTarget target,
DNDHandler handler)
Executed after the placeholder has been positioned inside a drop target.
|
boolean |
onTargetEnter(I_Draggable draggable,
I_DropTarget target,
DNDHandler handler)
Executed when the helper is dragged into a drop target.
|
void |
onTargetLeave(I_Draggable draggable,
I_DropTarget target,
DNDHandler handler)
Executed when the helper is dragged out of a drop target.
|
void onAnimationStart(I_Draggable draggable, I_DropTarget target, DNDHandler handler)
draggable - the draggable itemtarget - the current drop targethandler - the drag and drop handler instanceboolean onBeforeDrop(I_Draggable draggable, I_DropTarget target, DNDHandler handler)
draggable - the draggable itemtarget - the current drop targethandler - the drag and drop handler instancefalse to cancel droppingvoid onDragCancel(I_Draggable draggable, I_DropTarget target, DNDHandler handler)
draggable - the draggable itemtarget - the current drop targethandler - the drag and drop handler instanceboolean onDragStart(I_Draggable draggable, I_DropTarget target, DNDHandler handler)
draggable - the draggable itemtarget - the current drop targethandler - the drag and drop handler instancefalse to cancel draggingvoid onDrop(I_Draggable draggable, I_DropTarget target, DNDHandler handler)
draggable - the draggable itemtarget - the current drop targethandler - the drag and drop handler instancevoid onPositionedPlaceholder(I_Draggable draggable, I_DropTarget target, DNDHandler handler)
draggable - the draggable itemtarget - the current drop targethandler - the drag and drop handler instanceboolean onTargetEnter(I_Draggable draggable, I_DropTarget target, DNDHandler handler)
draggable - the draggable itemtarget - the current drop targethandler - the drag and drop handler instancefalse to cancel entering target (placeholder will not positioned inside target)void onTargetLeave(I_Draggable draggable, I_DropTarget target, DNDHandler handler)
draggable - the draggable itemtarget - the current drop targethandler - the drag and drop handler instance