aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/automatedtests/featurebrowser/ClientCachingExample.java
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2008-12-23 08:47:44 +0000
committerArtur Signell <artur.signell@itmill.com>2008-12-23 08:47:44 +0000
commit76aedb1690ac753c2efd0a0682de35e892b2e218 (patch)
tree55986e54109cebec41250bac1046866dc4826b3c /src/com/itmill/toolkit/automatedtests/featurebrowser/ClientCachingExample.java
parent3026e47f8e553dd8a122548b36a5c3942786fb77 (diff)
downloadvaadin-framework-76aedb1690ac753c2efd0a0682de35e892b2e218.tar.gz
vaadin-framework-76aedb1690ac753c2efd0a0682de35e892b2e218.zip
Updated feature browser in automatedtests package to current feature browser.
svn changeset:6342/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/automatedtests/featurebrowser/ClientCachingExample.java')
-rw-r--r--src/com/itmill/toolkit/automatedtests/featurebrowser/ClientCachingExample.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/itmill/toolkit/automatedtests/featurebrowser/ClientCachingExample.java b/src/com/itmill/toolkit/automatedtests/featurebrowser/ClientCachingExample.java
index 42199b1cd1..6cddcd29dc 100644
--- a/src/com/itmill/toolkit/automatedtests/featurebrowser/ClientCachingExample.java
+++ b/src/com/itmill/toolkit/automatedtests/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);