diff options
author | Adam Wagner <wbadam@users.noreply.github.com> | 2018-02-01 15:04:33 +0200 |
---|---|---|
committer | Ilia Motornyi <elmot@vaadin.com> | 2018-02-01 15:04:33 +0200 |
commit | 5f5a6ebfd7db9f1fc6de4a515423837280310e86 (patch) | |
tree | a49d916a29a5c631e1fd25f5e637fe22a975541a /shared/src/main | |
parent | e11b8cc59c68fca6f35e1733a38d566a273028c4 (diff) | |
download | vaadin-framework-5f5a6ebfd7db9f1fc6de4a515423837280310e86.tar.gz vaadin-framework-5f5a6ebfd7db9f1fc6de4a515423837280310e86.zip |
Add setters to Payload for JsonCodec to be able to encode
Fixes #10428
Diffstat (limited to 'shared/src/main')
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/ui/dnd/criteria/Payload.java | 30 |
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. * |