diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-01-28 10:22:16 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-01-28 10:22:16 +0000 |
commit | d48f8a80f403e0ebb21cf6fa7aafde091e43d35b (patch) | |
tree | 67646c1518ea2a92a3e5df50c4d9ba07e9c39d8c /src/com/itmill/toolkit/tests/TestForExpandLayout3.java | |
parent | afc95e6c9482fc0611449d3d0be7c33ac7daa82b (diff) | |
download | vaadin-framework-d48f8a80f403e0ebb21cf6fa7aafde091e43d35b.tar.gz vaadin-framework-d48f8a80f403e0ebb21cf6fa7aafde091e43d35b.zip |
component implements sizeable and simple general terminal implementation
svn changeset:3662/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/tests/TestForExpandLayout3.java')
-rw-r--r-- | src/com/itmill/toolkit/tests/TestForExpandLayout3.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/itmill/toolkit/tests/TestForExpandLayout3.java b/src/com/itmill/toolkit/tests/TestForExpandLayout3.java index 08c4bb0c98..c23ca34373 100644 --- a/src/com/itmill/toolkit/tests/TestForExpandLayout3.java +++ b/src/com/itmill/toolkit/tests/TestForExpandLayout3.java @@ -4,7 +4,6 @@ package com.itmill.toolkit.tests;
-import com.itmill.toolkit.terminal.Size;
import com.itmill.toolkit.ui.Button;
import com.itmill.toolkit.ui.CustomComponent;
import com.itmill.toolkit.ui.DateField;
@@ -56,7 +55,7 @@ public class TestForExpandLayout3 extends CustomComponent { el.expand(b);
el.setComponentAlignment(b, ExpandLayout.ALIGNMENT_HORIZONTAL_CENTER,
ExpandLayout.ALIGNMENT_VERTICAL_CENTER);
- el.getSize().setHeight(60, Size.UNITS_PIXELS);
+ el.setHeight(60, ExpandLayout.UNITS_PIXELS);
el.setMargin(true);
main.addComponent(el);
@@ -71,7 +70,7 @@ public class TestForExpandLayout3 extends CustomComponent { el.expand(b);
el.setComponentAlignment(b, ExpandLayout.ALIGNMENT_RIGHT,
ExpandLayout.ALIGNMENT_BOTTOM);
- el.getSize().setHeight(100, Size.UNITS_PIXELS);
+ el.setHeight(100, ExpandLayout.UNITS_PIXELS);
el.setSpacing(true);
main.addComponent(el);
|