aboutsummaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/dnd/criteria/Payload.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/dnd/criteria/Payload.java b/shared/src/main/java/com/vaadin/shared/ui/dnd/criteria/Payload.java
index 45be1533b9..ecaa045577 100644
--- a/shared/src/main/java/com/vaadin/shared/ui/dnd/criteria/Payload.java
+++ b/shared/src/main/java/com/vaadin/shared/ui/dnd/criteria/Payload.java
@@ -76,6 +76,16 @@ public class Payload implements Serializable {
}
/**
+ * Sets the key of this payload.
+ *
+ * @param key
+ * key that identifies the payload
+ */
+ public void setKey(String key) {
+ this.key = key;
+ }
+
+ /**
* Gets the value of this payload.
*
* @return value of this payload
@@ -85,6 +95,16 @@ public class Payload implements Serializable {
}
/**
+ * Sets the value of this payload.
+ *
+ * @param value
+ * value of the payload
+ */
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ /**
* Gets the value type of this payload.
*
* @return the type of the value of this payload
@@ -94,6 +114,16 @@ public class Payload implements Serializable {
}
/**
+ * Sets the value type of this payload.
+ *
+ * @param valueType
+ * type of the payload value
+ */
+ public void setValueType(ValueType valueType) {
+ this.valueType = valueType;
+ }
+
+ /**
* Returns the string representation of this payload. It is used as the data
* type in the {@code DataTransfer} object.
*