com.vaadin.client.ui.dd.
Class VAcceptCriterion
- java.lang.Object
-
- com.vaadin.client.ui.dd.VAcceptCriterion
-
Direct Known Subclasses:
VAcceptAll
,VAnd
,VContainsDataFlavor
,VDragSourceIs
,VLazyInitItemIdentifiers
,VNot
,VOr
,VOverTreeNode
,VServerAccept
,VSourceIsTarget
,VTargetDetailIs
@Deprecated public abstract class VAcceptCriterion extends Object
Deprecated.Replaced in 8.1 withDropTargetExtension#setDropCriteria(String)
Author:
Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor Description VAcceptCriterion()
Deprecated.
-
Method Summary
All Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
accept
public void accept(VDragEvent drag, UIDL configuration, VAcceptCallback callback)
Deprecated.Checks if current drag event has valid drop target and target accepts the transferable. If drop target is valid, callback is used.
Parameters:
drag
- the drag eventconfiguration
- accept criterion UIDLcallback
- the callback that handles acceptance if the target is valid
-
accept
protected abstract boolean accept(VDragEvent drag, UIDL configuration)
Deprecated.Returns whether a client-side check accepts the drop attempt.
Parameters:
drag
- the drag eventconfiguration
- accept criterion UIDLReturns:
true
if a drop attempt is accepted,false
otherwise
-
needsServerSideCheck
public boolean needsServerSideCheck(VDragEvent drag, UIDL criterioUIDL)
Deprecated.Returns whether a server side check is needed for determining acceptance.
Parameters:
drag
- the drag eventcriterioUIDL
- accept criterion UIDLReturns:
true
if a server side check is needed,false
otherwise
-
-