]> source.dussan.org Git - vaadin-framework.git/commitdiff
Re-added deprecated booleanValue() to ease migration
authorArtur Signell <artur@vaadin.com>
Tue, 20 Dec 2011 12:38:11 +0000 (14:38 +0200)
committerArtur Signell <artur@vaadin.com>
Tue, 20 Dec 2011 13:38:41 +0000 (15:38 +0200)
src/com/vaadin/ui/CheckBox.java

index 129313d540d4ff4257a23e22b0573a2a5c47a3f4..4b8c276c713e8cad52e29f91471c94cbb6f3d0f7 100644 (file)
@@ -117,4 +117,17 @@ public class CheckBox extends AbstractField<Boolean> {
 
     }
 
+    /**
+     * Get the boolean value of the button state.
+     * 
+     * @return True iff the button is pressed down or checked.
+     * 
+     * @deprecated Use {@link #getValue()} instead and, if needed, handle null
+     *             values.
+     */
+    @Deprecated
+    public boolean booleanValue() {
+        Boolean value = getValue();
+        return (null == value) ? false : value.booleanValue();
+    }
 }