Package org.dawnsci.common.widgets.radio
Class RadioGroupWidget
java.lang.Object
org.dawnsci.common.widgets.radio.RadioGroupWidget
Creates a set of Radio buttons given a list of Actions
-
Constructor Summary
ConstructorsConstructorDescriptionRadioGroupWidget(org.eclipse.swt.widgets.Widget parent) Create a set of Radio buttons given a list of Actions
The radio button text is coming from the text defined for each action, so is the ToolTipText. -
Method Summary
Modifier and TypeMethodDescriptionList<? extends org.eclipse.swt.widgets.Widget> voidsetActions(List<org.eclipse.jface.action.Action> actions) Creates a list of Actions as Menu items or Buttons given the parent Widget
The radio item text is coming from the text defined for each actionvoidsetActions(List<org.eclipse.jface.action.Action> actions, boolean repectCurrentSelections) Creates a list of Actions as Menu items or Buttons given the parent Widget
The radio item text is coming from the text defined for each actionvoidsetEnabled(boolean b)
-
Constructor Details
-
RadioGroupWidget
public RadioGroupWidget(org.eclipse.swt.widgets.Widget parent) Create a set of Radio buttons given a list of Actions
The radio button text is coming from the text defined for each action, so is the ToolTipText.- Parameters:
parent- can be a Composite or a Menu
-
-
Method Details
-
setActions
Creates a list of Actions as Menu items or Buttons given the parent Widget
The radio item text is coming from the text defined for each action- Parameters:
actions-
-
setActions
public void setActions(List<org.eclipse.jface.action.Action> actions, boolean repectCurrentSelections) Creates a list of Actions as Menu items or Buttons given the parent Widget
The radio item text is coming from the text defined for each action- Parameters:
actions-
-
getRadiosList
-
setEnabled
public void setEnabled(boolean b)
-