aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2008-10-17 13:08:25 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2008-10-17 13:08:25 +0000
commitefe75a19f87aebcf3f4bc1c72f25d3954036b4c9 (patch)
tree59832cd50513da99ad0c2bcae3a6836ea2ab9364 /src
parent914be18256bb9f4ddb12a4d35a8e3bd870bb6d7e (diff)
downloadvaadin-framework-efe75a19f87aebcf3f4bc1c72f25d3954036b4c9.tar.gz
vaadin-framework-efe75a19f87aebcf3f4bc1c72f25d3954036b4c9.zip
experimental expand feature for ordered layout
svn changeset:5659/svn branch:trunk
Diffstat (limited to 'src')
-rw-r--r--src/com/itmill/toolkit/ui/OrderedLayout.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com/itmill/toolkit/ui/OrderedLayout.java b/src/com/itmill/toolkit/ui/OrderedLayout.java
index e01b21902e..7e7ee27f63 100644
--- a/src/com/itmill/toolkit/ui/OrderedLayout.java
+++ b/src/com/itmill/toolkit/ui/OrderedLayout.java
@@ -107,6 +107,17 @@ public class OrderedLayout extends AbstractLayout implements
}
/**
+ * TODO
+ *
+ * @param c
+ * @param expandRatio
+ */
+ public void addComponent(Component c, float expandRatio) {
+ addComponent(c);
+ setExpandRatio(c, expandRatio);
+ }
+
+ /**
* Adds a component into this container. The component is added to the left
* or on top of the other components.
*
@@ -144,6 +155,7 @@ public class OrderedLayout extends AbstractLayout implements
super.removeComponent(c);
components.remove(c);
componentToAlignment.remove(c);
+ componentToExpandRatio.remove(c);
requestRepaint();
}