Class StringControl
- java.lang.Object
-
- org.eclipse.emf.ecp.edit.spi.ECPAbstractControl
-
- org.eclipse.emf.ecp.edit.internal.swt.util.SWTControl
-
- org.eclipse.emf.ecp.edit.internal.swt.controls.SingleControl
-
- org.eclipse.emf.ecp.edit.internal.swt.controls.AbstractTextControl
-
- org.eclipse.emf.ecp.edit.internal.swt.controls.StringControl
-
- All Implemented Interfaces:
ECPControlSWT
@Deprecated public class StringControl extends AbstractTextControl
Deprecated.The class describing a String control.- Author:
- Eugen Neufeld
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.emf.ecp.edit.internal.swt.controls.AbstractTextControl
AbstractTextControl.ModelToTargetUpdateStrategy, AbstractTextControl.TargetToModelUpdateStrategy
-
-
Field Summary
-
Fields inherited from class org.eclipse.emf.ecp.edit.internal.swt.util.SWTControl
CUSTOM_VARIANT, VALIDATION_ERROR_ICON, validationLabel
-
-
Constructor Summary
Constructors Constructor Description StringControl()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
customizeText(org.eclipse.swt.widgets.Text text)
Deprecated.This method allows to set custom values to the text field, e.g.protected java.lang.String
getTextVariantID()
Deprecated.The VariantId to use e.g.protected org.eclipse.swt.layout.GridData
getTextWidgetLayoutData()
Deprecated.The LayoutData for the createdText
widget.protected int
getTextWidgetStyle()
Deprecated.The style to apply to the text widget.protected java.lang.String
getUnsetButtonTooltip()
Deprecated.Returns the string for the unset button tooltip.protected java.lang.String
getUnsetLabelText()
Deprecated.Returns the string for the unset label.-
Methods inherited from class org.eclipse.emf.ecp.edit.internal.swt.controls.AbstractTextControl
bindValue, createToolTip, createTooltipBinding, dispose, fillControlComposite, getControlsForTooltip, getText, setEditable, setUnvalidatedString, updateValidationColor
-
Methods inherited from class org.eclipse.emf.ecp.edit.internal.swt.controls.SingleControl
addControlDecoration, handleValidation, resetValidation, showLabel
-
Methods inherited from class org.eclipse.emf.ecp.edit.internal.swt.util.SWTControl
backwardCompatibleHandleValidation, createButtonForAction, createContentControl, createControl, createControls, getCustomUnsetButton, getHelpText, getModelValue, getSystemColor, getValidationBackgroundColor, getValidationIcon, isEditable, setObservableValue, showUnsetLabel
-
Methods inherited from class org.eclipse.emf.ecp.edit.spi.ECPAbstractControl
applyValidation, enabledmentChanged, getControl, getDataBindingContext, getDomainModelReference, getEditingDomain, getEditingDomain, getFirstSetting, getFirstStructuralFeature, getItemPropertyDescriptor, getLocale, getService, getViewModelContext, init, isEmbedded, postInit, setEmbedded
-
-
-
-
Method Detail
-
getTextWidgetLayoutData
protected org.eclipse.swt.layout.GridData getTextWidgetLayoutData()
Deprecated.The LayoutData for the createdText
widget. Can be changed by the concrete classes.- Overrides:
getTextWidgetLayoutData
in classAbstractTextControl
- Returns:
- the
GridData
to apply
-
getTextWidgetStyle
protected int getTextWidgetStyle()
Deprecated.The style to apply to the text widget. This can be changed by the concrete classes.- Overrides:
getTextWidgetStyle
in classAbstractTextControl
- Returns:
- the style to apply
-
getTextVariantID
protected java.lang.String getTextVariantID()
Deprecated.Description copied from class:AbstractTextControl
The VariantId to use e.g. for RAP- Specified by:
getTextVariantID
in classAbstractTextControl
- Returns:
- the String identifying this control
-
getUnsetLabelText
protected java.lang.String getUnsetLabelText()
Deprecated.Description copied from class:SWTControl
Returns the string for the unset label.- Specified by:
getUnsetLabelText
in classSWTControl
- Returns:
- The unset label text
-
getUnsetButtonTooltip
protected java.lang.String getUnsetButtonTooltip()
Deprecated.Description copied from class:SWTControl
Returns the string for the unset button tooltip.- Specified by:
getUnsetButtonTooltip
in classSWTControl
- Returns:
- The unset button tooltip
-
customizeText
protected void customizeText(org.eclipse.swt.widgets.Text text)
Deprecated.Description copied from class:AbstractTextControl
This method allows to set custom values to the text field, e.g. a tooltip or a validation.- Overrides:
customizeText
in classAbstractTextControl
- Parameters:
text
- the text widget to customize
-
-