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
@Deprecated public final class VOr extends VAcceptCriterion implements VAcceptCallback
Deprecated.Replaced in 8.1 withDropTargetExtension#setDropCriteria(String)- Author:
- Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor Description VOr()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected booleanaccept(VDragEvent drag, UIDL configuration)Deprecated.Returns whether a client-side check accepts the drop attempt.voidaccept(VDragEvent drag, UIDL configuration, VAcceptCallback callback)Deprecated.Checks if current drag event has valid drop target and target accepts the transferable.voidaccepted(VDragEvent event)Deprecated.This method is called byVDragAndDropManagerif theVDragEventis still active.booleanneedsServerSideCheck(VDragEvent drag, UIDL criterioUIDL)Deprecated.Returns whether a server side check is needed for determining acceptance.
-
-
-
Method Detail
-
accept
public void accept(VDragEvent drag, UIDL configuration, VAcceptCallback callback)
Deprecated.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- Parameters:
drag- the drag eventconfiguration- accept criterion UIDLcallback- the callback that handles acceptance if the target is valid
-
needsServerSideCheck
public boolean needsServerSideCheck(VDragEvent drag, UIDL criterioUIDL)
Deprecated.Description copied from class:VAcceptCriterionReturns whether a server side check is needed for determining acceptance.- Overrides:
needsServerSideCheckin classVAcceptCriterion- Parameters:
drag- the drag eventcriterioUIDL- accept criterion UIDL- Returns:
trueif a server side check is needed,falseotherwise
-
accept
protected boolean accept(VDragEvent drag, UIDL configuration)
Deprecated.Description copied from class:VAcceptCriterionReturns whether a client-side check accepts the drop attempt.- Specified by:
acceptin classVAcceptCriterion- Parameters:
drag- the drag eventconfiguration- accept criterion UIDL- Returns:
trueif a drop attempt is accepted,falseotherwise
-
accepted
public void accepted(VDragEvent event)
Deprecated.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- Parameters:
event- the drag event
-
-