| java.lang.Object org.eclipse.pde.ui.templates.TemplateField org.eclipse.pde.ui.templates.TemplateOption org.eclipse.pde.ui.templates.AbstractChoiceOption
All known Subclasses: org.eclipse.pde.ui.templates.RadioChoiceOption, org.eclipse.pde.ui.templates.ComboChoiceOption,
AbstractChoiceOption | abstract public class AbstractChoiceOption extends TemplateOption (Code) | | Abstract implementation of the TemplateOption that allows users to choose a value from
the fixed set of options.
since: 2.0 |
Constructor Summary | |
public | AbstractChoiceOption(BaseOptionTemplateSection section, String name, String label, String[][] choices) Constructor for AbstractChoiceOption.
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. |
AbstractChoiceOption | public AbstractChoiceOption(BaseOptionTemplateSection section, String name, String label, String[][] choices)(Code) | | Constructor for AbstractChoiceOption.
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. |
createComposite | protected Composite createComposite(Composite parent, int span)(Code) | | |
fill | protected GridData fill(Control control, int span)(Code) | | |
getChoice | public String getChoice()(Code) | | Returns the string value of the current choice.
the current choice or null if not initialized. |
isBlocked | protected boolean isBlocked()(Code) | | |
selectChoice | protected void selectChoice(String choice)(Code) | | |
selectOptionChoice | abstract protected void selectOptionChoice(String choice)(Code) | | |
setEnabled | public void setEnabled(boolean enabled)(Code) | | Implements the superclass method by updating the enable state of the
option's widget.
|
setOptionEnabled | abstract protected void setOptionEnabled(boolean enabled)(Code) | | |
setOptionValue | abstract protected void setOptionValue(Object value)(Code) | | |
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. |
|
|