| java.lang.Object org.eclipse.pde.ui.templates.TemplateField org.eclipse.pde.ui.templates.TemplateOption org.eclipse.pde.ui.templates.ChoiceOption
Constructor Summary | |
public | ChoiceOption(BaseOptionTemplateSection section, String name, String label, String[][] choices) Constructor for ChoiceOption.
Parameters: section - the parent section. Parameters: name - the unique name Parameters: label - the presentable label Parameters: choices - the list of choices from which the value can be chosen. |
Method Summary | |
public void | createControl(Composite parent, int span) | public String | getChoice() Returns the string value of the current choice. | public void | setEnabled(boolean enabled) Implements the superclass method by updating the enable state of the
option's widget. | public void | setValue(Object value) Implements the superclass method by passing the new value to the option's
widget. |
ChoiceOption | public ChoiceOption(BaseOptionTemplateSection section, String name, String label, String[][] choices)(Code) | | Constructor for ChoiceOption.
Parameters: section - the parent section. Parameters: name - the unique name Parameters: label - the presentable label Parameters: choices - the list of choices from which the value can be chosen. Eacharray entry should be an array of size 2, where position 0will be interpeted as the choice unique name, and position 1as the choice presentable label. |
createControl | public void createControl(Composite parent, int span)(Code) | | |
getChoice | public String getChoice()(Code) | | Returns the string value of the current choice.
the current choice or null if not initialized. |
setEnabled | public void setEnabled(boolean enabled)(Code) | | Implements the superclass method by updating the enable state of the
option's widget.
|
setValue | public void setValue(Object value)(Code) | | Implements the superclass method by passing the new value to the option's
widget.
Parameters: value - the new value. |
|
|