Class CmsFavoritesDNDController
java.lang.Object
org.opencms.ade.containerpage.client.CmsFavoritesDNDController
- All Implemented Interfaces:
I_CmsDNDController
The favorites editing drag and drop controller.
- Since:
- 8.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonAnimationStart(I_CmsDraggable draggable, I_CmsDropTarget target, CmsDNDHandler handler) Executed when end animation starts.booleanonBeforeDrop(I_CmsDraggable draggable, I_CmsDropTarget target, CmsDNDHandler handler) Executed before drop.voidonDragCancel(I_CmsDraggable draggable, I_CmsDropTarget target, CmsDNDHandler handler) Executed on drag cancel.booleanonDragStart(I_CmsDraggable draggable, I_CmsDropTarget target, CmsDNDHandler handler) Executed on drag start.voidonDrop(I_CmsDraggable draggable, I_CmsDropTarget target, CmsDNDHandler handler) Executed on drop.voidonPositionedPlaceholder(I_CmsDraggable draggable, I_CmsDropTarget target, CmsDNDHandler handler) Executed after the placeholder has been positioned inside a drop target.booleanonTargetEnter(I_CmsDraggable draggable, I_CmsDropTarget target, CmsDNDHandler handler) Executed when the helper is dragged into a drop target.voidonTargetLeave(I_CmsDraggable draggable, I_CmsDropTarget target, CmsDNDHandler handler) Executed when the helper is dragged out of a drop target.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencms.gwt.client.dnd.I_CmsDNDController
postClear, startPlacementMode
-
Constructor Details
-
CmsFavoritesDNDController
public CmsFavoritesDNDController()
-
-
Method Details
-
onAnimationStart
public void onAnimationStart(I_CmsDraggable draggable, I_CmsDropTarget target, CmsDNDHandler handler) Description copied from interface:I_CmsDNDControllerExecuted when end animation starts.- Specified by:
onAnimationStartin interfaceI_CmsDNDController- Parameters:
draggable- the draggable itemtarget- the current drop targethandler- the drag and drop handler instance- See Also:
-
onBeforeDrop
public boolean onBeforeDrop(I_CmsDraggable draggable, I_CmsDropTarget target, CmsDNDHandler handler) Description copied from interface:I_CmsDNDControllerExecuted before drop.- Specified by:
onBeforeDropin interfaceI_CmsDNDController- Parameters:
draggable- the draggable itemtarget- the current drop targethandler- the drag and drop handler instance- Returns:
falseto cancel dropping- See Also:
-
onDragCancel
Description copied from interface:I_CmsDNDControllerExecuted on drag cancel.- Specified by:
onDragCancelin interfaceI_CmsDNDController- Parameters:
draggable- the draggable itemtarget- the current drop targethandler- the drag and drop handler instance- See Also:
-
onDragStart
Description copied from interface:I_CmsDNDControllerExecuted on drag start.- Specified by:
onDragStartin interfaceI_CmsDNDController- Parameters:
draggable- the draggable itemtarget- the current drop targethandler- the drag and drop handler instance- Returns:
falseto cancel dragging- See Also:
-
onDrop
Description copied from interface:I_CmsDNDControllerExecuted on drop.- Specified by:
onDropin interfaceI_CmsDNDController- Parameters:
draggable- the draggable itemtarget- the current drop targethandler- the drag and drop handler instance- See Also:
-
onPositionedPlaceholder
public void onPositionedPlaceholder(I_CmsDraggable draggable, I_CmsDropTarget target, CmsDNDHandler handler) Description copied from interface:I_CmsDNDControllerExecuted after the placeholder has been positioned inside a drop target.- Specified by:
onPositionedPlaceholderin interfaceI_CmsDNDController- Parameters:
draggable- the draggable itemtarget- the current drop targethandler- the drag and drop handler instance- See Also:
-
onTargetEnter
public boolean onTargetEnter(I_CmsDraggable draggable, I_CmsDropTarget target, CmsDNDHandler handler) Description copied from interface:I_CmsDNDControllerExecuted when the helper is dragged into a drop target.- Specified by:
onTargetEnterin interfaceI_CmsDNDController- Parameters:
draggable- the draggable itemtarget- the current drop targethandler- the drag and drop handler instance- Returns:
falseto cancel entering target (placeholder will not positioned inside target)- See Also:
-
onTargetLeave
Description copied from interface:I_CmsDNDControllerExecuted when the helper is dragged out of a drop target.- Specified by:
onTargetLeavein interfaceI_CmsDNDController- Parameters:
draggable- the draggable itemtarget- the current drop targethandler- the drag and drop handler instance- See Also:
-