]> source.dussan.org Git - vaadin-framework.git/commitdiff
Added warnings about not using startUpload() and endUpload(). Maybe they should be...
authorMarko Grönroos <magi@iki.fi>
Thu, 20 Dec 2007 16:40:21 +0000 (16:40 +0000)
committerMarko Grönroos <magi@iki.fi>
Thu, 20 Dec 2007 16:40:21 +0000 (16:40 +0000)
svn changeset:3288/svn branch:trunk

src/com/itmill/toolkit/ui/Upload.java

index 7afa9ab39ec1c4c09c6996467b7735fef95b6fc4..d15bf44c0e2d51ee0ffc2c87adbc98fae1eafcd8 100644 (file)
@@ -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;