< prev index next >

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

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


  60  * closing when it is clicked by the mouse. If the client property is set its
  61  * value is always used; otherwise the {@literal L&F} property is queried.
  62  * Note: some {@code L&F}s may ignore this property. All built-in {@code L&F}s
  63  * inherit this behaviour.
  64  * <p>
  65  * For further documentation and examples see
  66  * <a
  67  href="https://docs.oracle.com/javase/tutorial/uiswing/components/menu.html">How to Use Menus</a>,
  68  * a section in <em>The Java Tutorial.</em>
  69  * <p>
  70  * <strong>Warning:</strong> Swing is not thread safe. For more
  71  * information see <a
  72  * href="package-summary.html#threading">Swing's Threading
  73  * Policy</a>.
  74  * <p>
  75  * <strong>Warning:</strong>
  76  * Serialized objects of this class will not be compatible with
  77  * future Swing releases. The current serialization support is
  78  * appropriate for short term storage or RMI between applications running
  79  * the same version of Swing.  As of 1.4, support for long term storage
  80  * of all JavaBeans&trade;
  81  * has been added to the <code>java.beans</code> package.
  82  * Please see {@link java.beans.XMLEncoder}.
  83  *
  84  * @author Georges Saab
  85  * @author David Karlton
  86  * @see ButtonGroup
  87  * @since 1.2
  88  */
  89 @JavaBean(description = "A component within a group of menu items which can be selected.")
  90 @SwingContainer(false)
  91 @SuppressWarnings("serial") // Same-version serialization only
  92 public class JRadioButtonMenuItem extends JMenuItem implements Accessible {
  93     /**
  94      * @see #getUIClassID
  95      * @see #readObject
  96      */
  97     private static final String uiClassID = "RadioButtonMenuItemUI";
  98 
  99     /**
 100      * Creates a <code>JRadioButtonMenuItem</code> with no set text or icon.


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


  60  * closing when it is clicked by the mouse. If the client property is set its
  61  * value is always used; otherwise the {@literal L&F} property is queried.
  62  * Note: some {@code L&F}s may ignore this property. All built-in {@code L&F}s
  63  * inherit this behaviour.
  64  * <p>
  65  * For further documentation and examples see
  66  * <a
  67  href="https://docs.oracle.com/javase/tutorial/uiswing/components/menu.html">How to Use Menus</a>,
  68  * a section in <em>The Java Tutorial.</em>
  69  * <p>
  70  * <strong>Warning:</strong> Swing is not thread safe. For more
  71  * information see <a
  72  * href="package-summary.html#threading">Swing's Threading
  73  * Policy</a>.
  74  * <p>
  75  * <strong>Warning:</strong>
  76  * Serialized objects of this class will not be compatible with
  77  * future Swing releases. The current serialization support is
  78  * appropriate for short term storage or RMI between applications running
  79  * the same version of Swing.  As of 1.4, support for long term storage
  80  * of all JavaBeans
  81  * has been added to the <code>java.beans</code> package.
  82  * Please see {@link java.beans.XMLEncoder}.
  83  *
  84  * @author Georges Saab
  85  * @author David Karlton
  86  * @see ButtonGroup
  87  * @since 1.2
  88  */
  89 @JavaBean(description = "A component within a group of menu items which can be selected.")
  90 @SwingContainer(false)
  91 @SuppressWarnings("serial") // Same-version serialization only
  92 public class JRadioButtonMenuItem extends JMenuItem implements Accessible {
  93     /**
  94      * @see #getUIClassID
  95      * @see #readObject
  96      */
  97     private static final String uiClassID = "RadioButtonMenuItemUI";
  98 
  99     /**
 100      * Creates a <code>JRadioButtonMenuItem</code> with no set text or icon.


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