From b79d8a2bf6ed6687ea8761887ff7aa11d375f8fa Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Tue, 27 Jan 2009 15:42:06 +0000 Subject: cleanup svn changeset:6657/svn branch:trunk --- .../demo/sampler/features/layouts/LayoutSpacingExample.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/com/itmill/toolkit/demo') 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); -- cgit v1.2.3