@Deprecated public abstract class AbstractTextControl extends SingleControl
Text
widget.Modifier and Type | Class and Description |
---|---|
protected class |
AbstractTextControl.ModelToTargetUpdateStrategy
Deprecated.
|
protected class |
AbstractTextControl.TargetToModelUpdateStrategy
Deprecated.
|
CUSTOM_VARIANT, VALIDATION_ERROR_ICON, validationLabel
Constructor and Description |
---|
AbstractTextControl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.core.databinding.Binding |
bindValue()
Deprecated.
Triggers the control to perform the databinding.
|
protected org.eclipse.swt.widgets.ToolTip |
createToolTip(int style,
String text,
String message)
Deprecated.
Creates a
ToolTip . |
protected org.eclipse.core.databinding.Binding |
createTooltipBinding(org.eclipse.core.databinding.UpdateValueStrategy targetToModel,
org.eclipse.core.databinding.UpdateValueStrategy modelToTarget)
Deprecated.
Creates a tooltip binding for this control.
|
protected void |
customizeText(org.eclipse.swt.widgets.Text text)
Deprecated.
This method allows to set custom values to the text field, e.g.
|
void |
dispose()
Deprecated.
Disposes the control.
|
protected void |
fillControlComposite(org.eclipse.swt.widgets.Composite composite)
Deprecated.
This method must be overridden by concrete classes.
|
protected org.eclipse.swt.widgets.Control[] |
getControlsForTooltip()
Deprecated.
Method for retrieving all controls which should have the help text as their tooltip.
|
org.eclipse.swt.widgets.Text |
getText()
Deprecated.
|
protected abstract String |
getTextVariantID()
Deprecated.
The VariantId to use e.g.
|
protected org.eclipse.swt.layout.GridData |
getTextWidgetLayoutData()
Deprecated.
The LayoutData for the created
Text widget. |
protected int |
getTextWidgetStyle()
Deprecated.
The style to apply to the text widget.
|
void |
setEditable(boolean isEditable)
Deprecated.
Sets the state of the widget to be either editable or not.
|
protected void |
setUnvalidatedString(String string)
Deprecated.
Sets the content of the SWT text control to the given string without calling
#validateString(String) . |
protected void |
updateValidationColor(org.eclipse.swt.graphics.Color color)
Deprecated.
Allows controls to supply a second visual effect for controls on validation.
|
addControlDecoration, handleValidation, resetValidation, showLabel
backwardCompatibleHandleValidation, createButtonForAction, createContentControl, createControl, createControls, getCustomUnsetButton, getHelpText, getModelValue, getSystemColor, getUnsetButtonTooltip, getUnsetLabelText, getValidationBackgroundColor, getValidationIcon, isEditable, setObservableValue, showUnsetLabel
applyValidation, enabledmentChanged, getControl, getDataBindingContext, getDomainModelReference, getEditingDomain, getEditingDomain, getFirstSetting, getFirstStructuralFeature, getItemPropertyDescriptor, getLocale, getService, getViewModelContext, init, isEmbedded, postInit, setEmbedded
protected void updateValidationColor(org.eclipse.swt.graphics.Color color)
SingleControl
updateValidationColor
in class SingleControl
color
- the color to set, null if the default background color should be setprotected void fillControlComposite(org.eclipse.swt.widgets.Composite composite)
SWTControl
fillControlComposite
in class SWTControl
composite
- the Composite
to add the widget toprotected org.eclipse.swt.widgets.ToolTip createToolTip(int style, String text, String message)
ToolTip
.style
- the SWT styletext
- the textmessage
- the messageToolTip
protected void customizeText(org.eclipse.swt.widgets.Text text)
text
- the text widget to customizeprotected abstract String getTextVariantID()
protected org.eclipse.swt.layout.GridData getTextWidgetLayoutData()
Text
widget. Can be changed by the concrete classes.GridData
to applyprotected int getTextWidgetStyle()
protected org.eclipse.swt.widgets.Control[] getControlsForTooltip()
SWTControl
getControlsForTooltip
in class SWTControl
public void setEditable(boolean isEditable)
setEditable
in class ECPAbstractControl
isEditable
- whether to set the widget editablepublic org.eclipse.core.databinding.Binding bindValue()
SWTControl
bindValue
in class SWTControl
Binding
protected org.eclipse.core.databinding.Binding createTooltipBinding(org.eclipse.core.databinding.UpdateValueStrategy targetToModel, org.eclipse.core.databinding.UpdateValueStrategy modelToTarget)
targetToModel
- the UpdateValueStrategy
from target to ModelmodelToTarget
- the UpdateValueStrategy
from model to targetBinding
protected void setUnvalidatedString(String string)
#validateString(String)
.string
- the content of the SWT Text controlpublic void dispose()
SingleControl
dispose
in class SingleControl
public org.eclipse.swt.widgets.Text getText()
Copyright © 2018. All rights reserved.