diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2009-01-27 15:42:06 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2009-01-27 15:42:06 +0000 |
commit | b79d8a2bf6ed6687ea8761887ff7aa11d375f8fa (patch) | |
tree | 575f74f36ddad4809966f62b37a5f221e7f663cd /src/com/itmill/toolkit/demo | |
parent | 23121623546028b2909d000cbfa9d2b584e9f4a3 (diff) | |
download | vaadin-framework-b79d8a2bf6ed6687ea8761887ff7aa11d375f8fa.tar.gz vaadin-framework-b79d8a2bf6ed6687ea8761887ff7aa11d375f8fa.zip |
cleanup
svn changeset:6657/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/demo')
-rw-r--r-- | src/com/itmill/toolkit/demo/sampler/features/layouts/LayoutSpacingExample.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/itmill/toolkit/demo/sampler/features/layouts/LayoutSpacingExample.java b/src/com/itmill/toolkit/demo/sampler/features/layouts/LayoutSpacingExample.java index e69b5d39ca..d070029842 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/layouts/LayoutSpacingExample.java +++ b/src/com/itmill/toolkit/demo/sampler/features/layouts/LayoutSpacingExample.java @@ -3,7 +3,6 @@ package com.itmill.toolkit.demo.sampler.features.layouts; import com.itmill.toolkit.ui.Button; import com.itmill.toolkit.ui.CheckBox; import com.itmill.toolkit.ui.HorizontalLayout; -import com.itmill.toolkit.ui.TextField; import com.itmill.toolkit.ui.VerticalLayout; import com.itmill.toolkit.ui.Button.ClickEvent; @@ -12,23 +11,24 @@ public class LayoutSpacingExample extends VerticalLayout { public LayoutSpacingExample() { // Create a horizontal layout. final HorizontalLayout horizontal = new HorizontalLayout(); - + // Add a style to allow customization of the layout. horizontal.addStyleName("spacingexample"); - + // Populate the layout with components. horizontal.addComponent(new Button("Component 1")); horizontal.addComponent(new Button("Component 2")); horizontal.addComponent(new Button("Component 3")); - + // Add the layout to the containing layout. addComponent(horizontal); // CheckBox for toggling spacing on and off - final CheckBox spacing = new CheckBox("Click here to enable/disable spacing"); + final CheckBox spacing = new CheckBox( + "Click here to enable/disable spacing"); spacing.addListener(new Button.ClickListener() { public void buttonClick(ClickEvent event) { - horizontal.setSpacing(((Boolean)spacing.getValue()).booleanValue()); + horizontal.setSpacing(spacing.booleanValue()); } }); spacing.setImmediate(true); |