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/ui/GridLayout.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/ui/GridLayout.java')
-rw-r--r-- | src/com/itmill/toolkit/ui/GridLayout.java | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/com/itmill/toolkit/ui/GridLayout.java b/src/com/itmill/toolkit/ui/GridLayout.java index 990ba634e2..532560fdfa 100644 --- a/src/com/itmill/toolkit/ui/GridLayout.java +++ b/src/com/itmill/toolkit/ui/GridLayout.java @@ -10,10 +10,8 @@ import java.util.Iterator; import java.util.LinkedList; import java.util.Map; -import com.itmill.toolkit.terminal.HasSize; import com.itmill.toolkit.terminal.PaintException; import com.itmill.toolkit.terminal.PaintTarget; -import com.itmill.toolkit.terminal.Size; import com.itmill.toolkit.terminal.gwt.client.ui.AlignmentInfo; /** @@ -36,7 +34,7 @@ import com.itmill.toolkit.terminal.gwt.client.ui.AlignmentInfo; * @VERSION@ * @since 3.0 */ -public class GridLayout extends AbstractLayout implements HasSize { +public class GridLayout extends AbstractLayout { /** * Initial grid columns. @@ -112,11 +110,6 @@ public class GridLayout extends AbstractLayout implements HasSize { private boolean spacing = false; /** - * Sizing object. - */ - private Size size; - - /** * Constructor for grid of given size (number of cells). Note that grid's * final size depends on the items that are added into the grid. Grid grows * if you add components outside the grid's area. @@ -129,7 +122,6 @@ public class GridLayout extends AbstractLayout implements HasSize { public GridLayout(int columns, int rows) { setColumns(columns); setRows(rows); - size = new Size(this); } /** @@ -393,9 +385,6 @@ public class GridLayout extends AbstractLayout implements HasSize { super.paintContent(target); - // Size - size.paint(target); - // TODO refactor attribute names in future release. target.addAttribute("h", rows); target.addAttribute("w", cols); @@ -1026,8 +1015,4 @@ public class GridLayout extends AbstractLayout implements HasSize { spacing = enabled; } - public Size getSize() { - return size; - } - } |