diff options
Diffstat (limited to 'src/com/vaadin/terminal/gwt/client/ui/dd/VDataBound.java')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/dd/VDataBound.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VDataBound.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VDataBound.java new file mode 100644 index 0000000000..a5cfda3815 --- /dev/null +++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VDataBound.java @@ -0,0 +1,19 @@ +/** + * + */ +package com.vaadin.terminal.gwt.client.ui.dd; + +import com.vaadin.terminal.gwt.client.UIDL; + +final public class VDataBound implements VAcceptCriteria { + public void accept(VDragEvent drag, UIDL configuration, + VAcceptCallback callback) { + if (drag.getTransferable().getData("itemId") != null) { + callback.accepted(drag); + } + } + + public boolean needsServerSideCheck(VDragEvent drag, UIDL criterioUIDL) { + return false; + } +}
\ No newline at end of file |