summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/dd/VMyDropTarget.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-08-30 17:24:36 +0300
committerArtur Signell <artur@vaadin.com>2012-08-30 17:24:36 +0300
commit7b25b3886ea95bc6495506fbe9472e45fcbde684 (patch)
tree0b93cb65dab437feb46720659a63b8f1ef48f7f4 /uitest/src/com/vaadin/tests/dd/VMyDropTarget.java
parent8941056349e302e687e40e94c13709e75f256d73 (diff)
downloadvaadin-framework-7b25b3886ea95bc6495506fbe9472e45fcbde684.tar.gz
vaadin-framework-7b25b3886ea95bc6495506fbe9472e45fcbde684.zip
Renamed tests -> uitest and tests/testbench -> uitest/src (#9299)
Diffstat (limited to 'uitest/src/com/vaadin/tests/dd/VMyDropTarget.java')
-rw-r--r--uitest/src/com/vaadin/tests/dd/VMyDropTarget.java53
1 files changed, 53 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/dd/VMyDropTarget.java b/uitest/src/com/vaadin/tests/dd/VMyDropTarget.java
new file mode 100644
index 0000000000..58bd326524
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/dd/VMyDropTarget.java
@@ -0,0 +1,53 @@
+package com.vaadin.tests.dd;
+
+import com.google.gwt.user.client.ui.Composite;
+import com.vaadin.client.ApplicationConnection;
+import com.vaadin.client.ComponentConnector;
+import com.vaadin.client.ui.dd.VDragEvent;
+import com.vaadin.client.ui.dd.VDropHandler;
+import com.vaadin.client.ui.dd.VHasDropHandler;
+
+public class VMyDropTarget extends Composite implements VHasDropHandler,
+ VDropHandler {
+
+ ApplicationConnection client;
+
+ @Override
+ public void dragEnter(VDragEvent drag) {
+ }
+
+ @Override
+ public void dragLeave(VDragEvent drag) {
+ // TODO Auto-generated method stub
+ }
+
+ @Override
+ public void dragOver(VDragEvent currentDrag) {
+ // TODO Auto-generated method stub
+ }
+
+ @Override
+ public boolean drop(VDragEvent drag) {
+ // TODO Auto-generated method stub
+ // return true to tell DDManager do server visit
+ return false;
+ }
+
+ @Override
+ public VDropHandler getDropHandler() {
+ // Drophandler implemented by widget itself
+ return this;
+ }
+
+ @Override
+ public ComponentConnector getConnector() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ApplicationConnection getApplicationConnection() {
+ return client;
+ }
+
+}