jdk/src/share/classes/javax/swing/JRadioButtonMenuItem.java
Print this page
@@ -22,21 +22,15 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package javax.swing;
-import java.util.EventListener;
-
-import java.awt.*;
-import java.awt.event.*;
-import java.awt.image.*;
-
+import java.beans.JavaBean;
+import java.beans.BeanProperty;
import java.io.ObjectOutputStream;
-import java.io.ObjectInputStream;
import java.io.IOException;
-import javax.swing.plaf.*;
import javax.accessibility.*;
/**
* An implementation of a radio button menu item.
* A <code>JRadioButtonMenuItem</code> is
@@ -73,19 +67,17 @@
* the same version of Swing. As of 1.4, support for long term storage
* of all JavaBeans™
* has been added to the <code>java.beans</code> package.
* Please see {@link java.beans.XMLEncoder}.
*
- * @beaninfo
- * attribute: isContainer false
- * description: A component within a group of menu items which can be selected.
- *
* @author Georges Saab
* @author David Karlton
* @see ButtonGroup
* @since 1.2
*/
+@JavaBean(description = "A component within a group of menu items which can be selected.")
+@SwingContainer(false)
@SuppressWarnings("serial") // Same-version serialization only
public class JRadioButtonMenuItem extends JMenuItem implements Accessible {
/**
* @see #getUIClassID
* @see #readObject
@@ -189,10 +181,11 @@
*
* @return the string "RadioButtonMenuItemUI"
* @see JComponent#getUIClassID
* @see UIDefaults#getUI
*/
+ @BeanProperty(bound = false)
public String getUIClassID() {
return uiClassID;
}
/**
@@ -246,10 +239,11 @@
* A new AccessibleJRadioButtonMenuItem instance is created if necessary.
*
* @return an AccessibleJRadioButtonMenuItem that serves as the
* AccessibleContext of this JRadioButtonMenuItem
*/
+ @BeanProperty(bound = false)
public AccessibleContext getAccessibleContext() {
if (accessibleContext == null) {
accessibleContext = new AccessibleJRadioButtonMenuItem();
}
return accessibleContext;