public class LabelSWTRenderer extends AbstractSWTRenderer<VLabel>
VLabel to a SWT Label.CUSTOM_VARIANT| Constructor and Description |
|---|
LabelSWTRenderer(VLabel vElement,
ViewModelContext viewContext,
ReportService reportService,
EMFFormsDatabinding emfFormsDatabinding,
VTViewTemplateProvider vtViewTemplateProvider)
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyStyle(org.eclipse.swt.widgets.Label label)
Applies the style defined in the StyleProperty.
|
protected void |
dispose()
Disposes all resources used by the renderer.
|
SWTGridDescription |
getGridDescription(SWTGridDescription gridDescription)
Returns the GridDescription for this Renderer.
|
protected org.eclipse.swt.widgets.Control |
renderControl(SWTGridCell cell,
org.eclipse.swt.widgets.Composite parent)
Renders the passed
VElement. |
applyEnable, applyReadOnly, applyValidation, applyValidation, applyVisible, finalizeRendering, getControls, getDefaultFontName, ignoreEnableOnReadOnly, init, postInit, preInit, render, setControlEnabledcheckRenderer, getReportService, getVElement, getViewModelContext@Inject public LabelSWTRenderer(VLabel vElement, ViewModelContext viewContext, ReportService reportService, EMFFormsDatabinding emfFormsDatabinding, VTViewTemplateProvider vtViewTemplateProvider)
vElement - the view element to be renderedviewContext - The view model contextreportService - the ReportService to useemfFormsDatabinding - the EMFFormsDatabinding to usevtViewTemplateProvider - the VTViewTemplateProvider to useprotected void dispose()
dispose in class AbstractSWTRenderer<VLabel>AbstractSWTRenderer.dispose()public SWTGridDescription getGridDescription(SWTGridDescription gridDescription)
getGridDescription in class AbstractSWTRenderer<VLabel>gridDescription - the current SWTGridDescriptionAbstractSWTRenderer.getGridDescription(SWTGridDescription)protected org.eclipse.swt.widgets.Control renderControl(SWTGridCell cell, org.eclipse.swt.widgets.Composite parent) throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
AbstractSWTRendererVElement.renderControl in class AbstractSWTRenderer<VLabel>cell - the GridCell of the control to renderparent - the Composite to render onControlNoRendererFoundException - this is thrown when a renderer cannot be foundNoPropertyDescriptorFoundExeption - this is thrown when no property descriptor can be foundprotected void applyStyle(org.eclipse.swt.widgets.Label label)
label - the Label to apply the styles ontoCopyright © 2019. All rights reserved.