|
Eclipse PDE Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.pde.ui.templates.TemplateField
org.eclipse.pde.ui.templates.TemplateOption
org.eclipse.pde.ui.templates.BooleanOption
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.
Constructor Summary | |
---|---|
BooleanOption(BaseOptionTemplateSection section,
String name,
String label)
The constructor of the option. |
Method Summary | |
---|---|
void |
createControl(Composite parent,
int span)
Creates the boolean option control. |
boolean |
isSelected()
Returns the current state of the option. |
void |
setEnabled(boolean enabled)
Implementatin of the superclass method that updates the option widget with the new enabled state. |
void |
setSelected(boolean selected)
Changes the current state of the option to the provided state. |
void |
setValue(Object value)
Implementation of the superclass method that updates the option's widget with the new value. |
Methods inherited from class org.eclipse.pde.ui.templates.TemplateOption |
---|
getMessageLabel, getName, getValue, isEmpty, isEnabled, isRequired, setName, setRequired |
Methods inherited from class org.eclipse.pde.ui.templates.TemplateField |
---|
createLabel, getLabel, getSection, setLabel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BooleanOption(BaseOptionTemplateSection section, String name, String label)
section
- the parent sectionname
- the unique namelabel
- the presentable label of the optionMethod Detail |
public boolean isSelected()
public void setSelected(boolean selected)
selected
- the new state of the optionpublic void setValue(Object value)
setValue
in class TemplateOption
value
- the new option valuepublic void createControl(Composite parent, int span)
createControl
in class TemplateField
parent
- the parent composite of the option widgetspan
- the number of columns that the widget should spanpublic void setEnabled(boolean enabled)
setEnabled
in class TemplateOption
enabled
- the new enabled state.
|
Eclipse PDE Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |