Class CmsFileExplorer.ExplorerDropHandler

java.lang.Object
org.opencms.ui.apps.CmsFileExplorer.ExplorerDropHandler
All Implemented Interfaces:
com.vaadin.event.dd.DropHandler, Serializable
Enclosing class:
CmsFileExplorer

public class CmsFileExplorer.ExplorerDropHandler extends Object implements com.vaadin.event.dd.DropHandler
The drop handler for copy/move operations.
See Also:
  • Constructor Details

  • Method Details

    • 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