aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/tests/TestForExpandLayout.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/itmill/toolkit/tests/TestForExpandLayout.java')
-rw-r--r--src/com/itmill/toolkit/tests/TestForExpandLayout.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/com/itmill/toolkit/tests/TestForExpandLayout.java b/src/com/itmill/toolkit/tests/TestForExpandLayout.java
index 38f2445581..7ce61ed535 100644
--- a/src/com/itmill/toolkit/tests/TestForExpandLayout.java
+++ b/src/com/itmill/toolkit/tests/TestForExpandLayout.java
@@ -1,9 +1,15 @@
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
+
package com.itmill.toolkit.tests;
+import com.itmill.toolkit.terminal.Sizeable;
import com.itmill.toolkit.ui.CustomComponent;
import com.itmill.toolkit.ui.DateField;
import com.itmill.toolkit.ui.ExpandLayout;
import com.itmill.toolkit.ui.Label;
+import com.itmill.toolkit.ui.OrderedLayout;
/**
*
@@ -23,15 +29,15 @@ public class TestForExpandLayout extends CustomComponent {
public void createNewView() {
main.removeAllComponents();
for (int i = 0; i < 10; i++) {
- ExpandLayout el = new ExpandLayout(
- ExpandLayout.ORIENTATION_HORIZONTAL);
+ final ExpandLayout el = new ExpandLayout(
+ OrderedLayout.ORIENTATION_HORIZONTAL);
for (int j = 0; j < 10; j++) {
- Label l = new Label("label" + i + ":" + j);
+ final Label l = new Label("label" + i + ":" + j);
el.addComponent(l);
}
if (i > 0) {
el.setHeight(1);
- el.setHeightUnits(ExpandLayout.UNITS_EM);
+ el.setHeightUnits(Sizeable.UNITS_EM);
}
main.addComponent(el);
}