summaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/demo/features/FeatureBrowser.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/itmill/toolkit/demo/features/FeatureBrowser.java')
-rw-r--r--src/com/itmill/toolkit/demo/features/FeatureBrowser.java8
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());