diff options
author | Joonas Lehtinen <joonas.lehtinen@itmill.com> | 2007-02-03 19:51:26 +0000 |
---|---|---|
committer | Joonas Lehtinen <joonas.lehtinen@itmill.com> | 2007-02-03 19:51:26 +0000 |
commit | ebe8c4b6fdfc3ce17f18c1f7abafb5396fce5d39 (patch) | |
tree | 25dc3fc7f6541185abc3abbd14cb04a8e11c991f /src | |
parent | ff2ce94effa7798470344e1d3c21b21fa024ec85 (diff) | |
download | vaadin-framework-ebe8c4b6fdfc3ce17f18c1f7abafb5396fce5d39.tar.gz vaadin-framework-ebe8c4b6fdfc3ce17f18c1f7abafb5396fce5d39.zip |
Some support code to new layout
svn changeset:436/svn branch:toolkit
Diffstat (limited to 'src')
-rw-r--r-- | src/com/itmill/toolkit/demo/features/FeatureBrowser.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/itmill/toolkit/demo/features/FeatureBrowser.java b/src/com/itmill/toolkit/demo/features/FeatureBrowser.java index 3c67b134c4..a14ede780f 100644 --- a/src/com/itmill/toolkit/demo/features/FeatureBrowser.java +++ b/src/com/itmill/toolkit/demo/features/FeatureBrowser.java @@ -55,7 +55,7 @@ public class FeatureBrowser extends CustomComponent implements private boolean initialized = false; - private Select themeSelector = new Select("Theme"); + private Select themeSelector = new Select(); private static final String WELCOME_TEXT = "<h3>Welcome to the IT Mill Toolkit feature tour!</h3>" + "In this application you may view and play with some features of IT Mill Toolkit.<br/>" @@ -82,6 +82,7 @@ public class FeatureBrowser extends CustomComponent implements // Configure component layout layout = new OrderedLayout(OrderedLayout.ORIENTATION_HORIZONTAL); + layout.setStyle("featurebrowser-mainlayout"); setCompositionRoot(layout); OrderedLayout left = new OrderedLayout( OrderedLayout.ORIENTATION_VERTICAL); @@ -104,16 +105,17 @@ public class FeatureBrowser extends CustomComponent implements // Theme selector left.addComponent(themeSelector); + themeSelector.addItem("demo"); themeSelector.addItem("corporate"); themeSelector.addItem("base"); themeSelector.addListener(this); - themeSelector.select("corporate"); + themeSelector.select("demo"); themeSelector.setImmediate(true); // Restart button Button close = new Button("restart", getApplication(), "close"); - left.addComponent(close); close.setStyle("link"); + left.addComponent(close); // Test component registerFeature("/UI Components", new UIComponents()); |