Interface I_CmsDNDController

    • Method Detail

      • onBeforeDrop

        boolean onBeforeDrop​(I_CmsDraggable draggable,
                             I_CmsDropTarget target,
                             CmsDNDHandler handler)
        Executed before drop.

        Parameters:
        draggable - the draggable item
        target - the current drop target
        handler - the drag and drop handler instance
        Returns:
        false to cancel dropping
      • onDragStart

        boolean onDragStart​(I_CmsDraggable draggable,
                            I_CmsDropTarget target,
                            CmsDNDHandler handler)
        Executed on drag start.

        Parameters:
        draggable - the draggable item
        target - the current drop target
        handler - the drag and drop handler instance
        Returns:
        false to cancel dragging
      • onPositionedPlaceholder

        void onPositionedPlaceholder​(I_CmsDraggable draggable,
                                     I_CmsDropTarget target,
                                     CmsDNDHandler handler)
        Executed after the placeholder has been positioned inside a drop target.

        Parameters:
        draggable - the draggable item
        target - the current drop target
        handler - the drag and drop handler instance
      • onTargetEnter

        boolean onTargetEnter​(I_CmsDraggable draggable,
                              I_CmsDropTarget target,
                              CmsDNDHandler handler)
        Executed when the helper is dragged into a drop target.

        Parameters:
        draggable - the draggable item
        target - the current drop target
        handler - the drag and drop handler instance
        Returns:
        false to cancel entering target (placeholder will not positioned inside target)
      • onTargetLeave

        void onTargetLeave​(I_CmsDraggable draggable,
                           I_CmsDropTarget target,
                           CmsDNDHandler handler)
        Executed when the helper is dragged out of a drop target.

        Parameters:
        draggable - the draggable item
        target - the current drop target
        handler - the drag and drop handler instance