]> source.dussan.org Git - vaadin-framework.git/commitdiff
#6082 - deprecated isSwitchMode
authorArtur Signell <artur.signell@itmill.com>
Tue, 30 Nov 2010 15:16:18 +0000 (15:16 +0000)
committerArtur Signell <artur.signell@itmill.com>
Tue, 30 Nov 2010 15:16:18 +0000 (15:16 +0000)
svn changeset:16240/svn branch:6.5

src/com/vaadin/ui/Button.java

index af85513692e98f1be2db04c2b763e4f523a6cb54..cf354750a8f98a042e264cdb1d22c66ed265c226 100644 (file)
@@ -204,7 +204,10 @@ public class Button extends AbstractField implements FieldEvents.BlurNotifier,
      * 
      * @return <code>true</code> if it is in Switch Mode, otherwise
      *         <code>false</code>.
+     * @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) {