summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/event/dd/acceptCriteria/Not.java
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2010-02-12 11:40:21 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2010-02-12 11:40:21 +0000
commitb361498f510e144419b19bf3865f39895b07f1d2 (patch)
tree8333305362dd2d4658741a44ef129efd299e0a67 /src/com/vaadin/event/dd/acceptCriteria/Not.java
parentac88783e91f6d4a40280d5c345fd4bd83ed4051d (diff)
downloadvaadin-framework-b361498f510e144419b19bf3865f39895b07f1d2.tar.gz
vaadin-framework-b361498f510e144419b19bf3865f39895b07f1d2.zip
n:th proto
svn changeset:11292/svn branch:6.3_dd
Diffstat (limited to 'src/com/vaadin/event/dd/acceptCriteria/Not.java')
-rw-r--r--src/com/vaadin/event/dd/acceptCriteria/Not.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/com/vaadin/event/dd/acceptCriteria/Not.java b/src/com/vaadin/event/dd/acceptCriteria/Not.java
new file mode 100644
index 0000000000..2408d6b6a3
--- /dev/null
+++ b/src/com/vaadin/event/dd/acceptCriteria/Not.java
@@ -0,0 +1,36 @@
+/**
+ *
+ */
+package com.vaadin.event.dd.acceptCriteria;
+
+import com.vaadin.event.dd.DragAndDropEvent;
+import com.vaadin.terminal.PaintException;
+import com.vaadin.terminal.PaintTarget;
+
+public class Not implements AcceptCriterion {
+ private AcceptCriterion acceptCriterion;
+
+ public Not(AcceptCriterion acceptCriterion) {
+ this.acceptCriterion = acceptCriterion;
+ }
+
+ public boolean isClientSideVerifiable() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ public void paint(PaintTarget target) throws PaintException {
+ // TODO Auto-generated method stub
+
+ }
+
+ public boolean accepts(DragAndDropEvent dragEvent) {
+ return !acceptCriterion.accepts(dragEvent);
+ }
+
+ public void paintResponse(PaintTarget target) throws PaintException {
+ // TODO Auto-generated method stub
+
+ }
+
+} \ No newline at end of file