Class NumericalControl
- 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.NumericalControl
-
- All Implemented Interfaces:
ECPControlSWT
@Deprecated public class NumericalControl extends AbstractTextControl
Deprecated.This class is used as a common class for all number controls.- Author:
- Eugen Neufeld, emueller
-
-
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 NumericalControl()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.eclipse.core.databinding.Binding
bindValue()
Deprecated.Triggers the control to perform the databinding.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 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
createToolTip, createTooltipBinding, dispose, fillControlComposite, getControlsForTooltip, getText, getTextWidgetLayoutData, 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
-
getTextWidgetStyle
protected int getTextWidgetStyle()
Deprecated.Description copied from class:AbstractTextControl
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
-
bindValue
public org.eclipse.core.databinding.Binding bindValue()
Deprecated.Description copied from class:SWTControl
Triggers the control to perform the databinding.- Overrides:
bindValue
in classAbstractTextControl
- Returns:
- The
Binding
-
-