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 org.eclipse.core.databinding.Binding |
bindValue(org.eclipse.swt.widgets.Control text,
org.eclipse.core.databinding.observable.value.IObservableValue modelValue,
org.eclipse.core.databinding.DataBindingContext dataBindingContext,
org.eclipse.core.databinding.UpdateValueStrategy targetToModel,
org.eclipse.core.databinding.UpdateValueStrategy modelToTarget)
Creates a focus out binding for this control.
|
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 boolean |
isOpenKey(org.eclipse.swt.events.KeyEvent e)
Determines, whether the popup shall be opened on a specific KeyEvent on the regular Text Control.
|
protected void |
postInit()
Use this method to initialize objects which are needed during rendering.
|
convert, createBindings, createTooltipBinding, getControlCompositeFromControl, getDefaultAlignment, getEMFFormsEditSupport, getTextFromTextField, getTextMessage, getTextVariantID, getTextWidgetStyle, getUnsetText, isUnsetButtonLeftOfControlComposite, setControlEnabled, setValidationColor, setValidationForegroundColor, useOnModifyDatabinding
createControl, getFeature, rootDomainModelChanged, withPreSetValidation
applyReadOnly, applyValidation, createControlCell, createDefaultUnsettableStyleProperty, createLabelCell, createValidationCell, dispose, getGridDescription, getLabelWidth, getUnsettableStyleProperty, isUnsettable, renderControl, setControlIdData
applyEnable, applyUnchangeableFeature, canHandleControlProcessor, createLabel, createValidationIcon, defaultHandleControlProcessor, defaultHandleControlProcessorForCell, getDataBindingContext, getEditingDomain, getEMFFormsDatabinding, getEMFFormsLabelProvider, getLabelStyleBits, getModelValue, getValidationBackgroundColor, getValidationForegroundColor, getValidationIcon, getVTViewTemplateProvider, hasLeftLabelAlignment, isUnchangeableFeature, notifyChange, render
applyValidation, applyVisible, canReveal, finalizeRendering, getControls, getDefaultFontName, ignoreEnableOnReadOnly, init, isRenderingFinished, preInit, scrollToReveal, scrollToReveal
checkRenderer, getRenderer, getReportService, getVElement, getViewModelContext, register
@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.core.databinding.Binding bindValue(org.eclipse.swt.widgets.Control text, org.eclipse.core.databinding.observable.value.IObservableValue modelValue, org.eclipse.core.databinding.DataBindingContext dataBindingContext, org.eclipse.core.databinding.UpdateValueStrategy targetToModel, org.eclipse.core.databinding.UpdateValueStrategy modelToTarget)
bindValue
in class TextControlSWTRenderer
text
- the Text
to bindmodelValue
- the IObservableValue
to binddataBindingContext
- the DataBindingContext
to usetargetToModel
- the UpdateValueStrategy
from target to ModelmodelToTarget
- the UpdateValueStrategy
from model to targetBinding
TextControlSWTRenderer.bindValue(org.eclipse.swt.widgets.Control,
org.eclipse.core.databinding.observable.value.IObservableValue,
org.eclipse.core.databinding.DataBindingContext, org.eclipse.core.databinding.UpdateValueStrategy,
org.eclipse.core.databinding.UpdateValueStrategy)
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 boolean isOpenKey(org.eclipse.swt.events.KeyEvent e)
e
- the KeyEvent
on the regular Text
protected 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 © 2019. All rights reserved.