All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.swing.JRadioButtonMenuItem

java.lang.Object
    |
    +----java.awt.Component
            |
            +----java.awt.Container
                    |
                    +----java.awt.swing.JComponent
                            |
                            +----java.awt.swing.AbstractButton
                                    |
                                    +----java.awt.swing.JMenuItem
                                            |
                                            +----java.awt.swing.JRadioButtonMenuItem

public class JRadioButtonMenuItem
extends JMenuItem
implements Accessible
An implementation of a RadioButtonMenuItem


Variable Index

 o action

Constructor Index

 o JRadioButtonMenuItem()
Creates a checkboxMenuItem with no set text or icon.
 o JRadioButtonMenuItem(Icon)
Creates a checkboxMenuItem with an icon.
 o JRadioButtonMenuItem(String)
Creates a checkboxMenuItem with text.
 o JRadioButtonMenuItem(String, Icon)
Creates a checkboxMenuItem.

Method Index

 o getAccessibleRole()
Get the role of this object.
 o getUIClassID()
 o init(String, Icon)
 o requestFocus()
Set focus on the receiving component if isRequestFocusEnabled returns true
 o setAction(Action)
Sets the action to be involed by the JRadioButtonMenuItem
 o setUI(RadioButtonMenuItemUI)
Sets the checkboxMenuItem's UI.
 o updateUI()
Gets a new UI object from the default UIFactory.

Variables

 o action
protected Action action

Constructors

 o JRadioButtonMenuItem
public JRadioButtonMenuItem()
Creates a checkboxMenuItem with no set text or icon.

 o JRadioButtonMenuItem
public JRadioButtonMenuItem(Icon icon)
Creates a checkboxMenuItem with an icon.

Parameters:
icon - the icon of the RadioButtonMenuItem.
 o JRadioButtonMenuItem
public JRadioButtonMenuItem(String text)
Creates a checkboxMenuItem with text.

Parameters:
text - the text of the RadioButtonMenuItem.
 o JRadioButtonMenuItem
public JRadioButtonMenuItem(String text,
                            Icon icon)
Creates a checkboxMenuItem.

Parameters:
text - the text of the RadioButtonMenuItem.
icon - the icon of the RadioButtonMenuItem.

Methods

 o init
protected void init(String text,
                    Icon icon)
Overrides:
init in class JMenuItem
 o setUI
public void setUI(RadioButtonMenuItemUI ui)
Sets the checkboxMenuItem's UI.

Parameters:
ui - the new RadioButtonMenuItemUI
See Also:
getUI
 o updateUI
public void updateUI()
Gets a new UI object from the default UIFactory.

Overrides:
updateUI in class JMenuItem
 o getUIClassID
public String getUIClassID()
Returns:
"RadioButtonMenuItemUI"
Overrides:
getUIClassID in class JMenuItem
See Also:
getUIClassID, getUI
 o setAction
public void setAction(Action action)
Sets the action to be involed by the JRadioButtonMenuItem

Parameters:
action - the Action
 o requestFocus
public void requestFocus()
Set focus on the receiving component if isRequestFocusEnabled returns true

Overrides:
requestFocus in class JMenuItem
 o getAccessibleRole
public AccessibleRole getAccessibleRole()
Get the role of this object.

Returns:
an instance of AccessibleRole describing the role of the object
Overrides:
getAccessibleRole in class JMenuItem
See Also:
AccessibleRole

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature