From: Marko Grönroos Date: Thu, 20 Dec 2007 16:40:21 +0000 (+0000) Subject: Added warnings about not using startUpload() and endUpload(). Maybe they should be... X-Git-Tag: 6.7.0.beta1~5203 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=30bbaef5485a9b6e5afd748dc9714d687c23e2ed;p=vaadin-framework.git Added warnings about not using startUpload() and endUpload(). Maybe they should be made more private, though they are required elsewhere. svn changeset:3288/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/ui/Upload.java b/src/com/itmill/toolkit/ui/Upload.java index 7afa9ab39e..d15bf44c0e 100644 --- a/src/com/itmill/toolkit/ui/Upload.java +++ b/src/com/itmill/toolkit/ui/Upload.java @@ -737,6 +737,11 @@ public class Upload extends AbstractComponent implements Component.Focusable { /** * Go into upload state. This is to prevent double uploading on same * component. + * + * Warning: this is an internal method used by the framework and should + * not be used by user of the Upload component. Using it results + * in the Upload component going in wrong state and not working. + * It is currently public because it is used by another class. */ public void startUpload() { if (isUploading) { @@ -747,6 +752,9 @@ public class Upload extends AbstractComponent implements Component.Focusable { /** * Go into state where new uploading can begin. + * + * Warning: this is an internal method used by the framework and should + * not be used by user of the Upload component. */ public void endUpload() { isUploading = false;