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
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
// 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
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