DropTargetExtension#setDropCriteria(String)@Deprecated public abstract class VAcceptCriterion extends Object
| Constructor and Description |
|---|
VAcceptCriterion()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract 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.
|
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)
drag - the drag eventconfiguration - accept criterion UIDLcallback - the callback that handles acceptance if the target is validprotected abstract boolean accept(VDragEvent drag, UIDL configuration)
drag - the drag eventconfiguration - accept criterion UIDLtrue if a drop attempt is accepted, false
otherwisepublic boolean needsServerSideCheck(VDragEvent drag, UIDL criterioUIDL)
drag - the drag eventcriterioUIDL - accept criterion UIDLtrue if a server side check is needed, false
otherwiseCopyright © 2023 Vaadin Ltd. All rights reserved.