aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/demo/featurebrowser/LayoutExample.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/itmill/toolkit/demo/featurebrowser/LayoutExample.java')
-rw-r--r--src/com/itmill/toolkit/demo/featurebrowser/LayoutExample.java19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/com/itmill/toolkit/demo/featurebrowser/LayoutExample.java b/src/com/itmill/toolkit/demo/featurebrowser/LayoutExample.java
index a48d3f7bac..337a647ca5 100644
--- a/src/com/itmill/toolkit/demo/featurebrowser/LayoutExample.java
+++ b/src/com/itmill/toolkit/demo/featurebrowser/LayoutExample.java
@@ -6,10 +6,11 @@ package com.itmill.toolkit.demo.featurebrowser;
import com.itmill.toolkit.ui.CustomComponent;
import com.itmill.toolkit.ui.GridLayout;
+import com.itmill.toolkit.ui.HorizontalLayout;
import com.itmill.toolkit.ui.Label;
-import com.itmill.toolkit.ui.OrderedLayout;
import com.itmill.toolkit.ui.Panel;
import com.itmill.toolkit.ui.TabSheet;
+import com.itmill.toolkit.ui.VerticalLayout;
/**
* A few examples of layout possibilities.
@@ -20,7 +21,7 @@ public class LayoutExample extends CustomComponent {
public LayoutExample() {
- final OrderedLayout main = new OrderedLayout();
+ final VerticalLayout main = new VerticalLayout();
main.setMargin(true);
setCompositionRoot(main);
@@ -43,19 +44,19 @@ public class LayoutExample extends CustomComponent {
TabSheet ts = new TabSheet();
g.addComponent(ts, 0, 1, 1, 1);
- OrderedLayout ol = new OrderedLayout();
+ VerticalLayout ol = new VerticalLayout();
ol.setMargin(true);
ol.addComponent(new Label("Component 1"));
ol.addComponent(new Label("Component 2"));
ol.addComponent(new Label("Component 3"));
ts.addTab(ol, "Vertical OrderedLayout", null);
- ol = new OrderedLayout(OrderedLayout.ORIENTATION_HORIZONTAL);
- ol.setMargin(true);
- ol.addComponent(new Label("Component 1"));
- ol.addComponent(new Label("Component 2"));
- ol.addComponent(new Label("Component 3"));
- ts.addTab(ol, "Horizontal OrderedLayout", null);
+ HorizontalLayout hl = new HorizontalLayout();
+ hl.setMargin(true);
+ hl.addComponent(new Label("Component 1"));
+ hl.addComponent(new Label("Component 2"));
+ hl.addComponent(new Label("Component 3"));
+ ts.addTab(hl, "Horizontal OrderedLayout", null);
final GridLayout gl = new GridLayout(3, 3);
gl.setMargin(true);