| java.lang.Object org.eclipse.pde.ui.templates.TemplateField org.eclipse.pde.ui.templates.TemplateOption org.eclipse.pde.ui.templates.BooleanOption
BooleanOption | public class BooleanOption extends TemplateOption (Code) | | This implementation of the TemplateOption can be used to represent options
that are boolean choices. Option provides the appropriate visual presentation
that allows users to set the boolean value of the option.
since: 2.0 |
Method Summary | |
public void | createControl(Composite parent, int span) Creates the boolean option control. | public boolean | isSelected() Returns the current state of the option. | public void | setEnabled(boolean enabled) Implementatin of the superclass method that updates the option widget
with the new enabled state. | public void | setSelected(boolean selected) Changes the current state of the option to the provided state. | public void | setValue(Object value) Implementation of the superclass method that updates the option's widget
with the new value. |
BooleanOption | public BooleanOption(BaseOptionTemplateSection section, String name, String label)(Code) | | The constructor of the option.
Parameters: section - the parent section Parameters: name - the unique name Parameters: label - the presentable label of the option |
createControl | public void createControl(Composite parent, int span)(Code) | | Creates the boolean option control. Option reserves the right to modify
the actual widget used as long as the user can modify its boolean state.
Parameters: parent - the parent composite of the option widget Parameters: span - the number of columns that the widget should span |
isSelected | public boolean isSelected()(Code) | | Returns the current state of the option.
true of the option is selected, false otherwise. |
setEnabled | public void setEnabled(boolean enabled)(Code) | | Implementatin of the superclass method that updates the option widget
with the new enabled state.
Parameters: enabled - the new enabled state. |
setSelected | public void setSelected(boolean selected)(Code) | | Changes the current state of the option to the provided state.
Parameters: selected - the new state of the option |
setValue | public void setValue(Object value)(Code) | | Implementation of the superclass method that updates the option's widget
with the new value.
Parameters: value - the new option value |
|
|