From 494b90a81cdd7dfc2fb337676e51ffa4bdd6ea43 Mon Sep 17 00:00:00 2001 From: Adam Wagner Date: Thu, 11 May 2017 22:49:19 +0300 Subject: Create upload URLs only when stream variable is attached by drop handler (#9301) * Create upload URLs only when stream variable is attached by drop handler * Add file size limit to test ui and remove label drop target --- .../src/main/java/com/vaadin/event/dnd/FileDropEvent.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'server/src/main/java/com/vaadin/event') diff --git a/server/src/main/java/com/vaadin/event/dnd/FileDropEvent.java b/server/src/main/java/com/vaadin/event/dnd/FileDropEvent.java index 42d270ebe4..7ad5f410bf 100644 --- a/server/src/main/java/com/vaadin/event/dnd/FileDropEvent.java +++ b/server/src/main/java/com/vaadin/event/dnd/FileDropEvent.java @@ -15,6 +15,7 @@ */ package com.vaadin.event.dnd; +import java.util.Collection; import java.util.List; import com.vaadin.ui.AbstractComponent; @@ -22,7 +23,7 @@ import com.vaadin.ui.Component; import com.vaadin.ui.Html5File; /** - * File drop event that contains the list of files dropped on a file drop + * File drop event that contains the collection of files dropped on a file drop * target. * * @param @@ -34,7 +35,7 @@ import com.vaadin.ui.Html5File; public class FileDropEvent extends Component.Event { - private final List files; + private final Collection files; /** * Creates a file drop event. @@ -42,21 +43,21 @@ public class FileDropEvent extends * @param target * The file drop target component. * @param files - * List of files. + * Collection of files. */ - public FileDropEvent(T target, List files) { + public FileDropEvent(T target, Collection files) { super(target); this.files = files; } /** - * Gets the list of files dropped onto the file drop target component. + * Gets the collection of files dropped onto the file drop target component. * - * @return List of files that were dropped onto the file drop target + * @return Collection of files that were dropped onto the file drop target * component. */ - public List getFiles() { + public Collection getFiles() { return files; } } -- cgit v1.2.3