public class BooleanField extends AbstractField
changeSupport
PROP_VALUE
Constructor and Description |
---|
BooleanField(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.
|
void |
refresh()
Refresh the value displayed by the field.
|
addPropertyChangeListener, fireValueChanged, getComposite, getControl, getHelpText, getLabel, getModel, getValidationError, isVertical, layout, removePropertyChangeListener, setEditable, setHelpText, setModel, setVertical
public BooleanField(FormToolkit toolkit, Composite parent, IFormFieldData model)
public void apply()
IField
May throw a runtime exception if the field value is not valid.
apply
in interface IField
apply
in class AbstractField
public Control createControl(FormToolkit toolkit, Composite parent)
createControl
in class AbstractField
toolkit
- the FormToolkit
parent
- the parent compositepublic void refresh()
The field will typically query its IFormFieldData
model and refresh its contents.