src/java.desktop/share/classes/javax/swing/JRadioButtonMenuItem.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 22,42 ****
* 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.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
--- 22,36 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package javax.swing;
! import java.beans.JavaBean;
! import java.beans.BeanProperty;
import java.io.ObjectOutputStream;
import java.io.IOException;
import javax.accessibility.*;
/**
* An implementation of a radio button menu item.
* A <code>JRadioButtonMenuItem</code> is
*** 73,91 ****
* 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
*/
@SuppressWarnings("serial") // Same-version serialization only
public class JRadioButtonMenuItem extends JMenuItem implements Accessible {
/**
* @see #getUIClassID
* @see #readObject
--- 67,83 ----
* 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}.
*
* @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,198 ****
--- 181,191 ----
*
* @return the string "RadioButtonMenuItemUI"
* @see JComponent#getUIClassID
* @see UIDefaults#getUI
*/
+ @BeanProperty(bound = false)
public String getUIClassID() {
return uiClassID;
}
/**
*** 246,255 ****
--- 239,249 ----
* 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;