public class MultipleElementField extends AbstractField
changeSupportPROP_VALUE| Constructor and Description |
|---|
MultipleElementField(IModuleContext moduleContext,
FormToolkit toolkit,
Composite parent,
IFormFieldData model) |
MultipleElementField(IModuleContext moduleContext,
FormToolkit toolkit,
Composite parent,
IFormFieldData model,
java.util.List<java.lang.Class<? extends MObject>> allowedMetaclasses) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply()
Store the field value in the model.
|
Control |
createControl(FormToolkit tk,
Composite p)
Create the edition control.
|
protected void |
enterEdition() |
void |
refresh()
Refresh the value displayed by the field.
|
void |
setEditable(boolean onoff) |
void |
setLabelProvider(ILabelProvider labelProvider)
Set the label provider used by the field to build its representation.
|
addPropertyChangeListener, fireValueChanged, getComposite, getControl, getHelpText, getLabel, getModel, getValidationError, isVertical, layout, removePropertyChangeListener, setHelpText, setModel, setVerticalpublic MultipleElementField(IModuleContext moduleContext, FormToolkit toolkit, Composite parent, IFormFieldData model)
public MultipleElementField(IModuleContext moduleContext, FormToolkit toolkit, Composite parent, IFormFieldData model, java.util.List<java.lang.Class<? extends MObject>> allowedMetaclasses)
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 tk,
Composite p)
AbstractFieldcreateControl in class AbstractFieldtk - the FormToolkitp - the parent compositepublic void refresh()
IField
The field will typically query its IFormFieldData model and refresh its contents.
public void setEditable(boolean onoff)
setEditable in interface IFieldsetEditable in class AbstractFieldpublic void setLabelProvider(ILabelProvider labelProvider)
protected void enterEdition()