public class RadioChoiceOption extends AbstractChoiceOption
fChoices
Constructor and Description |
---|
RadioChoiceOption(BaseOptionTemplateSection section,
String name,
String label,
String[][] choices)
Constructor for RadioChoiceOption.
|
Modifier and Type | Method and Description |
---|---|
void |
createControl(Composite parent,
int span)
Subclasses must implement this method to create the control of the
template field.
|
protected void |
selectOptionChoice(String choice) |
protected void |
setOptionEnabled(boolean enabled) |
protected void |
setOptionValue(Object value) |
createComposite, fill, getChoice, isBlocked, selectChoice, setEnabled, setValue, setValue
getMessageLabel, getName, getValue, isEmpty, isEnabled, isRequired, setName, setRequired
createLabel, getLabel, getSection, setLabel
public RadioChoiceOption(BaseOptionTemplateSection section, String name, String label, String[][] choices)
section
- the parent section.name
- the unique namelabel
- the presentable labelchoices
- the list of choices from which the value can be chosen. This
list must be of size 2.
Each array entry should be an array of size 2, where position 0
will be interpeted as the choice unique name, and position 1
as the choice presentable label.public void createControl(Composite parent, int span)
TemplateField
createControl
in class TemplateField
parent
- the parent composite the control should be created inspan
- number of columns that the control should spanprotected void setOptionValue(Object value)
setOptionValue
in class AbstractChoiceOption
protected void setOptionEnabled(boolean enabled)
setOptionEnabled
in class AbstractChoiceOption
protected void selectOptionChoice(String choice)
selectOptionChoice
in class AbstractChoiceOption
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.