DropTargetExtension#setDropCriteria(String)@Deprecated public final class VOr extends VAcceptCriterion implements VAcceptCallback
| Constructor and Description |
|---|
VOr()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept(VDragEvent drag,
UIDL configuration)
Deprecated.
Returns whether a client-side check accepts the drop attempt.
|
void |
accept(VDragEvent drag,
UIDL configuration,
VAcceptCallback callback)
Deprecated.
Checks if current drag event has valid drop target and target accepts the
transferable.
|
void |
accepted(VDragEvent event)
Deprecated.
This method is called by
VDragAndDropManager if the
VDragEvent is still active. |
boolean |
needsServerSideCheck(VDragEvent drag,
UIDL criterioUIDL)
Deprecated.
Returns whether a server side check is needed for determining acceptance.
|
public void accept(VDragEvent drag, UIDL configuration, VAcceptCallback callback)
VAcceptCriterionaccept in class VAcceptCriteriondrag - the drag eventconfiguration - accept criterion UIDLcallback - the callback that handles acceptance if the target is validpublic boolean needsServerSideCheck(VDragEvent drag, UIDL criterioUIDL)
VAcceptCriterionneedsServerSideCheck in class VAcceptCriteriondrag - the drag eventcriterioUIDL - accept criterion UIDLtrue if a server side check is needed, false
otherwiseprotected boolean accept(VDragEvent drag, UIDL configuration)
VAcceptCriterionaccept in class VAcceptCriteriondrag - the drag eventconfiguration - accept criterion UIDLtrue if a drop attempt is accepted, false
otherwisepublic void accepted(VDragEvent event)
VAcceptCallbackVDragAndDropManager if the
VDragEvent is 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 the VAbstractDropHandler has
changed before response arrives, the method is never called.accepted in interface VAcceptCallbackevent - the drag eventCopyright © 2021 Vaadin Ltd. All rights reserved.