|
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.StringOption
This template option can be used to collect string option from the user in the template section wizard page.
Constructor Summary | |
---|---|
StringOption(BaseOptionTemplateSection section,
String name,
String label)
The constructor. |
Method Summary | |
---|---|
void |
createControl(Composite parent,
int span)
Creates the string option control. |
String |
getText()
A utility version of the getValue() method that converts the current value into the String object. |
boolean |
isEmpty()
A string option is empty if its text field contains no text. |
void |
setEnabled(boolean enabled)
Implements the superclass method by passing the enabled state to the option's widget. |
void |
setText(String newText)
A utility version of the setValue method that accepts String objects. |
void |
setValue(Object value)
Implements the superclass method by passing the string value of the new value to the widget |
Methods inherited from class org.eclipse.pde.ui.templates.TemplateOption |
---|
getMessageLabel, getName, getValue, 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 StringOption(BaseOptionTemplateSection section, String name, String label)
section
- the parent sectionname
- the unique option namelabel
- the translatable label of the optionMethod Detail |
public String getText()
public void setText(String newText)
newText
- the new text value of the optionsetValue(Object)
public void setValue(Object value)
setValue
in class TemplateOption
value
- the new option valuepublic void createControl(Composite parent, int span)
createControl
in class TemplateField
parent
- parent composite of the string option widgetspan
- the number of columns that the widget should spanpublic boolean isEmpty()
isEmpty
in class TemplateOption
public void setEnabled(boolean enabled)
setEnabled
in class TemplateOption
enabled
-
|
Eclipse PDE Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |