Class XmlDateControlText
- 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.XmlDateControlText
-
- All Implemented Interfaces:
ECPControlSWT
@Deprecated public class XmlDateControlText extends AbstractTextControl
Deprecated.This is a XMLDateControl. It is used to display values of typeXMLGregorianCalendar
. This control only displays a date widget.- Author:
- Eugen Neufeld private Button bDate;
-
-
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 XmlDateControlText()
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 void
fillControlComposite(org.eclipse.swt.widgets.Composite composite)
Deprecated.This method must be overridden by concrete classes.protected java.lang.String
getTextVariantID()
Deprecated.The VariantId to use e.g.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.void
setEditable(boolean editable)
Deprecated.Sets the state of the widget to be either editable or not.protected java.text.DateFormat
setupFormat()
Deprecated.Sets up aDateFormat
for the currentLocale
.-
Methods inherited from class org.eclipse.emf.ecp.edit.internal.swt.controls.AbstractTextControl
createToolTip, createTooltipBinding, dispose, getControlsForTooltip, getText, getTextWidgetLayoutData, getTextWidgetStyle, 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
-
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
-
setEditable
public void setEditable(boolean editable)
Deprecated.Description copied from class:AbstractTextControl
Sets the state of the widget to be either editable or not.- Overrides:
setEditable
in classAbstractTextControl
- Parameters:
editable
- whether to set the widget editable
-
fillControlComposite
protected void fillControlComposite(org.eclipse.swt.widgets.Composite composite)
Deprecated.Description copied from class:SWTControl
This method must be overridden by concrete classes. Here the widget displaying the data is added to the composite.- Overrides:
fillControlComposite
in classAbstractTextControl
- Parameters:
composite
- theComposite
to add the widget to
-
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
-
setupFormat
protected java.text.DateFormat setupFormat()
Deprecated.Sets up aDateFormat
for the currentLocale
.- Returns:
- the date format
-
-