aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/Button.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/vaadin/ui/Button.java')
-rw-r--r--src/com/vaadin/ui/Button.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/vaadin/ui/Button.java b/src/com/vaadin/ui/Button.java
index 0d193168e6..af85513692 100644
--- a/src/com/vaadin/ui/Button.java
+++ b/src/com/vaadin/ui/Button.java
@@ -49,7 +49,6 @@ public class Button extends AbstractField implements FieldEvents.BlurNotifier,
*/
public Button() {
setValue(Boolean.FALSE);
- setSwitchMode(false);
}
/**
@@ -105,7 +104,9 @@ public class Button extends AbstractField implements FieldEvents.BlurNotifier,
* @param state
* the Initial state of the switch-button.
* @param initialState
+ * @deprecated use {@link CheckBox} instead of Button in "switchmode"
*/
+ @Deprecated
public Button(String caption, boolean initialState) {
setCaption(caption);
setValue(Boolean.valueOf(initialState));
@@ -118,7 +119,9 @@ public class Button extends AbstractField implements FieldEvents.BlurNotifier,
* @param state
* the Initial state of the switch-button.
* @param dataSource
+ * @deprecated use {@link CheckBox} instead of Button in "switchmode"
*/
+ @Deprecated
public Button(String caption, Property dataSource) {
setCaption(caption);
setSwitchMode(true);