public abstract class TemplateField extends Object
| Constructor and Description |
|---|
TemplateField(BaseOptionTemplateSection section,
String label)
The constructor for the field.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public TemplateField(BaseOptionTemplateSection section, String label)
section - the section that owns this fieldlabel - the label of this fieldpublic 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 spanpublic 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
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.