diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-12-21 18:06:03 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-12-21 18:06:03 +0000 |
commit | 663248051a0628707342b8415c8d4f5f6d1ca8c3 (patch) | |
tree | 7eff33ef121deb27ac536e5c07ac3769325e8d8f /src/com/itmill/toolkit/demo/featurebrowser/ClientCachingExample.java | |
parent | acbd3873b5a649aab5b5d934625860ab3e35bcc4 (diff) | |
download | vaadin-framework-663248051a0628707342b8415c8d4f5f6d1ca8c3.tar.gz vaadin-framework-663248051a0628707342b8415c8d4f5f6d1ca8c3.zip |
Removed usage of OL in FB
svn changeset:6314/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/demo/featurebrowser/ClientCachingExample.java')
-rw-r--r-- | src/com/itmill/toolkit/demo/featurebrowser/ClientCachingExample.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/itmill/toolkit/demo/featurebrowser/ClientCachingExample.java b/src/com/itmill/toolkit/demo/featurebrowser/ClientCachingExample.java index 7f6e6d38f5..38a759eb55 100644 --- a/src/com/itmill/toolkit/demo/featurebrowser/ClientCachingExample.java +++ b/src/com/itmill/toolkit/demo/featurebrowser/ClientCachingExample.java @@ -9,8 +9,8 @@ import com.itmill.toolkit.terminal.PaintTarget; import com.itmill.toolkit.ui.CustomComponent;
import com.itmill.toolkit.ui.Label;
import com.itmill.toolkit.ui.Layout;
-import com.itmill.toolkit.ui.OrderedLayout;
import com.itmill.toolkit.ui.TabSheet;
+import com.itmill.toolkit.ui.VerticalLayout;
/**
* This example is a (simple) demonstration of client-side caching. The content
@@ -32,7 +32,7 @@ public class ClientCachingExample extends CustomComponent { public ClientCachingExample() {
- final OrderedLayout main = new OrderedLayout();
+ final VerticalLayout main = new VerticalLayout();
main.setMargin(true);
setCompositionRoot(main);
@@ -41,7 +41,7 @@ public class ClientCachingExample extends CustomComponent { final TabSheet ts = new TabSheet();
main.addComponent(ts);
- Layout layout = new OrderedLayout();
+ Layout layout = new VerticalLayout();
layout.setMargin(true);
Label l = new Label("This is a normal label, quick to render.");
l.setCaption("A normal label");
@@ -49,9 +49,10 @@ public class ClientCachingExample extends CustomComponent { ts.addTab(layout, "Normal", null);
- layout = new OrderedLayout();
+ layout = new VerticalLayout();
layout.setMargin(true);
l = new Label("Slow label - until cached client side.") {
+ @Override
public void paintContent(PaintTarget target) throws PaintException {
try {
Thread.sleep(3000);
|