Package com.vaadin.client.ui.dd
Class VOr
- java.lang.Object
-
- com.vaadin.client.ui.dd.VAcceptCriterion
-
- com.vaadin.client.ui.dd.VOr
-
- All Implemented Interfaces:
VAcceptCallback
public final class VOr extends VAcceptCriterion implements VAcceptCallback
-
-
Constructor Summary
Constructors Constructor Description VOr()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanaccept(VDragEvent drag, UIDL configuration)voidaccept(VDragEvent drag, UIDL configuration, VAcceptCallback callback)Checks if current drag event has valid drop target and target accepts the transferable.voidaccepted(VDragEvent event)This method is called byVDragAndDropManagerif theVDragEventis still active.booleanneedsServerSideCheck(VDragEvent drag, UIDL criterioUIDL)
-
-
-
Method Detail
-
accept
public void accept(VDragEvent drag, UIDL configuration, VAcceptCallback callback)
Description copied from class:VAcceptCriterionChecks if current drag event has valid drop target and target accepts the transferable. If drop target is valid, callback is used.- Overrides:
acceptin classVAcceptCriterion
-
needsServerSideCheck
public boolean needsServerSideCheck(VDragEvent drag, UIDL criterioUIDL)
- Overrides:
needsServerSideCheckin classVAcceptCriterion
-
accept
protected boolean accept(VDragEvent drag, UIDL configuration)
- Specified by:
acceptin classVAcceptCriterion
-
accepted
public void accepted(VDragEvent event)
Description copied from interface:VAcceptCallbackThis method is called byVDragAndDropManagerif theVDragEventis still active. Developer can update for example drag icon or empahsis the target if the target accepts the transferable. If the drag and drop operation ends or theVAbstractDropHandlerhas changed before response arrives, the method is never called.- Specified by:
acceptedin interfaceVAcceptCallback
-
-