public class RadioMenuItem extends CheckMenuItem
A RadioMenuItem is somewhat similar to a CheckMenuItem, but it is shown as an empty circle (rather than an empty square) and the selected MenuItem in the group us shown with a dot inside (rather than a check mark).
However, while a CheckMenuItem can be used alone to choose between two states, a RadioMenuItem is used together in a group of other (related) RadioMenuItems to offer a choice of one of those MenuItems. Only a single MenuItem in a group can the active at any one time.
CheckMenuItem.ToggledMenuItem.ActivateWidget.ButtonPressEvent, Widget.ButtonReleaseEvent, Widget.Destroy, Widget.Draw, Widget.EnterNotifyEvent, Widget.FocusInEvent, Widget.FocusOutEvent, Widget.Hide, Widget.KeyPressEvent, Widget.KeyReleaseEvent, Widget.LeaveNotifyEvent, Widget.MapEvent, Widget.MotionNotifyEvent, Widget.PopupMenu, Widget.QueryTooltip, Widget.ScrollEvent, Widget.SizeAllocate, Widget.UnmapEvent, Widget.VisibilityNotifyEvent| Constructor and Description |
|---|
RadioMenuItem(RadioGroup group,
String label)
Create a new RadioMenuItem with the given label.
|
| Modifier and Type | Method and Description |
|---|---|
RadioGroup |
getGroup()
Get the RadioMenuItemGroup that encloses this RadioMenuItem and the
others that belonging to the same mutual exclusion group.
|
connect, getActive, getInconsistent, setActive, setInconsistentconnect, getRelatedAction, getSubmenu, setAccelerator, setRelatedAction, setSubmenuadd, getChildren, remove, setBorderWidthactivate, addEvents, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, destroy, getAllocatedHeight, getAllocatedWidth, getAllocation, getCanDefault, getCanFocus, getHasFocus, getName, getParent, getPreferredHeightForWidthMinimum, getPreferredHeightForWidthNatural, getPreferredHeightMinimum, getPreferredHeightNatural, getPreferredWidthForHeightMinimum, getPreferredWidthForHeightNatural, getPreferredWidthMinimum, getPreferredWidthNatural, getRequestMode, getRequisition, getSensitive, getStyleContext, getToplevel, getWindow, grabAdd, grabDefault, grabFocus, grabRemove, hide, isSensitive, overrideBackground, overrideColor, overrideFont, queueDraw, queueDrawArea, realize, setAlignHorizontal, setAlignVertical, setCanDefault, setCanFocus, setEvents, setExpandHorizontal, setExpandVertical, setName, setSensitive, setSizeRequest, setTooltipMarkup, setTooltipText, show, showAllpublic RadioMenuItem(RadioGroup group, String label)
label - The label that will be placed near the RadioMenuItem. If the
text contains an underscore (_) it will be
taken to be the mnemonic for the Widget.public RadioGroup getGroup()