public interface I_CmsDNDController
Implement and assign to the CmsDNDHandler to control the drag process as well as the underlying model.
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onAnimationStart(I_CmsDraggable draggable,
I_CmsDropTarget target,
CmsDNDHandler handler)
Executed when end animation starts.
|
boolean |
onBeforeDrop(I_CmsDraggable draggable,
I_CmsDropTarget target,
CmsDNDHandler handler)
Executed before drop.
|
void |
onDragCancel(I_CmsDraggable draggable,
I_CmsDropTarget target,
CmsDNDHandler handler)
Executed on drag cancel.
|
boolean |
onDragStart(I_CmsDraggable draggable,
I_CmsDropTarget target,
CmsDNDHandler handler)
Executed on drag start.
|
void |
onDrop(I_CmsDraggable draggable,
I_CmsDropTarget target,
CmsDNDHandler handler)
Executed on drop.
|
void |
onPositionedPlaceholder(I_CmsDraggable draggable,
I_CmsDropTarget target,
CmsDNDHandler handler)
Executed after the placeholder has been positioned inside a drop target.
|
boolean |
onTargetEnter(I_CmsDraggable draggable,
I_CmsDropTarget target,
CmsDNDHandler handler)
Executed when the helper is dragged into a drop target.
|
void |
onTargetLeave(I_CmsDraggable draggable,
I_CmsDropTarget target,
CmsDNDHandler handler)
Executed when the helper is dragged out of a drop target.
|
void onAnimationStart(I_CmsDraggable draggable, I_CmsDropTarget target, CmsDNDHandler handler)
draggable - the draggable itemtarget - the current drop targethandler - the drag and drop handler instanceboolean onBeforeDrop(I_CmsDraggable draggable, I_CmsDropTarget target, CmsDNDHandler handler)
draggable - the draggable itemtarget - the current drop targethandler - the drag and drop handler instancefalse to cancel droppingvoid onDragCancel(I_CmsDraggable draggable, I_CmsDropTarget target, CmsDNDHandler handler)
draggable - the draggable itemtarget - the current drop targethandler - the drag and drop handler instanceboolean onDragStart(I_CmsDraggable draggable, I_CmsDropTarget target, CmsDNDHandler handler)
draggable - the draggable itemtarget - the current drop targethandler - the drag and drop handler instancefalse to cancel draggingvoid onDrop(I_CmsDraggable draggable, I_CmsDropTarget target, CmsDNDHandler handler)
draggable - the draggable itemtarget - the current drop targethandler - the drag and drop handler instancevoid onPositionedPlaceholder(I_CmsDraggable draggable, I_CmsDropTarget target, CmsDNDHandler handler)
draggable - the draggable itemtarget - the current drop targethandler - the drag and drop handler instanceboolean onTargetEnter(I_CmsDraggable draggable, I_CmsDropTarget target, CmsDNDHandler 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_CmsDraggable draggable, I_CmsDropTarget target, CmsDNDHandler handler)
draggable - the draggable itemtarget - the current drop targethandler - the drag and drop handler instance