| java.lang.Object org.eclipse.ui.internal.RadioMenu
RadioMenu | public class RadioMenu implements IChangeListener(Code) | | Represents a group of radio buttons in a menu. Each menu item
is mapped onto a particular value. The RadioMenu reports its state
using the attached Model object. That is, Model.getState() will
return the value of the currently selected radio button and Model.setState(value)
will select the radio button associated with the given value.
|
Constructor Summary | |
public | RadioMenu(Menu parent, Model newData) Creates a set of radio menu items on the given menu. |
selectionAdapter | SelectionAdapter selectionAdapter(Code) | | |
RadioMenu | public RadioMenu(Menu parent, Model newData)(Code) | | Creates a set of radio menu items on the given menu.
Parameters: parent - menu that will contain the menu items Parameters: newData - the model that will store the value of the currently selected item |
addMenuItem | public void addMenuItem(String text, Object value)(Code) | | Creates a new menu item with the given text and value. When
the item is selected, the state of the model will change to
match the given value.
Parameters: text - Parameters: value - |
dispose | public void dispose()(Code) | | Disposes all menu items
|
update | public void update(boolean changed)(Code) | | |
|
|