Browse Source

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
tags/7.1.11
Artur Signell 10 years ago
parent
commit
3897025e53
1 changed files with 19 additions and 0 deletions
  1. 19
    0
      server/src/com/vaadin/ui/FormLayout.java

+ 19
- 0
server/src/com/vaadin/ui/FormLayout.java View File

@@ -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);
}
}

Loading…
Cancel
Save