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/CustomLayout.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/CustomLayout.java')
-rw-r--r-- | src/com/itmill/toolkit/ui/CustomLayout.java | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/src/com/itmill/toolkit/ui/CustomLayout.java b/src/com/itmill/toolkit/ui/CustomLayout.java index 55930cce7e..6eb165cb4c 100644 --- a/src/com/itmill/toolkit/ui/CustomLayout.java +++ b/src/com/itmill/toolkit/ui/CustomLayout.java @@ -28,12 +28,12 @@ package com.itmill.toolkit.ui; +import java.util.HashMap; +import java.util.Iterator; + import com.itmill.toolkit.terminal.PaintException; import com.itmill.toolkit.terminal.PaintTarget; -import java.util.Iterator; -import java.util.HashMap; - /** * <p> * A container component with freely designed layout and style. The container @@ -248,4 +248,29 @@ public class CustomLayout extends AbstractLayout { requestRepaint(); } + /** + * Although most layouts support margins, CustomLayout does not. The + * behaviour of this layout is determined almost completely by the actual + * template. + * + * @throws UnsupportedOperationException + */ + public void setMargin(boolean enabled) { + throw new UnsupportedOperationException( + "CustomLayout does not support margins."); + } + + /** + * Although most layouts support margins, CustomLayout does not. The + * behaviour of this layout is determined almost completely by the actual + * template. + * + * @throws UnsupportedOperationException + */ + public void setMargin(boolean topEnabled, boolean rightEnabled, + boolean bottomEnabled, boolean leftEnabled) { + throw new UnsupportedOperationException( + "CustomLayout does not support margins."); + } + } |