public abstract class AbstractFieldFactory extends Object implements IFieldFactory
Constructor and Description |
---|
AbstractFieldFactory() |
Modifier and Type | Method and Description |
---|---|
IField |
createFormField(org.eclipse.ui.forms.widgets.FormToolkit toolkit,
org.eclipse.swt.widgets.Composite parent,
ModelElement input,
PropertyDefinition pdef)
Create a form field from a specific
PropertyDefinition . |
List<IField> |
createFormFields(org.eclipse.ui.forms.widgets.FormToolkit toolkit,
org.eclipse.swt.widgets.Composite parent,
ModelElement input,
Stereotype stereotype)
Create a form field from a specific
Stereotype . |
List<IField> |
createGenericFields(org.eclipse.ui.forms.widgets.FormToolkit toolkit,
org.eclipse.swt.widgets.Composite parent,
ModelElement input)
Build a fully generic implementation including:
the element's name
every PropertyTableDefinition defined by its stereotypes
|
IField |
createMAttributeField(org.eclipse.ui.forms.widgets.FormToolkit toolkit,
org.eclipse.swt.widgets.Composite parent,
ModelElement input,
MAttribute mAtt)
Create a form field from a specific
MAttribute . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createFieldPages, createFields
public List<IField> createGenericFields(org.eclipse.ui.forms.widgets.FormToolkit toolkit, org.eclipse.swt.widgets.Composite parent, ModelElement input)
public IField createFormField(org.eclipse.ui.forms.widgets.FormToolkit toolkit, org.eclipse.swt.widgets.Composite parent, ModelElement input, PropertyDefinition pdef)
PropertyDefinition
.parent
- a widget which will be the parent of the new field instance (cannot be null)input
- the element to build the form field for.public List<IField> createFormFields(org.eclipse.ui.forms.widgets.FormToolkit toolkit, org.eclipse.swt.widgets.Composite parent, ModelElement input, Stereotype stereotype)
Stereotype
.parent
- a widget which will be the parent of the new field instance (cannot be null)input
- the element to build the form field for.public IField createMAttributeField(org.eclipse.ui.forms.widgets.FormToolkit toolkit, org.eclipse.swt.widgets.Composite parent, ModelElement input, MAttribute mAtt)
MAttribute
.parent
- a widget which will be the parent of the new field instance (cannot be null)input
- the element to build the form field for.