From 5f5a6ebfd7db9f1fc6de4a515423837280310e86 Mon Sep 17 00:00:00 2001 From: Adam Wagner Date: Thu, 1 Feb 2018 15:04:33 +0200 Subject: Add setters to Payload for JsonCodec to be able to encode Fixes #10428 --- .../com/vaadin/shared/ui/dnd/criteria/Payload.java | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'shared/src/main') 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 @@ -75,6 +75,16 @@ public class Payload implements Serializable { return key; } + /** + * 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. * @@ -84,6 +94,16 @@ public class Payload implements Serializable { return value; } + /** + * 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. * @@ -93,6 +113,16 @@ public class Payload implements Serializable { return valueType; } + /** + * 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. -- cgit v1.2.3