Summary
Keeps track of a group of menu items (specifically,
MenuRadioItem<T>)
which are intended to act like a radio-button group, and where each menu item is associated with
a specific value, usually from an enum type.
Generic type parameters
T | The type of the value associated with each menu item. |
Constructors
Instance methods
void | | Adds a menu item to the group. |
MenuRadioItem<T> | | Returns the menu item associated with the specified value, or null
if no menu item in the group is associated with the specified value. |
void | | Causes the menu item with the specified value to become the selected one.
If no menu item in the group is associated with the specified value, nothing happens.
If more than one menu item in the group is associated with the same value, the
behaviour is undefined. |
Instance properties
MenuRadioItem<T>[] | | Returns an array of all the menu items contained in this group. |
T | | Returns the value associated with the currently-selected menu item. |
Events
EventHandler | | Triggers whenever a different menu item becomes the selected one. |