summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJani Laakso <jani.laakso@itmill.com>2007-02-06 16:25:32 +0000
committerJani Laakso <jani.laakso@itmill.com>2007-02-06 16:25:32 +0000
commitb2117f4ed3d18f99b03457d3422260c8d3f4fd7a (patch)
tree74e4e902251b2845cf1eea0b6ca13e2b528e9e19 /src
parent7ed5b34b2e06e668012e1de9d0dac7052416ebe8 (diff)
downloadvaadin-framework-b2117f4ed3d18f99b03457d3422260c8d3f4fd7a.tar.gz
vaadin-framework-b2117f4ed3d18f99b03457d3422260c8d3f4fd7a.zip
Upload loops, it is broken. Matti should have a loot into this.
svn changeset:483/svn branch:toolkit
Diffstat (limited to 'src')
-rw-r--r--src/com/itmill/toolkit/demo/features/FeatureUpload.java22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/com/itmill/toolkit/demo/features/FeatureUpload.java b/src/com/itmill/toolkit/demo/features/FeatureUpload.java
index e27e550737..e720108011 100644
--- a/src/com/itmill/toolkit/demo/features/FeatureUpload.java
+++ b/src/com/itmill/toolkit/demo/features/FeatureUpload.java
@@ -35,6 +35,7 @@ import java.io.OutputStream;
import com.itmill.toolkit.terminal.StreamResource;
import com.itmill.toolkit.ui.Component;
+import com.itmill.toolkit.ui.Form;
import com.itmill.toolkit.ui.Label;
import com.itmill.toolkit.ui.Link;
import com.itmill.toolkit.ui.OrderedLayout;
@@ -43,7 +44,6 @@ import com.itmill.toolkit.ui.Upload;
import com.itmill.toolkit.ui.Upload.FinishedEvent;
public class FeatureUpload extends Feature implements Upload.FinishedListener {
-
Buffer buffer = new Buffer();
Panel status = new Panel("Uploaded file:");
@@ -56,19 +56,17 @@ public class FeatureUpload extends Feature implements Upload.FinishedListener {
OrderedLayout l = new OrderedLayout();
- // Example panel
- Panel show = new Panel("Upload component");
-
- Upload up = new Upload("Upload a file:", buffer);
- up.addListener(this);
-
- show.addComponent(up);
- status.setVisible(false);
- l.addComponent(status);
- l.addComponent(show);
+ Upload up = new Upload("Upload a file:", null);
+ //up.addListener(this);
+
+ //status.setVisible(false);
+
+ l.addComponent(up);
+ //l.addComponent(status);
// Properties
- propertyPanel = new PropertyPanel(up);
+ //propertyPanel = new PropertyPanel(up);
+ propertyPanel = null;
return l;
}