< prev index next >

src/java.desktop/share/classes/javax/swing/JRadioButton.java

Print this page
rev 60127 : 8249205: Remove unnecessary trademark symbols


  54  * configuring a button.  Refer to <a href="Action.html#buttonActions">
  55  * Swing Components Supporting <code>Action</code></a> for more
  56  * details, and you can find more information in <a
  57  * href="https://docs.oracle.com/javase/tutorial/uiswing/misc/action.html">How
  58  * to Use Actions</a>, a section in <em>The Java Tutorial</em>.
  59  * <p>
  60  * See <a href="https://docs.oracle.com/javase/tutorial/uiswing/components/button.html">How to Use Buttons, Check Boxes, and Radio Buttons</a>
  61  * in <em>The Java Tutorial</em>
  62  * for further documentation.
  63  * <p>
  64  * <strong>Warning:</strong> Swing is not thread safe. For more
  65  * information see <a
  66  * href="package-summary.html#threading">Swing's Threading
  67  * Policy</a>.
  68  * <p>
  69  * <strong>Warning:</strong>
  70  * Serialized objects of this class will not be compatible with
  71  * future Swing releases. The current serialization support is
  72  * appropriate for short term storage or RMI between applications running
  73  * the same version of Swing.  As of 1.4, support for long term storage
  74  * of all JavaBeans&trade;
  75  * has been added to the <code>java.beans</code> package.
  76  * Please see {@link java.beans.XMLEncoder}.
  77  *
  78  * @see ButtonGroup
  79  * @see JCheckBox
  80  * @author Jeff Dinkins
  81  * @since 1.2
  82  */
  83 @JavaBean(description = "A component which can display it's state as selected or deselected.")
  84 @SwingContainer(false)
  85 @SuppressWarnings("serial") // Same-version serialization only
  86 public class JRadioButton extends JToggleButton implements Accessible {
  87 
  88     /**
  89      * @see #getUIClassID
  90      * @see #readObject
  91      */
  92     private static final String uiClassID = "RadioButtonUI";
  93 
  94 


 261     @BeanProperty(bound = false, expert = true, description
 262             = "The AccessibleContext associated with this Button")
 263     public AccessibleContext getAccessibleContext() {
 264         if (accessibleContext == null) {
 265             accessibleContext = new AccessibleJRadioButton();
 266         }
 267         return accessibleContext;
 268     }
 269 
 270     /**
 271      * This class implements accessibility support for the
 272      * <code>JRadioButton</code> class.  It provides an implementation of the
 273      * Java Accessibility API appropriate to radio button
 274      * user-interface elements.
 275      * <p>
 276      * <strong>Warning:</strong>
 277      * Serialized objects of this class will not be compatible with
 278      * future Swing releases. The current serialization support is
 279      * appropriate for short term storage or RMI between applications running
 280      * the same version of Swing.  As of 1.4, support for long term storage
 281      * of all JavaBeans&trade;
 282      * has been added to the <code>java.beans</code> package.
 283      * Please see {@link java.beans.XMLEncoder}.
 284      */
 285     @SuppressWarnings("serial") // Same-version serialization only
 286     protected class AccessibleJRadioButton extends AccessibleJToggleButton {
 287 
 288         /**
 289          * Get the role of this object.
 290          *
 291          * @return an instance of AccessibleRole describing the role of the object
 292          * @see AccessibleRole
 293          */
 294         public AccessibleRole getAccessibleRole() {
 295             return AccessibleRole.RADIO_BUTTON;
 296         }
 297 
 298     } // inner class AccessibleJRadioButton
 299 }


  54  * configuring a button.  Refer to <a href="Action.html#buttonActions">
  55  * Swing Components Supporting <code>Action</code></a> for more
  56  * details, and you can find more information in <a
  57  * href="https://docs.oracle.com/javase/tutorial/uiswing/misc/action.html">How
  58  * to Use Actions</a>, a section in <em>The Java Tutorial</em>.
  59  * <p>
  60  * See <a href="https://docs.oracle.com/javase/tutorial/uiswing/components/button.html">How to Use Buttons, Check Boxes, and Radio Buttons</a>
  61  * in <em>The Java Tutorial</em>
  62  * for further documentation.
  63  * <p>
  64  * <strong>Warning:</strong> Swing is not thread safe. For more
  65  * information see <a
  66  * href="package-summary.html#threading">Swing's Threading
  67  * Policy</a>.
  68  * <p>
  69  * <strong>Warning:</strong>
  70  * Serialized objects of this class will not be compatible with
  71  * future Swing releases. The current serialization support is
  72  * appropriate for short term storage or RMI between applications running
  73  * the same version of Swing.  As of 1.4, support for long term storage
  74  * of all JavaBeans
  75  * has been added to the <code>java.beans</code> package.
  76  * Please see {@link java.beans.XMLEncoder}.
  77  *
  78  * @see ButtonGroup
  79  * @see JCheckBox
  80  * @author Jeff Dinkins
  81  * @since 1.2
  82  */
  83 @JavaBean(description = "A component which can display it's state as selected or deselected.")
  84 @SwingContainer(false)
  85 @SuppressWarnings("serial") // Same-version serialization only
  86 public class JRadioButton extends JToggleButton implements Accessible {
  87 
  88     /**
  89      * @see #getUIClassID
  90      * @see #readObject
  91      */
  92     private static final String uiClassID = "RadioButtonUI";
  93 
  94 


 261     @BeanProperty(bound = false, expert = true, description
 262             = "The AccessibleContext associated with this Button")
 263     public AccessibleContext getAccessibleContext() {
 264         if (accessibleContext == null) {
 265             accessibleContext = new AccessibleJRadioButton();
 266         }
 267         return accessibleContext;
 268     }
 269 
 270     /**
 271      * This class implements accessibility support for the
 272      * <code>JRadioButton</code> class.  It provides an implementation of the
 273      * Java Accessibility API appropriate to radio button
 274      * user-interface elements.
 275      * <p>
 276      * <strong>Warning:</strong>
 277      * Serialized objects of this class will not be compatible with
 278      * future Swing releases. The current serialization support is
 279      * appropriate for short term storage or RMI between applications running
 280      * the same version of Swing.  As of 1.4, support for long term storage
 281      * of all JavaBeans
 282      * has been added to the <code>java.beans</code> package.
 283      * Please see {@link java.beans.XMLEncoder}.
 284      */
 285     @SuppressWarnings("serial") // Same-version serialization only
 286     protected class AccessibleJRadioButton extends AccessibleJToggleButton {
 287 
 288         /**
 289          * Get the role of this object.
 290          *
 291          * @return an instance of AccessibleRole describing the role of the object
 292          * @see AccessibleRole
 293          */
 294         public AccessibleRole getAccessibleRole() {
 295             return AccessibleRole.RADIO_BUTTON;
 296         }
 297 
 298     } // inner class AccessibleJRadioButton
 299 }
< prev index next >