public class CustomControlSWTRenderer extends AbstractSWTRenderer<VCustomControl>
CUSTOM_VARIANT
Constructor and Description |
---|
CustomControlSWTRenderer(VCustomControl vElement,
ViewModelContext viewContext,
ReportService reportService)
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyEnable()
Allows implementers to set a control to enabled.
|
protected void |
applyReadOnly()
Marks a controls as readonly.
|
protected void |
applyValidation()
Allows implementers to display the validation state of the control.
|
protected void |
applyVisible()
Allows implementers to check and set the visibility on the whole result row.
|
protected boolean |
canHandleControlProcessor()
Indicates whether the
ECPAbstractCustomControlSWT can handle a possibly existing
EMFFormsControlProcessorService
itself. |
protected void |
defaultHandleControlProcessor(org.eclipse.swt.widgets.Control control)
Calls a possibly existing
EMFFormsControlProcessorService for the given control . |
protected void |
dispose()
Disposes all resources used by the renderer.
|
SWTGridDescription |
getGridDescription(SWTGridDescription gridDescription)
Returns the GridDescription for this Renderer.
|
protected ECPAbstractCustomControlSWT |
loadCustomControl(VCustomControl customControl)
Loads and returns the
ECPAbstractCustomControlSWT that is referenced by the VCustomControl . |
protected void |
preInit()
Use this method to initialize objects which are needed already before rendering.
|
org.eclipse.swt.widgets.Control |
render(SWTGridCell cell,
org.eclipse.swt.widgets.Composite parent)
Renders the passed
VElement . |
protected org.eclipse.swt.widgets.Control |
renderControl(SWTGridCell cell,
org.eclipse.swt.widgets.Composite parent)
Renders the passed
VElement . |
applyValidation, canReveal, finalizeRendering, getControls, getDefaultFontName, ignoreEnableOnReadOnly, init, isRenderingFinished, postInit, scrollToReveal, scrollToReveal, setControlEnabled
checkRenderer, getRenderer, getReportService, getVElement, getViewModelContext, register
public CustomControlSWTRenderer(VCustomControl vElement, ViewModelContext viewContext, ReportService reportService)
vElement
- the view element to be renderedviewContext
- The view model contextreportService
- the ReportService to useprotected void preInit()
preInit
in class AbstractSWTRenderer<VCustomControl>
AbstractSWTRenderer.preInit()
protected ECPAbstractCustomControlSWT loadCustomControl(VCustomControl customControl)
ECPAbstractCustomControlSWT
that is referenced by the VCustomControl
.customControl
- the custom control view modelprotected void dispose()
dispose
in class AbstractSWTRenderer<VCustomControl>
AbstractSWTRenderer.dispose()
public SWTGridDescription getGridDescription(SWTGridDescription gridDescription)
getGridDescription
in class AbstractSWTRenderer<VCustomControl>
gridDescription
- the current SWTGridDescription
AbstractSWTRenderer.getGridDescription(SWTGridDescription)
public org.eclipse.swt.widgets.Control render(SWTGridCell cell, org.eclipse.swt.widgets.Composite parent) throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
VElement
.render
in class AbstractSWTRenderer<VCustomControl>
cell
- the SWTGridCell
of the control to renderparent
- the Composite
to render onControl
NoRendererFoundException
- this is thrown when a renderer cannot be foundNoPropertyDescriptorFoundExeption
- this is thrown when no property descriptor can be foundAbstractSWTRenderer.render(org.eclipse.emfforms.spi.swt.core.layout.SWTGridCell,
org.eclipse.swt.widgets.Composite)
protected org.eclipse.swt.widgets.Control renderControl(SWTGridCell cell, org.eclipse.swt.widgets.Composite parent) throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
VElement
.renderControl
in class AbstractSWTRenderer<VCustomControl>
cell
- the GridCell
of the control to renderparent
- the Composite
to render onControl
NoRendererFoundException
- this is thrown when a renderer cannot be foundNoPropertyDescriptorFoundExeption
- this is thrown when no property descriptor can be foundAbstractSWTRenderer.renderControl(org.eclipse.emfforms.spi.swt.core.layout.SWTGridCell,
org.eclipse.swt.widgets.Composite)
protected boolean canHandleControlProcessor()
ECPAbstractCustomControlSWT
can handle a possibly existing
EMFFormsControlProcessorService
itself.true
if the ECPAbstractCustomControlSWT
can handle a possibly existing
EMFFormsControlProcessorService
itself, false
otherwise.protected void defaultHandleControlProcessor(org.eclipse.swt.widgets.Control control)
EMFFormsControlProcessorService
for the given control
.control
- The Control
which is to be processed by the EMFFormsControlProcessorService
.protected void applyReadOnly()
AbstractSWTRenderer
applyReadOnly
in class AbstractSWTRenderer<VCustomControl>
protected void applyEnable()
AbstractSWTRenderer
applyEnable
in class AbstractSWTRenderer<VCustomControl>
protected void applyVisible()
AbstractSWTRenderer
applyVisible
in class AbstractSWTRenderer<VCustomControl>
protected void applyValidation()
applyValidation
in class AbstractSWTRenderer<VCustomControl>
Copyright © 2019. All rights reserved.