Package org.eclipse.pde.ui.templates
Class ChoiceOption
- java.lang.Object
- 
- org.eclipse.pde.ui.templates.TemplateField
- 
- org.eclipse.pde.ui.templates.TemplateOption
- 
- org.eclipse.pde.ui.templates.ChoiceOption
 
 
 
- 
 @Deprecated public class ChoiceOption extends TemplateOption Deprecated.seeRadioChoiceOptionandComboChoiceOptionImplementation of the TemplateOption that allows users to choose a value from the fixed set of options.- Since:
- 2.0
 
- 
- 
Constructor SummaryConstructors Constructor Description ChoiceOption(BaseOptionTemplateSection section, String name, String label, String[][] choices)Deprecated.Constructor for ChoiceOption.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcreateControl(Composite parent, int span)Deprecated.Subclasses must implement this method to create the control of the template field.StringgetChoice()Deprecated.Returns the string value of the current choice.voidsetEnabled(boolean enabled)Deprecated.Sets the enabled state of this option.voidsetValue(Object value)Deprecated.Implements the superclass method by passing the new value to the option's widget.- 
Methods inherited from class org.eclipse.pde.ui.templates.TemplateOptiongetMessageLabel, getName, getValue, isEmpty, isEnabled, isRequired, setName, setRequired
 - 
Methods inherited from class org.eclipse.pde.ui.templates.TemplateFieldcreateLabel, getLabel, getSection, setLabel
 
- 
 
- 
- 
- 
Constructor Detail- 
ChoiceOptionpublic ChoiceOption(BaseOptionTemplateSection section, String name, String label, String[][] choices) Deprecated.Constructor for ChoiceOption.- Parameters:
- section- the parent section.
- name- the unique name
- label- the presentable label
- choices- 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.
 
 
- 
 - 
Method Detail- 
createControlpublic void createControl(Composite parent, int span) Deprecated.Description copied from class:TemplateFieldSubclasses must implement this method to create the control of the template field.- Specified by:
- createControlin class- TemplateField
- Parameters:
- parent- the parent composite the control should be created in
- span- number of columns that the control should span
 
 - 
getChoicepublic String getChoice() Deprecated.Returns the string value of the current choice.- Returns:
- the current choice or null if not initialized.
 
 - 
setValuepublic void setValue(Object value) Deprecated.Implements the superclass method by passing the new value to the option's widget.- Overrides:
- setValuein class- TemplateOption
- Parameters:
- value- the new value.
 
 - 
setEnabledpublic void setEnabled(boolean enabled) Deprecated.Description copied from class:TemplateOptionSets the enabled state of this option. The action presentation of the enabled state depends on the implementing option.- Overrides:
- setEnabledin class- TemplateOption
- Parameters:
- enabled- the new enabled state
 
 
- 
 
-