From b361498f510e144419b19bf3865f39895b07f1d2 Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Fri, 12 Feb 2010 11:40:21 +0000 Subject: n:th proto svn changeset:11292/svn branch:6.3_dd --- src/com/vaadin/event/dd/DragSource.java | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/com/vaadin/event/dd/DragSource.java (limited to 'src/com/vaadin/event/dd/DragSource.java') diff --git a/src/com/vaadin/event/dd/DragSource.java b/src/com/vaadin/event/dd/DragSource.java new file mode 100644 index 0000000000..9d901f0d41 --- /dev/null +++ b/src/com/vaadin/event/dd/DragSource.java @@ -0,0 +1,30 @@ +package com.vaadin.event.dd; + +import java.util.Map; + +import com.vaadin.event.Transferable; + +public interface DragSource { + + /** + * DragSource may convert client side variables to meaningful values on + * server side. For example in Selects we convert item identifiers to + * generated string keys for the client side. Translators in Selects should + * convert them back to item identifiers. + *

+ * Translator should remove variables it handled from rawVariables. All non + * handled variables are added to Transferable automatically by terminal. + * + *

+ * + * @param transferable + * the Transferable object if one has been created for this drag + * and drop operation, null if Transferable is not yet + * instantiated + * @param rawVariables + * @return + */ + public Transferable getTransferable(Transferable transferable, + Map rawVariables); + +} \ No newline at end of file -- cgit v1.2.3