summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2014-01-20 20:35:41 +0200
committerArtur Signell <artur@vaadin.com>2014-01-21 15:39:42 +0200
commit3897025e537f65e484078d4cbfbea1500ba6368b (patch)
treeb95e786d111759f1caf1a4cfcbee37eec7a3d8b7 /server
parentf0a4ea9c7241885ffd38d5faf38f25a624adac2c (diff)
downloadvaadin-framework-3897025e537f65e484078d4cbfbea1500ba6368b.tar.gz
vaadin-framework-3897025e537f65e484078d4cbfbea1500ba6368b.zip
Add deprecated expand ratio methods to FormLayout (#12876)
FormLayout has never implemented expand ratios but does not tell the developer about it either. Throwing an UnsupportedOperationException would make this very clear but at the same time would break existing applications which use the methods or which handle AbstractOrderedLayouts in a generic way. Change-Id: I0208f91c3c07aff98a78153887fbbea9dbc1d3d1
Diffstat (limited to 'server')
-rw-r--r--server/src/com/vaadin/ui/FormLayout.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/FormLayout.java b/server/src/com/vaadin/ui/FormLayout.java
index 9d5e637068..9dc0b24cad 100644
--- a/server/src/com/vaadin/ui/FormLayout.java
+++ b/server/src/com/vaadin/ui/FormLayout.java
@@ -52,4 +52,23 @@ public class FormLayout extends AbstractOrderedLayout {
addComponents(children);
}
+ /**
+ * @deprecated This method currently has no effect as expand ratios are not
+ * implemented in FormLayout
+ */
+ @Override
+ @Deprecated
+ public void setExpandRatio(Component component, float ratio) {
+ super.setExpandRatio(component, ratio);
+ }
+
+ /**
+ * @deprecated This method currently has no effect as expand ratios are not
+ * implemented in FormLayout
+ */
+ @Override
+ @Deprecated
+ public float getExpandRatio(Component component) {
+ return super.getExpandRatio(component);
+ }
}