2362N/A * Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * An implementation of a radio button -- an item that can be selected or 0N/A * deselected, and which displays its state to the user. 0N/A * Used with a {@link ButtonGroup} object to create a group of buttons 0N/A * in which only one button at a time can be selected. (Create a ButtonGroup 0N/A * object and use its <code>add</code> method to include the JRadioButton objects 0N/A * <strong>Note:</strong> 0N/A * The ButtonGroup object is a logical grouping -- not a physical grouping. 0N/A * To create a button panel, you should still create a {@link JPanel} or similar 0N/A * container-object and add a {@link javax.swing.border.Border} to it to set it off from surrounding 0N/A * Buttons can be configured, and to some degree controlled, by 0N/A * <code>Action</code> with a button has many benefits beyond directly 0N/A * Swing Components Supporting <code>Action</code></a> for more 0N/A * details, and you can find more information in <a 0N/A * to Use Actions</a>, a section in <em>The Java Tutorial</em>. 0N/A * in <em>The Java Tutorial</em> 0N/A * for further documentation. 0N/A * <strong>Warning:</strong> Swing is not thread safe. For more 0N/A * information see <a 0N/A * <strong>Warning:</strong> 0N/A * Serialized objects of this class will not be compatible with 0N/A * future Swing releases. The current serialization support is 0N/A * appropriate for short term storage or RMI between applications running 0N/A * the same version of Swing. As of 1.4, support for long term storage 0N/A * of all JavaBeans<sup><font size="-2">TM</font></sup> 0N/A * has been added to the <code>java.beans</code> package. 0N/A * attribute: isContainer false 0N/A * description: A component which can display it's state as selected or deselected. 0N/A * @author Jeff Dinkins 0N/A * @see #getUIClassID 0N/A * Creates an initially unselected radio button 0N/A * Creates an initially unselected radio button 0N/A * with the specified image but no text. 0N/A * @param icon the image that the button should display 0N/A * Creates a radiobutton where properties are taken from the 0N/A * Creates a radio button with the specified image 0N/A * and selection state, but no text. 0N/A * @param icon the image that the button should display 0N/A * @param selected if true, the button is initially selected; 0N/A * otherwise, the button is initially unselected 0N/A * Creates an unselected radio button with the specified text. 0N/A * @param text the string displayed on the radio button 0N/A * Creates a radio button with the specified text 0N/A * and selection state. 0N/A * @param text the string displayed on the radio button 0N/A * @param selected if true, the button is initially selected; 0N/A * otherwise, the button is initially unselected 0N/A * Creates a radio button that has the specified text and image, 0N/A * and that is initially unselected. 0N/A * @param text the string displayed on the radio button 0N/A * @param icon the image that the button should display 0N/A * Creates a radio button that has the specified text, image, 0N/A * and selection state. 0N/A * @param text the string displayed on the radio button 0N/A * @param icon the image that the button should display 0N/A * Resets the UI property to a value from the current look and feel. 0N/A * @see JComponent#updateUI 0N/A * Returns the name of the L&F class 0N/A * that renders this component. 0N/A * @return String "RadioButtonUI" 0N/A * @see JComponent#getUIClassID 0N/A * @see UIDefaults#getUI 0N/A * description: A string that specifies the name of the L&F class. 0N/A * The icon for radio buttons comes from the look and feel, 0N/A * See readObject() and writeObject() in JComponent for more 0N/A * information about serialization in Swing. 0N/A * Returns a string representation of this JRadioButton. This method 0N/A * is intended to be used only for debugging purposes, and the 0N/A * content and format of the returned string may vary between 0N/A * implementations. The returned string may be empty but may not 0N/A * be <code>null</code>. 0N/A * @return a string representation of this JRadioButton. 0N/A// Accessibility support 0N/A * Gets the AccessibleContext associated with this JRadioButton. 0N/A * For JRadioButtons, the AccessibleContext takes the form of an 0N/A * AccessibleJRadioButton. 0N/A * A new AccessibleJRadioButton instance is created if necessary. 0N/A * @return an AccessibleJRadioButton that serves as the 0N/A * AccessibleContext of this JRadioButton 0N/A * description: The AccessibleContext associated with this Button 0N/A * This class implements accessibility support for the 0N/A * <code>JRadioButton</code> class. It provides an implementation of the 0N/A * Java Accessibility API appropriate to radio button 0N/A * user-interface elements. 0N/A * <strong>Warning:</strong> 0N/A * Serialized objects of this class will not be compatible with 0N/A * future Swing releases. The current serialization support is 0N/A * appropriate for short term storage or RMI between applications running 0N/A * the same version of Swing. As of 1.4, support for long term storage 0N/A * of all JavaBeans<sup><font size="-2">TM</font></sup> 0N/A * has been added to the <code>java.beans</code> package. 0N/A * Get the role of this object. 0N/A * @return an instance of AccessibleRole describing the role of the object 0N/A * @see AccessibleRole 0N/A }
// inner class AccessibleJRadioButton