Interface I_CmsDropTarget

    • Method Detail

      • checkPosition

        boolean checkPosition​(int x,
                              int y,
                              CmsDNDHandler.Orientation orientation)
        Returns true if the given cursor position is over the drop target.

        Parameters:
        x - the cursor client x position
        y - the cursor client y position
        orientation - the drag and drop orientation
        Returns:
        true if the given cursor position is over the drop target
      • getElement

        com.google.gwt.dom.client.Element getElement()
        Returns the drop target element.

        This must be the element, where all children will be attached.

        Returns:
        the element
      • getPlaceholderIndex

        int getPlaceholderIndex()
        Returns the index of the placeholder or -1 if no placeholder is attached.

        Returns:
        the index
      • insertPlaceholder

        void insertPlaceholder​(com.google.gwt.dom.client.Element placeholder,
                               int x,
                               int y,
                               CmsDNDHandler.Orientation orientation)
        Inserts a new placeholder.

        Parameters:
        placeholder - the placeholder element
        x - the cursor client x position
        y - the cursor client y position
        orientation - the drag and drop orientation
      • onDrop

        void onDrop​(I_CmsDraggable draggable)
        Executed on drop.

        Parameters:
        draggable - the draggable being dropped
      • repositionPlaceholder

        void repositionPlaceholder​(int x,
                                   int y,
                                   CmsDNDHandler.Orientation orientation)
        Repositions the placeholder.

        Parameters:
        x - the cursor client x position
        y - the cursor client y position
        orientation - the drag and drop orientation