summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/event
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2010-03-10 16:41:11 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2010-03-10 16:41:11 +0000
commit360c553e7794119aa4514626325e47c539b6b8e9 (patch)
tree4088a5f777289f4be3adf92e919f6d75e374181f /src/com/vaadin/event
parentb7a6f34b19da0b85ed7c9208249f51c706eb63d1 (diff)
downloadvaadin-framework-360c553e7794119aa4514626325e47c539b6b8e9.tar.gz
vaadin-framework-360c553e7794119aa4514626325e47c539b6b8e9.zip
small enhancements + developing web desktop test
svn changeset:11757/svn branch:6.3
Diffstat (limited to 'src/com/vaadin/event')
-rw-r--r--src/com/vaadin/event/dd/acceptCriteria/IsSameSourceAndTarget.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com/vaadin/event/dd/acceptCriteria/IsSameSourceAndTarget.java b/src/com/vaadin/event/dd/acceptCriteria/IsSameSourceAndTarget.java
index 73609e592b..5f4d3db116 100644
--- a/src/com/vaadin/event/dd/acceptCriteria/IsSameSourceAndTarget.java
+++ b/src/com/vaadin/event/dd/acceptCriteria/IsSameSourceAndTarget.java
@@ -21,6 +21,11 @@ import com.vaadin.ui.Component;
@ClientCriterion(VSourceIsSameAsTarget.class)
public class IsSameSourceAndTarget extends ClientSideCriterion {
+ private static IsSameSourceAndTarget instance;
+
+ private IsSameSourceAndTarget() {
+ }
+
public boolean accepts(DragAndDropEvent dragEvent) {
if (dragEvent.getTransferable() instanceof TransferableImpl) {
Component sourceComponent = ((TransferableImpl) dragEvent
@@ -32,4 +37,11 @@ public class IsSameSourceAndTarget extends ClientSideCriterion {
return false;
}
+ public static IsSameSourceAndTarget get() {
+ if (instance == null) {
+ instance = new IsSameSourceAndTarget();
+ }
+ return instance;
+ }
+
} \ No newline at end of file