public interface EMFFormsControlProcessorService extends ViewModelService
A service which should be called while controls are initially rendered.
While this service is generically supported within the AbstractSWTRenderer
, extenders of
AbstractSWTRenderer
or custom controls should call this service for each generated SWT control which relates
to a VDomainModelReference
.
Note: Since all generated controls are potentially exposed, the possibilities of this service are practically
limitless. But with power comes great responsibility: Too liberal modifications of the given Control
s can
lead to undefined and unwanted behavior, including unresponsive controls, misaligned layouts or even cancellation of
the whole rendering process.
Modifier and Type | Method and Description |
---|---|
void |
process(org.eclipse.swt.widgets.Control control,
Collection<ReferenceObjectPair> references)
Process the given
control which relates to the given references . |
void |
process(org.eclipse.swt.widgets.Control control,
VControl vControl,
ViewModelContext controlViewModelContext)
Process the given
control rendered by the given vControl . |
dispose, getPriority, instantiate
void process(org.eclipse.swt.widgets.Control control, VControl vControl, ViewModelContext controlViewModelContext)
control
rendered by the given vControl
.control
- The Control
which will be processed by this service.vControl
- The VControl
responsible for the given control
.controlViewModelContext
- The ViewModelContext
of the control.void process(org.eclipse.swt.widgets.Control control, Collection<ReferenceObjectPair> references)
control
which relates to the given references
.control
- The Control
which will be processed by this service.references
- The VDomainModelReference
s with their
corresponding context EObject
s which relate to the given
control
.Copyright © 2018. All rights reserved.