public class RadioAction extends ToggleAction
RadioAction
is an equivalent of a Action
but used in
general to create RadioMenuItem
. It has an "active" state
which indicates whether the action has been checked or not.ToggleAction.Toggled
Action.Activate
Constructor and Description |
---|
RadioAction(RadioGroup group,
String name,
Stock stock)
Create a new RadioAction from a Stock item.
|
RadioAction(RadioGroup group,
String name,
Stock stock,
ToggleAction.Toggled handler)
Create a new RadioAction based on a Stock item, and connect a handler
to its
RadioAction.Toggled signal. |
RadioAction(RadioGroup group,
String name,
String label)
Create a new RadioAction.
|
RadioAction(RadioGroup group,
String name,
String label,
String tooltip,
Stock stock)
Create a new RadioAction, and connect a handler to its
RadioAction.Toggled signal. |
RadioAction(RadioGroup group,
String name,
String label,
ToggleAction.Toggled handler)
Create a new RadioAction, and connect a handler to its
RadioAction.Toggled signal. |
Modifier and Type | Method and Description |
---|---|
RadioGroup |
getGroup()
Get the RadioActionGroup that encloses this RadioAction and the others
that belonging to the same mutual exclusion group.
|
connect, emitToggled, getActive, getDrawAsRadio, setActive, setDrawAsRadio
connect, createMenuItem, createToolItem, emitActivate, getSensitive, getTooltip, getVisible, isSensitive, isVisible, setAccelerator, setSensitive, setTooltip, setVisible
public RadioAction(RadioGroup group, String name, Stock stock)
public RadioAction(RadioGroup group, String name, Stock stock, ToggleAction.Toggled handler)
RadioAction.Toggled
signal. Complements the
<init>(RadioGroup,
String, Stock)
constructor.public RadioAction(RadioGroup group, String name, String label)
name
- A unique name for the RadioAction.label
- The text that will be displayed in the proxy Widgets. You
usually will want to localize it to the user language.public RadioAction(RadioGroup group, String name, String label, String tooltip, Stock stock)
RadioAction.Toggled
signal.name
- A unique name for the RadioAction.label
- The text that will be displayed in the proxy Widgets. You
usually will want to localize it to the user language.tooltip
- A Tooltip or little help message for the RadioAction. Also
localized.stock
- The stock icon to display in proxy Widgets.public RadioAction(RadioGroup group, String name, String label, ToggleAction.Toggled handler)
RadioAction.Toggled
signal.name
- A unique name for the RadioAction.label
- The label that will be displayed in the proxy Widgets. You
usually will want to localize it to the user language.handler
- A handler to connect to the RadioAction.Toggled
signal. Usually will will start from here the operation
related to the Action.public RadioGroup getGroup()