public class NoteField extends AbstractField
IField meant to edit Notes.
Works with NoteFieldData as data model.
According to the note's type, displays an HtmlComposer or a simple Text.
changeSupportPROP_VALUE| Constructor and Description |
|---|
NoteField(FormToolkit toolkit,
Composite parent,
NoteFieldData 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, setVerticalpublic NoteField(FormToolkit toolkit,
Composite parent,
NoteFieldData 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)
AbstractFieldcreateControl in class AbstractFieldtoolkit - the FormToolkitparent - the parent compositepublic void refresh()
IField
The field will typically query its IFormFieldData model and refresh its contents.