| java.lang.Object org.eclipse.pde.ui.templates.TemplateField
All known Subclasses: org.eclipse.pde.ui.templates.TemplateOption,
TemplateField | abstract public class TemplateField (Code) | | 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.
since: 2.0 |
Method Summary | |
abstract public 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. | public String | getLabel() Returns the field label. | public BaseOptionTemplateSection | getSection() Returns the template section that owns this option field. | public void | setLabel(String label) Changes the label of this field. |
TemplateField | public TemplateField(BaseOptionTemplateSection section, String label)(Code) | | The constructor for the field.
Parameters: section - the section that owns this field Parameters: label - the label of this field |
createControl | abstract public void createControl(Composite parent, int span)(Code) | | Subclasses must implement this method to create the control of the
template field.
Parameters: parent - the parent composite the control should be created in Parameters: span - number of columns that the control should span |
createLabel | protected Label createLabel(Composite parent, int span)(Code) | | Factory method that creates the label in the provided parent.
Parameters: parent - the parent composite to create the label in Parameters: span - number of columns that the label should span the newly created Label widget. |
getLabel | public String getLabel()(Code) | | Returns the field label.
field label |
setLabel | public void setLabel(String label)(Code) | | Changes the label of this field.
Parameters: label - the new label of this field. |
|
|