public class RichTextControlSWTRenderer extends TextControlSWTRenderer
TextControlSWTRenderer.ModelToTargetUpdateStrategy, TextControlSWTRenderer.TargetToModelUpdateStrategy
CUSTOM_VARIANT
Constructor and Description |
---|
RichTextControlSWTRenderer(VControl vElement,
ViewModelContext viewContext,
ReportService reportService,
EMFFormsDatabinding emfFormsDatabinding,
EMFFormsLabelProvider emfFormsLabelProvider,
VTViewTemplateProvider vtViewTemplateProvider,
EMFFormsEditSupport emfFormsEditSupport)
Constructs a new
RichTextControlSWTRenderer . |
Modifier and Type | Method and Description |
---|---|
protected PopupWindow |
createPopupWindow()
creates the popup window.
|
protected org.eclipse.swt.widgets.Control |
createSWTControl(org.eclipse.swt.widgets.Composite parent)
Creates the Control.
|
protected int |
getMaxTextHeight()
The maximum height in pixels for the text control.
|
protected int |
getMaxVisibleLines()
The maximum number of visible lines in the text control.
|
protected int |
getMinTextHeight()
The minimum height in pixels for the text control.
|
protected int |
getMinVisibleLines()
The minimum number of visible lines in the text control.
|
protected int |
getPreferrredPopupHeight()
Specifies the preferred size of the popup window.
|
protected int |
getTextHeightHint()
The preferred height in pixels for the text control.
|
protected void |
postInit()
Use this method to initialize objects which are needed during rendering.
|
bindValue, createBindings, createTooltipBinding, getDefaultAlignment, getEMFFormsEditSupport, getTextMessage, getTextVariantID, getTextWidgetStyle, getUnsetText, setControlEnabled, setValidationColor, setValidationForegroundColor, useOnModifyDatabinding
createControl, rootDomainModelChanged
applyValidation, createControlCell, createLabelCell, createValidationCell, dispose, getGridDescription, isUnsettable, renderControl, setControlIdData
applyEnable, canHandleControlProcessor, createLabel, createValidationIcon, defaultHandleControlProcessor, defaultHandleControlProcessorForCell, getDataBindingContext, getEditingDomain, getEMFFormsDatabinding, getEMFFormsLabelProvider, getModelValue, getValidationBackgroundColor, getValidationForegroundColor, getValidationIcon, getVTViewTemplateProvider, hasLeftLabelAlignment, notifyChange, render
applyReadOnly, applyVisible, finalizeRendering, getControls, getDefaultFontName, init, preInit
checkRenderer, getReportService, getVElement, getViewModelContext
@Inject public RichTextControlSWTRenderer(VControl vElement, ViewModelContext viewContext, ReportService reportService, EMFFormsDatabinding emfFormsDatabinding, EMFFormsLabelProvider emfFormsLabelProvider, VTViewTemplateProvider vtViewTemplateProvider, EMFFormsEditSupport emfFormsEditSupport)
RichTextControlSWTRenderer
.vElement
- the view model element to be renderedviewContext
- the view contextreportService
- The ReportService
emfFormsDatabinding
- The EMFFormsDatabinding
emfFormsLabelProvider
- The EMFFormsLabelProvider
vtViewTemplateProvider
- The VTViewTemplateProvider
emfFormsEditSupport
- The EMFFormsEditSupport
protected int getPreferrredPopupHeight()
protected PopupWindow createPopupWindow()
PopupWindow
protected org.eclipse.swt.widgets.Control createSWTControl(org.eclipse.swt.widgets.Composite parent)
SimpleControlSWTControlSWTRenderer
createSWTControl
in class TextControlSWTRenderer
parent
- the Composite
to use as a parentprotected void postInit()
postInit
in class AbstractControlSWTRenderer<VControl>
AbstractControlSWTRenderer.postInit()
protected int getTextHeightHint()
GridData.heightHint
protected int getMaxTextHeight()
protected int getMinTextHeight()
protected int getMinVisibleLines()
protected int getMaxVisibleLines()
Copyright © 2016. All rights reserved.