aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/ui/Html5File.java
diff options
context:
space:
mode:
authorPekka Hyvönen <pekka@vaadin.com>2017-05-12 11:33:55 +0300
committerGitHub <noreply@github.com>2017-05-12 11:33:55 +0300
commit76892855a7c3f37a1fef5caee3c0debf6aa712e2 (patch)
tree5f990c860d922439528b548c22d3df8bc45c03d4 /server/src/main/java/com/vaadin/ui/Html5File.java
parent22848f3420b5aded4d35c84f368dd9c44041200f (diff)
downloadvaadin-framework-76892855a7c3f37a1fef5caee3c0debf6aa712e2.tar.gz
vaadin-framework-76892855a7c3f37a1fef5caee3c0debf6aa712e2.zip
Refactor Html5 DnD feature based on API review (#9306)
* Refactor Html5 DnD client side based on API review - Moved classes to "correct" packages. - Removed method DragSourceExtension.clearDataTransferText() - Remove ButtonDragSource in favor of more generic API
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/Html5File.java')
-rw-r--r--server/src/main/java/com/vaadin/ui/Html5File.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/server/src/main/java/com/vaadin/ui/Html5File.java b/server/src/main/java/com/vaadin/ui/Html5File.java
index b4434e75c9..4480e3d59b 100644
--- a/server/src/main/java/com/vaadin/ui/Html5File.java
+++ b/server/src/main/java/com/vaadin/ui/Html5File.java
@@ -32,7 +32,17 @@ public class Html5File implements Serializable {
private StreamVariable streamVariable;
private final String type;
- Html5File(String name, long size, String mimeType) {
+ /**
+ * Constructs a new Html5 file wrapper.
+ *
+ * @param name
+ * the file name
+ * @param size
+ * the size of the file
+ * @param mimeType
+ * the type of the file
+ */
+ public Html5File(String name, long size, String mimeType) {
this.name = name;
this.size = size;
type = mimeType;