]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed ticket #2562. Added margins to layout examples.
authorTeppo Kurki <teppo.kurki@itmill.com>
Tue, 10 Feb 2009 10:11:50 +0000 (10:11 +0000)
committerTeppo Kurki <teppo.kurki@itmill.com>
Tue, 10 Feb 2009 10:11:50 +0000 (10:11 +0000)
svn changeset:6776/svn branch:trunk

src/com/itmill/toolkit/demo/sampler/features/layouts/ApplicationLayoutExample.java
src/com/itmill/toolkit/demo/sampler/features/layouts/ExpandingComponentExample.java
src/com/itmill/toolkit/demo/sampler/features/layouts/SplitPanelBasicExample.java
src/com/itmill/toolkit/demo/sampler/features/layouts/WebLayoutExample.java

index af3a17966f9b5d322179c4005b0f7cf830e750e4..773437b9f3c8356f63765593f2ab1ecb494810f2 100644 (file)
@@ -61,6 +61,8 @@ public class ApplicationLayoutExample extends VerticalLayout {
         HorizontalLayout demoLayout = new HorizontalLayout();\r
         // Enable spacing in the layout\r
         demoLayout.setSpacing(true);\r
+        // Enable margins in the layout\r
+        demoLayout.setMargin(true);\r
 \r
         // Create an example tree component, set to full size\r
         Tree t = new Tree("Hardware Inventory", ExampleUtil\r
index f4e5922e0021dd02a07bf69249dc39c9cd133606..b8858dea9df5f450bb2fba2a19a2f0fbfa705e8f 100644 (file)
@@ -56,8 +56,9 @@ public class ExpandingComponentExample extends VerticalLayout {
     private HorizontalLayout createDemoLayout() {\r
         // Create a new layout\r
         HorizontalLayout expandDemoLayout = new HorizontalLayout();\r
-        // Enable spacing in the layout\r
+        // Enable spacing and margins in the layout\r
         expandDemoLayout.setSpacing(true);\r
+        expandDemoLayout.setMargin(true);\r
         expandDemoLayout.setSizeFull();\r
 \r
         // Create an example tree component, set to full size\r
index 4712fda82a064a8c0f235952bede674c762e70fa..0fe365b84f7bfbfa3d7cd860d26eda8beae94bbc 100644 (file)
@@ -110,6 +110,10 @@ public class SplitPanelBasicExample extends VerticalLayout {
         // Add sub-SplitPanel to main SplitPanel\r
         demoSP.addComponent(subSP);\r
 \r
+        // Enable margins in both SplitPanels\r
+        demoSP.setMargin(true);\r
+        subSP.setMargin(true);\r
+\r
         return demoSP;\r
     }\r
 }
\ No newline at end of file
index c1da5ed530e210e0154d6c78938152c029a1b55b..47238d6f2ff8d77f058f1326b32a66b043ed4234 100644 (file)
@@ -59,8 +59,9 @@ public class WebLayoutExample extends VerticalLayout {
     private HorizontalLayout createDemoLayout() {\r
         // Create a new layout\r
         HorizontalLayout demoLayout = new HorizontalLayout();\r
-        // Enable spacing in the layout\r
+        // Enable spacing and margins in the layout\r
         demoLayout.setSpacing(true);\r
+        demoLayout.setMargin(true);\r
 \r
         // Create an example tree component, set to undefined size\r
         Tree t = new Tree("Hardware Inventory", ExampleUtil\r