public class EnumField extends AbstractField
changeSupportPROP_VALUE| Constructor and Description |
|---|
EnumField(FormToolkit toolkit,
Composite parent,
IFormFieldData model) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply()
Store the field value in the model.
|
Control |
createControl(FormToolkit toolkit,
Composite parent)
Create the edition control.
|
java.lang.Object |
getLocalValue() |
void |
refresh()
Refresh the value displayed by the field.
|
void |
setLabelProvider(IBaseLabelProvider labelProvider) |
addPropertyChangeListener, fireValueChanged, getComposite, getControl, getHelpText, getLabel, getModel, getValidationError, isVertical, layout, removePropertyChangeListener, setEditable, setHelpText, setModel, setVerticalpublic EnumField(FormToolkit toolkit,
Composite parent,
IFormFieldData model)
public void apply()
IFieldMay throw a runtime exception if the field value is not valid.
apply in interface IFieldapply in class AbstractFieldpublic Control createControl(FormToolkit toolkit,
Composite parent)
createControl in class AbstractFieldtoolkit - the FormToolkitparent - the parent compositepublic java.lang.Object getLocalValue()
public void refresh()
The field will typically query its IFormFieldData model and refresh its contents.
public void setLabelProvider(IBaseLabelProvider labelProvider)