We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.terminal.gwt.client.ui.dd.
Class VAcceptCriterion
java.lang.Object
com.vaadin.terminal.gwt.client.ui.dd.VAcceptCriterion
Direct Known Subclasses:
VAcceptAll, VAnd, VContainsDataFlavor, VDragSourceIs, VIsOverId, VItemIdIs, VLazyInitItemIdentifiers, VNot, VOr, VOverTreeNode, VServerAccept, VSourceIsTarget, VTargetDetailIs, VTargetInSubtree
- extends Object
public abstract class VAcceptCriterion
Constructor Summary | |
---|---|
VAcceptCriterion()
|
Method Summary | |
---|---|
protected abstract boolean |
accept(VDragEvent drag,
UIDL configuration)
|
void |
accept(VDragEvent drag,
UIDL configuration,
VAcceptCallback callback)
Checks if current drag event has valid drop target and target accepts the transferable. |
boolean |
needsServerSideCheck(VDragEvent drag,
UIDL criterioUIDL)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
VAcceptCriterion
public VAcceptCriterion()
Method Detail |
---|
accept
public void accept(VDragEvent drag,
UIDL configuration,
VAcceptCallback callback)
- Parameters:
drag
-configuration
-callback
-
Checks if current drag event has valid drop target and target accepts the transferable. If drop target is valid, callback is used.
accept
protected abstract boolean accept(VDragEvent drag,
UIDL configuration)
needsServerSideCheck
public boolean needsServerSideCheck(VDragEvent drag,
UIDL criterioUIDL)