Package org.opencms.ui.apps
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
drop
(com.vaadin.event.dd.DragAndDropEvent dragEvent) com.vaadin.event.dd.acceptcriteria.AcceptCriterion
protected CmsUUID
getTargetId
(com.vaadin.event.dd.DragAndDropEvent dragEvent) Returns the drag target id.protected boolean
Evaluates if a drop on the given target is allowed.
-
Constructor Details
-
ExplorerDropHandler
public ExplorerDropHandler()
-
-
Method Details
-
drop
- Specified by:
drop
in interfacecom.vaadin.event.dd.DropHandler
- See Also:
-
DropHandler.drop(com.vaadin.event.dd.DragAndDropEvent)
-
getAcceptCriterion
- Specified by:
getAcceptCriterion
in interfacecom.vaadin.event.dd.DropHandler
- See Also:
-
DropHandler.getAcceptCriterion()
-
getTargetId
Returns the drag target id.- Parameters:
dragEvent
- the drag event- Returns:
- the drag target id
-
mayDrop
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
-