From 30bbaef5485a9b6e5afd748dc9714d687c23e2ed Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marko=20Gr=C3=B6nroos?= Date: Thu, 20 Dec 2007 16:40:21 +0000 Subject: [PATCH] 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 --- src/com/itmill/toolkit/ui/Upload.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.39.5