From c289dec269e52f52e5720a9571d9c2a0d13aca6f Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Tue, 30 Nov 2010 15:16:18 +0000 Subject: [PATCH] #6082 - deprecated isSwitchMode svn changeset:16240/svn branch:6.5 --- src/com/vaadin/ui/Button.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/vaadin/ui/Button.java b/src/com/vaadin/ui/Button.java index af85513692..cf354750a8 100644 --- a/src/com/vaadin/ui/Button.java +++ b/src/com/vaadin/ui/Button.java @@ -204,7 +204,10 @@ public class Button extends AbstractField implements FieldEvents.BlurNotifier, * * @return true if it is in Switch Mode, otherwise * false. + * @deprecated the {@link CheckBox} component should be used instead of + * Button in switch mode */ + @Deprecated public boolean isSwitchMode() { return switchMode; } @@ -217,6 +220,7 @@ public class Button extends AbstractField implements FieldEvents.BlurNotifier, * @deprecated the {@link CheckBox} component should be used instead of * Button in switch mode */ + @Deprecated public void setSwitchMode(boolean switchMode) { this.switchMode = switchMode; if (!switchMode) { -- 2.39.5