All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.JCheckBoxMenuItem
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.AbstractButton
|
+----com.sun.java.swing.JMenuItem
|
+----com.sun.java.swing.JCheckBoxMenuItem
- public class JCheckBoxMenuItem
- extends JMenuItem
- implements SwingConstants, Accessible
An implementation of a CheckBoxMenuItem
-
action
-
-
JCheckBoxMenuItem()
- Creates a checkboxMenuItem with no set text or icon.
-
JCheckBoxMenuItem(Icon)
- Creates a checkboxMenuItem with an icon.
-
JCheckBoxMenuItem(String)
- Creates a checkboxMenuItem with text.
-
JCheckBoxMenuItem(String, boolean)
- Creates a checkboxMenuItem.
-
JCheckBoxMenuItem(String, Icon)
- Creates a checkboxMenuItem.
-
JCheckBoxMenuItem(String, Icon, boolean)
- Creates a checkboxMenuItem.
-
getAccessibleRole()
- Get the role of this object.
-
getSelectedObjects()
-
-
getState()
- Returns the selected State of the JCheckBoxMenuItem.
-
getUIClassID()
-
-
init(String, Icon)
-
-
requestFocus()
- Set focus on the receiving component if isRequestFocusEnabled returns true
-
setAction(Action)
- Sets the action to be involed by the JCheckBoxMenuItem
-
setState(boolean)
- Sets the selected State of the JCheckBoxMenuItem.
-
setUI(CheckBoxMenuItemUI)
- Sets the checkboxMenuItem's UI.
-
updateUI()
- Gets a new UI object from the default UIFactory.
action
protected Action action
JCheckBoxMenuItem
public JCheckBoxMenuItem()
- Creates a checkboxMenuItem with no set text or icon.
JCheckBoxMenuItem
public JCheckBoxMenuItem(Icon icon)
- Creates a checkboxMenuItem with an icon.
- Parameters:
- icon - the icon of the CheckBoxMenuItem.
JCheckBoxMenuItem
public JCheckBoxMenuItem(String text)
- Creates a checkboxMenuItem with text.
- Parameters:
- text - the text of the CheckBoxMenuItem.
JCheckBoxMenuItem
public JCheckBoxMenuItem(String text,
Icon icon)
- Creates a checkboxMenuItem.
- Parameters:
- text - the text of the CheckBoxMenuItem.
- icon - the icon of the CheckBoxMenuItem.
JCheckBoxMenuItem
public JCheckBoxMenuItem(String text,
boolean b)
- Creates a checkboxMenuItem.
- Parameters:
- text - the text of the CheckBoxMenuItem.
- b - the selected state of the checkboxmenuitem
JCheckBoxMenuItem
public JCheckBoxMenuItem(String text,
Icon icon,
boolean b)
- Creates a checkboxMenuItem.
- Parameters:
- text - the text of the CheckBoxMenuItem.
- b - the selected state of the checkboxmenuitem
init
protected void init(String text,
Icon icon)
- Overrides:
- init in class JMenuItem
setUI
public void setUI(CheckBoxMenuItemUI ui)
- Sets the checkboxMenuItem's UI.
- Parameters:
- ui - the new CheckBoxMenuItemUI
- See Also:
- getUI
updateUI
public void updateUI()
- Gets a new UI object from the default UIFactory.
- Overrides:
- updateUI in class JMenuItem
getUIClassID
public String getUIClassID()
- Returns:
- "CheckBoxMenuItemUI"
- Overrides:
- getUIClassID in class JMenuItem
- See Also:
- getUIClassID, getUI
setAction
public void setAction(Action action)
- Sets the action to be involed by the JCheckBoxMenuItem
- Parameters:
- action - the Action
getState
public boolean getState()
- Returns the selected State of the JCheckBoxMenuItem.
setState
public synchronized void setState(boolean b)
- Sets the selected State of the JCheckBoxMenuItem.
getSelectedObjects
public synchronized Object[] getSelectedObjects()
- Overrides:
- getSelectedObjects in class AbstractButton
requestFocus
public void requestFocus()
- Set focus on the receiving component if isRequestFocusEnabled returns true
- Overrides:
- requestFocus in class JMenuItem
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