|
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
The base class for all the template option fields. Template option is a single editable option that is exposed to the users in the wizard pages associated with templates. Although the field is associated with the template section, there is no 1/1 mapping between the field and the substitution value that can be used in the template files. In general, a subclass of this class can generate any SWT control in the provided composite.
Constructor Summary | |
---|---|
TemplateField(BaseOptionTemplateSection section,
String label)
The constructor for the field. |
Method Summary | |
---|---|
abstract void |
createControl(Composite parent,
int span)
Subclasses must implement this method to create the control of the template field. |
protected Label |
createLabel(Composite parent,
int span)
Factory method that creates the label in the provided parent. |
String |
getLabel()
Returns the field label. |
BaseOptionTemplateSection |
getSection()
Returns the template section that owns this option field. |
void |
setLabel(String label)
Changes the label of this field. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TemplateField(BaseOptionTemplateSection section, String label)
section
- the section that owns this fieldlabel
- the label of this fieldMethod Detail |
public String getLabel()
public void setLabel(String label)
label
- the new label of this field.public BaseOptionTemplateSection getSection()
protected Label createLabel(Composite parent, int span)
parent
- the parent composite to create the label inspan
- number of columns that the label should span
public abstract void createControl(Composite parent, int span)
parent
- the parent composite the control should be created inspan
- number of columns that the control should span
|
Eclipse PDE Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |