Package com.vaadin.event.dd
Interface DropHandler
-
- All Superinterfaces:
Serializable
@Deprecated public interface DropHandler extends Serializable
Deprecated.Replaced in 8.1 byDropListenerDropHandlers contain the actual business logic for drag and drop operations.The
drop(DragAndDropEvent)method is used to receive the transferred data and thegetAcceptCriterion()method contains the (possibly client side verifiable) criterion whether the dragged data will be handled at all.- Since:
- 6.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voiddrop(DragAndDropEvent event)Deprecated.Drop method is called when the end user has finished the drag operation on aDropTargetandDragAndDropEventhas passedAcceptCriteriondefined bygetAcceptCriterion()method.AcceptCriteriongetAcceptCriterion()Deprecated.Returns theAcceptCriterionused to evaluate whether theTransferablewill be handed over todrop(DragAndDropEvent)method.
-
-
-
Method Detail
-
drop
void drop(DragAndDropEvent event)
Deprecated.Drop method is called when the end user has finished the drag operation on aDropTargetandDragAndDropEventhas passedAcceptCriteriondefined bygetAcceptCriterion()method. The actual business logic of drag and drop operation is implemented into this method.- Parameters:
event- the event related to this drop
-
getAcceptCriterion
AcceptCriterion getAcceptCriterion()
Deprecated.Returns theAcceptCriterionused to evaluate whether theTransferablewill be handed over todrop(DragAndDropEvent)method. If client side can't verify theAcceptCriterion, the same criteria may be tested also prior to actual drop - during the drag operation.Based on information from
AcceptCriterioncomponents may display some hints for the end user whether the drop will be accepted or not.Vaadin contains a variety of criteria built in that can be composed to more complex criterion. If the build in criteria are not enough, developer can use a
ServerSideCriterionor build own custom criterion with client side counterpart.If developer wants to handle everything in the
drop(DragAndDropEvent)method,AcceptAllinstance can be returned.- Returns:
- the
AcceptCriterion
-
-