diff options
author | Artur Signell <artur@vaadin.com> | 2012-08-30 17:24:36 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-08-30 17:24:36 +0300 |
commit | 7b25b3886ea95bc6495506fbe9472e45fcbde684 (patch) | |
tree | 0b93cb65dab437feb46720659a63b8f1ef48f7f4 /uitest/src/com/vaadin/tests/dd/VMyDropTarget.java | |
parent | 8941056349e302e687e40e94c13709e75f256d73 (diff) | |
download | vaadin-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.java | 53 |
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; + } + +} |