RadioChoiceOption and ComboChoiceOption@Deprecated public class ChoiceOption extends TemplateOption
| Constructor and Description |
|---|
ChoiceOption(BaseOptionTemplateSection section,
String name,
String label,
String[][] choices)
Deprecated.
Constructor for ChoiceOption.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createControl(Composite parent,
int span)
Deprecated.
Subclasses must implement this method to create the control of the
template field.
|
String |
getChoice()
Deprecated.
Returns the string value of the current choice.
|
void |
setEnabled(boolean enabled)
Deprecated.
Sets the enabled state of this option.
|
void |
setValue(Object value)
Deprecated.
Implements the superclass method by passing the new value to the option's
widget.
|
getMessageLabel, getName, getValue, isEmpty, isEnabled, isRequired, setName, setRequiredcreateLabel, getLabel, getSection, setLabelpublic ChoiceOption(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. 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)
TemplateFieldcreateControl in class TemplateFieldparent - the parent composite the control should be created inspan - number of columns that the control should spanpublic String getChoice()
public void setValue(Object value)
setValue in class TemplateOptionvalue - the new value.public void setEnabled(boolean enabled)
TemplateOptionsetEnabled in class TemplateOptionenabled - the new enabled state
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.