From 1b47df6bfaa584bc0a2cb3e7851975fe75e535e7 Mon Sep 17 00:00:00 2001 From: Jani Laakso Date: Thu, 8 Nov 2007 09:57:41 +0000 Subject: [PATCH] svn changeset:2755/svn branch:trunk --- .../tests/TestComponentsAndLayouts.java | 32 +++++++++++-------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/src/com/itmill/toolkit/tests/TestComponentsAndLayouts.java b/src/com/itmill/toolkit/tests/TestComponentsAndLayouts.java index 841fbee521..21321b68c1 100644 --- a/src/com/itmill/toolkit/tests/TestComponentsAndLayouts.java +++ b/src/com/itmill/toolkit/tests/TestComponentsAndLayouts.java @@ -85,27 +85,29 @@ public class TestComponentsAndLayouts extends Application implements Listener, "Each Layout and their contained components should " + "have icon, caption, description, user error defined. " + "Eeach layout should contain similar components. " - + "All components are in immmediate mode.")); + + "All components are in immmediate mode. See source how to tweak this test.")); main.addComponent(eventListenerFeedback); - // test layouts + // ////////////////////////////////////////////////////////////////////////// main.addComponent(new Label( "

Components inside horizontal OrderedLayout

", Label.CONTENT_XHTML)); - OrderedLayout ol = new OrderedLayout(OrderedLayout.ORIENTATION_HORIZONTAL); + OrderedLayout ol = new OrderedLayout( + OrderedLayout.ORIENTATION_HORIZONTAL); populateLayout(ol); main.addComponent(ol); - // test(ol); - - main.addComponent(new Label( - "



Components inside vertical OrderedLayout

", - Label.CONTENT_XHTML)); - OrderedLayout ol2 = new OrderedLayout(OrderedLayout.ORIENTATION_VERTICAL); + + // ////////////////////////////////////////////////////////////////////////// + main + .addComponent(new Label( + "



Components inside vertical OrderedLayout

", + Label.CONTENT_XHTML)); + OrderedLayout ol2 = new OrderedLayout( + OrderedLayout.ORIENTATION_VERTICAL); populateLayout(ol2); main.addComponent(ol2); - // test(ol); - // test layouts + // ////////////////////////////////////////////////////////////////////////// main.addComponent(new Label( "

Components inside ExpandLayout (height 250px)

", Label.CONTENT_XHTML)); @@ -114,15 +116,15 @@ public class TestComponentsAndLayouts extends Application implements Listener, el.setHeightUnits(ExpandLayout.UNITS_PIXELS); populateLayout(el); main.addComponent(el); - // test(el); + // ////////////////////////////////////////////////////////////////////////// main.addComponent(new Label("

Components inside Panel

", Label.CONTENT_XHTML)); Panel panel = new Panel("Panel"); populateLayout(panel); main.addComponent(panel); - // test(panel); + // ////////////////////////////////////////////////////////////////////////// main .addComponent(new Label( "

Components inside vertical SplitPanel (splitpanel is under 250height ExpandLayout)

", @@ -140,6 +142,7 @@ public class TestComponentsAndLayouts extends Application implements Listener, sp1.setSecondComponent(sp1second); main.addComponent(sp1l); + // ////////////////////////////////////////////////////////////////////////// main .addComponent(new Label( "

Components inside horizontal SplitPanel (splitpanel is under 250px height ExpandLayout)

", @@ -157,6 +160,7 @@ public class TestComponentsAndLayouts extends Application implements Listener, sp2.setSecondComponent(sp2second); main.addComponent(sp2l); + // ////////////////////////////////////////////////////////////////////////// main.addComponent(new Label( "

Components inside TabSheet

", Label.CONTENT_XHTML)); @@ -175,6 +179,7 @@ public class TestComponentsAndLayouts extends Application implements Listener, // test(tab2); // test(expandLayout); + // ////////////////////////////////////////////////////////////////////////// main.addComponent(new Label( "

Components inside GridLayout

", Label.CONTENT_XHTML)); @@ -183,6 +188,7 @@ public class TestComponentsAndLayouts extends Application implements Listener, main.addComponent(gridLayout); // test(gridLayout); + // ////////////////////////////////////////////////////////////////////////// Window window = new Window("Components inside Window (TEST: Window)"); populateLayout(window); getMainWindow().addWindow(window); -- 2.39.5