public class MenuItem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
caption
The menu item's caption.
|
boolean |
isChecked
True if this item is checked.
|
boolean |
isEnabled
True if this item is enabled, false otherwise.
|
Constructor and Description |
---|
MenuItem()
Constructs a separator menu item.
|
MenuItem(java.lang.String caption)
Constructs a menu item with the given caption.
|
MenuItem(java.lang.String caption,
boolean isChecked)
Constructs a menu item with the given caption and the given default state for the check.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isCheckable()
Returns true if this menu item is checkable.
|
public java.lang.String caption
public boolean isChecked
public boolean isEnabled
public MenuItem()
public MenuItem(java.lang.String caption)
MenuItem(String, boolean)
public MenuItem(java.lang.String caption, boolean isChecked)