aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/ui/GridLayout.java
diff options
context:
space:
mode:
authorJouni Koivuviita <jouni.koivuviita@itmill.com>2007-11-06 07:14:26 +0000
committerJouni Koivuviita <jouni.koivuviita@itmill.com>2007-11-06 07:14:26 +0000
commitf138893b54f154a49d23af9556c874f7eba16013 (patch)
tree2174dd23b89511e97663498856da4a2bc90b5e3e /src/com/itmill/toolkit/ui/GridLayout.java
parentbf4817c10409082c01bf59f20568d9e628c9d5ba (diff)
downloadvaadin-framework-f138893b54f154a49d23af9556c874f7eba16013.tar.gz
vaadin-framework-f138893b54f154a49d23af9556c874f7eba16013.zip
-Layouts no longer implement Sizeable (except SplitPanel and ExpandLayout). Sizeable implementation now copy-pasted to all implementing classes (Panel, Tabsheet, SplitPanel...).
-Changed ReservationApplication to conform to new setStyleName. Removed deprecated style constant usages also. Some margins enabled to layouts. -IOrderedLayout vertical reverted back to DIV implementation. -Margins added to demo layouts where needed. svn changeset:2714/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/ui/GridLayout.java')
-rw-r--r--src/com/itmill/toolkit/ui/GridLayout.java30
1 files changed, 16 insertions, 14 deletions
diff --git a/src/com/itmill/toolkit/ui/GridLayout.java b/src/com/itmill/toolkit/ui/GridLayout.java
index f9ecdbe3b5..867e75b11a 100644
--- a/src/com/itmill/toolkit/ui/GridLayout.java
+++ b/src/com/itmill/toolkit/ui/GridLayout.java
@@ -101,33 +101,33 @@ public class GridLayout extends AbstractLayout {
/**
* Contained component should be aligned horizontally to the left.
*/
- private int ALIGNMENT_LEFT = 1;
+ public static final int ALIGNMENT_LEFT = 1;
/**
* Contained component should be aligned horizontally to the right.
*/
- private int ALIGNMENT_RIGHT = 2;
+ public static final int ALIGNMENT_RIGHT = 2;
/**
* Contained component should be aligned vertically to the top.
*/
- private int ALIGNMENT_TOP = 4;
+ public static final int ALIGNMENT_TOP = 4;
/**
* Contained component should be aligned vertically to the bottom.
*/
- private int ALIGNMENT_BOTTOM = 8;
+ public static final int ALIGNMENT_BOTTOM = 8;
/**
* Contained component should be horizontally aligned to center.
*/
- private int HORIZONTAL_ALIGNMENT_CENTER = 16;
-
+ public static final int HORIZONTAL_ALIGNMENT_CENTER = 16;
+
/**
* Contained component should be vertically aligned to center.
*/
- private int VERTICAL_ALIGNMENT_CENTER = 32;
-
+ public static final int VERTICAL_ALIGNMENT_CENTER = 32;
+
/**
* Is spacing between contained components enabled. Defaults to false.
*/
@@ -353,7 +353,7 @@ public class GridLayout extends AbstractLayout {
components.remove(component);
if (area != null)
areas.remove(area);
-
+
componentToAlignment.remove(component);
requestRepaint();
@@ -404,7 +404,7 @@ public class GridLayout extends AbstractLayout {
// TODO refactor attribute names in future release.
target.addAttribute("h", rows);
target.addAttribute("w", cols);
-
+
if (this.spacing)
target.addAttribute("spacing", this.spacing);
@@ -825,7 +825,7 @@ public class GridLayout extends AbstractLayout {
* </p>
*/
public void setWidth(int width) {
- super.setWidth(width);
+ // super.setWidth(width);
}
/**
@@ -839,7 +839,8 @@ public class GridLayout extends AbstractLayout {
* </p>
*/
public int getWidth() {
- return super.getWidth();
+ // return super.getWidth();
+ return -1;
}
/**
@@ -893,7 +894,7 @@ public class GridLayout extends AbstractLayout {
* </p>
*/
public void setHeight(int height) {
- super.setHeight(height);
+ // super.setHeight(height);
}
/**
@@ -907,7 +908,8 @@ public class GridLayout extends AbstractLayout {
* </p>
*/
public int getHeight() {
- return super.getHeight();
+ // return super.getHeight();
+ return -1;
}
/**