diff options
author | Artur Signell <artur.signell@itmill.com> | 2010-07-06 08:03:13 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2010-07-06 08:03:13 +0000 |
commit | 5a87027870866bd274e09fdf2b66d286fcf58e07 (patch) | |
tree | 4d735916016699b701d778027754d42eea65fee2 /src/com/vaadin/ui/AbsoluteLayout.java | |
parent | 677ff2b5f514452a5e0286b049e8bc68f2cd42cb (diff) | |
download | vaadin-framework-5a87027870866bd274e09fdf2b66d286fcf58e07.tar.gz vaadin-framework-5a87027870866bd274e09fdf2b66d286fcf58e07.zip |
Cleanup: removed unused validator function and extra TODO comment
svn changeset:14083/svn branch:6.4
Diffstat (limited to 'src/com/vaadin/ui/AbsoluteLayout.java')
-rw-r--r-- | src/com/vaadin/ui/AbsoluteLayout.java | 36 |
1 files changed, 4 insertions, 32 deletions
diff --git a/src/com/vaadin/ui/AbsoluteLayout.java b/src/com/vaadin/ui/AbsoluteLayout.java index 0e7374ad34..72483f7751 100644 --- a/src/com/vaadin/ui/AbsoluteLayout.java +++ b/src/com/vaadin/ui/AbsoluteLayout.java @@ -132,9 +132,6 @@ public class AbsoluteLayout extends AbstractLayout { * absolute layout. It contains the CSS attributes for left, right, top and * bottom and the units used to specify them. * * - * TODO symmetric getters and setters for fields to make this simpler to use - * in generic java tools - * */ public class ComponentPosition implements Serializable { @@ -255,7 +252,6 @@ public class AbsoluteLayout extends AbstractLayout { * description of the available units. */ public void setTop(float topValue, int topUnits) { - validateLength(topValue, topUnits); this.topValue = topValue; this.topUnits = topUnits; requestRepaint(); @@ -271,7 +267,6 @@ public class AbsoluteLayout extends AbstractLayout { * description of the available units. */ public void setRight(float rightValue, int rightUnits) { - validateLength(rightValue, rightUnits); this.rightValue = rightValue; this.rightUnits = rightUnits; requestRepaint(); @@ -286,10 +281,9 @@ public class AbsoluteLayout extends AbstractLayout { * The unit of the 'bottom' attribute. See UNIT_SYMBOLS for a * description of the available units. */ - public void setBottom(float bottomValue, int units) { - validateLength(bottomValue, units); + public void setBottom(float bottomValue, int bottomUnits) { this.bottomValue = bottomValue; - bottomUnits = units; + this.bottomUnits = bottomUnits; requestRepaint(); } @@ -302,10 +296,9 @@ public class AbsoluteLayout extends AbstractLayout { * The unit of the 'left' attribute. See UNIT_SYMBOLS for a * description of the available units. */ - public void setLeft(float leftValue, int units) { - validateLength(leftValue, units); + public void setLeft(float leftValue, int leftUnits) { this.leftValue = leftValue; - leftUnits = units; + this.leftUnits = leftUnits; requestRepaint(); } @@ -327,7 +320,6 @@ public class AbsoluteLayout extends AbstractLayout { * The value of the 'left' attribute */ public void setTopValue(float topValue) { - validateLength(topValue, topUnits); this.topValue = topValue; requestRepaint(); } @@ -357,7 +349,6 @@ public class AbsoluteLayout extends AbstractLayout { * The value of the 'right' CSS-attribute */ public void setRightValue(float rightValue) { - validateLength(rightValue, rightUnits); this.rightValue = rightValue; requestRepaint(); } @@ -378,7 +369,6 @@ public class AbsoluteLayout extends AbstractLayout { * The value of the 'bottom' CSS-attribute */ public void setBottomValue(float bottomValue) { - validateLength(bottomValue, bottomUnits); this.bottomValue = bottomValue; requestRepaint(); } @@ -399,7 +389,6 @@ public class AbsoluteLayout extends AbstractLayout { * The value of the 'left' CSS-attribute */ public void setLeftValue(float leftValue) { - validateLength(leftValue, leftUnits); this.leftValue = leftValue; requestRepaint(); } @@ -420,7 +409,6 @@ public class AbsoluteLayout extends AbstractLayout { * See UNIT_SYMBOLS for a description of the available units. */ public void setTopUnits(int topUnits) { - validateLength(topValue, topUnits); this.topUnits = topUnits; requestRepaint(); } @@ -441,7 +429,6 @@ public class AbsoluteLayout extends AbstractLayout { * See UNIT_SYMBOLS for a description of the available units. */ public void setRightUnits(int rightUnits) { - validateLength(rightValue, rightUnits); this.rightUnits = rightUnits; requestRepaint(); } @@ -462,7 +449,6 @@ public class AbsoluteLayout extends AbstractLayout { * See UNIT_SYMBOLS for a description of the available units. */ public void setBottomUnits(int bottomUnits) { - validateLength(bottomValue, bottomUnits); this.bottomUnits = bottomUnits; requestRepaint(); } @@ -483,7 +469,6 @@ public class AbsoluteLayout extends AbstractLayout { * See UNIT_SYMBOLS for a description of the available units. */ public void setLeftUnits(int leftUnits) { - validateLength(leftValue, leftUnits); this.leftUnits = leftUnits; requestRepaint(); } @@ -527,19 +512,6 @@ public class AbsoluteLayout extends AbstractLayout { } } - /** - * Validates a value with the unit - * - * @param topValue - * The value to validate - * @param topUnits2 - * The unit to validate - */ - private static void validateLength(float topValue, int topUnits2) { - // TODO throw on invalid value - - } - /* * (non-Javadoc) * |