From e63b51a831676bdcc15b889c1636c0dcccbc0bc0 Mon Sep 17 00:00:00 2001 From: Pekka Hyvönen Date: Mon, 12 Dec 2016 16:32:59 +0200 Subject: Change Upload to be in immediate mode by default (#111) Fixes vaadin/framework8-issues#547 --- server/src/main/java/com/vaadin/ui/Upload.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'server/src/main/java') diff --git a/server/src/main/java/com/vaadin/ui/Upload.java b/server/src/main/java/com/vaadin/ui/Upload.java index 866bc96d25..d67fa07641 100644 --- a/server/src/main/java/com/vaadin/ui/Upload.java +++ b/server/src/main/java/com/vaadin/ui/Upload.java @@ -1128,11 +1128,13 @@ public class Upload extends AbstractComponent /** * Sets the immediate mode of the upload. *

- * If the upload is in immediate mode, it displays the browser file choosing - * button immediately, whereas a non-immediate upload only shows a Vaadin - * button. + * If the upload is in immediate mode, the file upload is started + * immediately after the user has selected the file. *

- * The default mode of an Upload component is non-immediate. + * If the upload is not in immediate mode, after selecting the file the user + * must click another button to start the upload. + *

+ * The default mode of an Upload component is immediate. * * @param immediateMode * {@code true} for immediate mode, {@code false} for not @@ -1143,6 +1145,8 @@ public class Upload extends AbstractComponent /** * Returns the immediate mode of the upload. + *

+ * The default mode of an Upload component is immediate. * * @return {@code true} if the upload is in immediate mode, {@code false} if * the upload is not in immediate mode -- cgit v1.2.3