Class CmsFileExplorer.ExplorerDropHandler

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void drop​(com.vaadin.event.dd.DragAndDropEvent dragEvent)  
      com.vaadin.event.dd.acceptcriteria.AcceptCriterion getAcceptCriterion()  
      protected CmsUUID getTargetId​(com.vaadin.event.dd.DragAndDropEvent dragEvent)
      Returns the drag target id.
      protected boolean mayDrop​(CmsUUID targetId)
      Evaluates if a drop on the given target is allowed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • drop

        public void drop​(com.vaadin.event.dd.DragAndDropEvent dragEvent)
        Specified by:
        drop in interface com.vaadin.event.dd.DropHandler
        See Also:
        DropHandler.drop(com.vaadin.event.dd.DragAndDropEvent)
      • getAcceptCriterion

        public com.vaadin.event.dd.acceptcriteria.AcceptCriterion getAcceptCriterion()
        Specified by:
        getAcceptCriterion in interface com.vaadin.event.dd.DropHandler
        See Also:
        DropHandler.getAcceptCriterion()
      • getTargetId

        protected CmsUUID getTargetId​(com.vaadin.event.dd.DragAndDropEvent dragEvent)
        Returns the drag target id.

        Parameters:
        dragEvent - the drag event
        Returns:
        the drag target id
      • mayDrop

        protected boolean mayDrop​(CmsUUID targetId)
        Evaluates if a drop on the given target is allowed.

        Parameters:
        targetId - the target id
        Returns:
        true if the resources may be dropped to the given target