diff options
author | Jouni Koivuviita <jouni.koivuviita@itmill.com> | 2007-11-16 14:39:30 +0000 |
---|---|---|
committer | Jouni Koivuviita <jouni.koivuviita@itmill.com> | 2007-11-16 14:39:30 +0000 |
commit | f3da2d615f238304a626d1a6946f26465f9f4988 (patch) | |
tree | bc5f1ea69ffaa5477f54276375b483b0b00b96a3 /src/com/itmill/toolkit/ui/GridLayout.java | |
parent | a10b010fb124e85e383175e082b6341d8f54cbd6 (diff) | |
download | vaadin-framework-f3da2d615f238304a626d1a6946f26465f9f4988.tar.gz vaadin-framework-f3da2d615f238304a626d1a6946f26465f9f4988.zip |
-CustomLayout now supports sizeable.
-Small fixes to IPanel.
-GridLayout and OrderedLayout now fetch alignment constants from client side package.
svn changeset:2858/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/ui/GridLayout.java')
-rw-r--r-- | src/com/itmill/toolkit/ui/GridLayout.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/com/itmill/toolkit/ui/GridLayout.java b/src/com/itmill/toolkit/ui/GridLayout.java index e5a38efbef..901842bed7 100644 --- a/src/com/itmill/toolkit/ui/GridLayout.java +++ b/src/com/itmill/toolkit/ui/GridLayout.java @@ -37,6 +37,7 @@ import java.util.Map; import com.itmill.toolkit.terminal.PaintException; import com.itmill.toolkit.terminal.PaintTarget; import com.itmill.toolkit.terminal.Sizeable; +import com.itmill.toolkit.terminal.gwt.client.ui.AlignmentInfo; /** * <p> @@ -101,32 +102,32 @@ public class GridLayout extends AbstractLayout { /** * Contained component should be aligned horizontally to the left. */ - public static final int ALIGNMENT_LEFT = 1; + public static final int ALIGNMENT_LEFT = AlignmentInfo.ALIGNMENT_LEFT; /** * Contained component should be aligned horizontally to the right. */ - public static final int ALIGNMENT_RIGHT = 2; + public static final int ALIGNMENT_RIGHT = AlignmentInfo.ALIGNMENT_RIGHT; /** * Contained component should be aligned vertically to the top. */ - public static final int ALIGNMENT_TOP = 4; + public static final int ALIGNMENT_TOP = AlignmentInfo.ALIGNMENT_TOP; /** * Contained component should be aligned vertically to the bottom. */ - public static final int ALIGNMENT_BOTTOM = 8; + public static final int ALIGNMENT_BOTTOM = AlignmentInfo.ALIGNMENT_BOTTOM; /** * Contained component should be horizontally aligned to center. */ - public static final int HORIZONTAL_ALIGNMENT_CENTER = 16; + public static final int ALIGNMENT_HORIZONTAL_CENTER = AlignmentInfo.ALIGNMENT_HORIZONTAL_CENTER; /** * Contained component should be vertically aligned to center. */ - public static final int VERTICAL_ALIGNMENT_CENTER = 32; + public static final int ALIGNMENT_VERTICAL_CENTER = AlignmentInfo.ALIGNMENT_VERTICAL_CENTER; /** * Is spacing between contained components enabled. Defaults to false. |