jdk/src/share/classes/javax/swing/AbstractButton.java
changeset 467 3bcc915c0925
parent 466 6acd5ec503a8
parent 438 2ae294e4518c
child 1301 15e81207e1f2
equal deleted inserted replaced
466:6acd5ec503a8 467:3bcc915c0925
  2048                 accessibleContext.firePropertyChange(
  2048                 accessibleContext.firePropertyChange(
  2049                     AccessibleContext.ACCESSIBLE_STATE_PROPERTY,
  2049                     AccessibleContext.ACCESSIBLE_STATE_PROPERTY,
  2050                     null, AccessibleState.SELECTED);
  2050                     null, AccessibleState.SELECTED);
  2051                 accessibleContext.firePropertyChange(
  2051                 accessibleContext.firePropertyChange(
  2052                     AccessibleContext.ACCESSIBLE_VALUE_PROPERTY,
  2052                     AccessibleContext.ACCESSIBLE_VALUE_PROPERTY,
  2053                     new Integer(0), new Integer(1));
  2053                     Integer.valueOf(0), Integer.valueOf(1));
  2054             } else {
  2054             } else {
  2055                 accessibleContext.firePropertyChange(
  2055                 accessibleContext.firePropertyChange(
  2056                     AccessibleContext.ACCESSIBLE_STATE_PROPERTY,
  2056                     AccessibleContext.ACCESSIBLE_STATE_PROPERTY,
  2057                     AccessibleState.SELECTED, null);
  2057                     AccessibleState.SELECTED, null);
  2058                 accessibleContext.firePropertyChange(
  2058                 accessibleContext.firePropertyChange(
  2059                     AccessibleContext.ACCESSIBLE_VALUE_PROPERTY,
  2059                     AccessibleContext.ACCESSIBLE_VALUE_PROPERTY,
  2060                     new Integer(1), new Integer(0));
  2060                     Integer.valueOf(1), Integer.valueOf(0));
  2061             }
  2061             }
  2062         }
  2062         }
  2063     }
  2063     }
  2064 
  2064 
  2065 
  2065 
  2553          * this is selected.
  2553          * this is selected.
  2554          * @see AbstractButton#isSelected
  2554          * @see AbstractButton#isSelected
  2555          */
  2555          */
  2556         public Number getCurrentAccessibleValue() {
  2556         public Number getCurrentAccessibleValue() {
  2557             if (isSelected()) {
  2557             if (isSelected()) {
  2558                 return new Integer(1);
  2558                 return Integer.valueOf(1);
  2559             } else {
  2559             } else {
  2560                 return new Integer(0);
  2560                 return Integer.valueOf(0);
  2561             }
  2561             }
  2562         }
  2562         }
  2563 
  2563 
  2564         /**
  2564         /**
  2565          * Set the value of this object as a Number.
  2565          * Set the value of this object as a Number.
  2584          * Get the minimum value of this object as a Number.
  2584          * Get the minimum value of this object as a Number.
  2585          *
  2585          *
  2586          * @return an Integer of 0.
  2586          * @return an Integer of 0.
  2587          */
  2587          */
  2588         public Number getMinimumAccessibleValue() {
  2588         public Number getMinimumAccessibleValue() {
  2589             return new Integer(0);
  2589             return Integer.valueOf(0);
  2590         }
  2590         }
  2591 
  2591 
  2592         /**
  2592         /**
  2593          * Get the maximum value of this object as a Number.
  2593          * Get the maximum value of this object as a Number.
  2594          *
  2594          *
  2595          * @return An Integer of 1.
  2595          * @return An Integer of 1.
  2596          */
  2596          */
  2597         public Number getMaximumAccessibleValue() {
  2597         public Number getMaximumAccessibleValue() {
  2598             return new Integer(1);
  2598             return Integer.valueOf(1);
  2599         }
  2599         }
  2600 
  2600 
  2601 
  2601 
  2602         /* AccessibleText ---------- */
  2602         /* AccessibleText ---------- */
  2603 
  2603