Class EEnumControl
- 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.EEnumControl
-
- All Implemented Interfaces:
ECPControlSWT
@Deprecated public class EEnumControl extends SingleControl
Deprecated.This class defines a Control which is used for displayingEStructuralFeature
s which have a enum value.- Author:
- Eugen Neufeld
-
-
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 EEnumControl()
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
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.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 isEditable)
Deprecated.Sets the state of the widget to be either editable or not.protected void
updateValidationColor(org.eclipse.swt.graphics.Color color)
Deprecated.Allows controls to supply a second visual effect for controls on validation.-
Methods inherited from class org.eclipse.emf.ecp.edit.internal.swt.controls.SingleControl
addControlDecoration, dispose, 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
-
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.- Specified by:
fillControlComposite
in classSWTControl
- Parameters:
composite
- theComposite
to add the widget to
-
setEditable
public void setEditable(boolean isEditable)
Deprecated.Sets the state of the widget to be either editable or not.- Overrides:
setEditable
in classECPAbstractControl
- Parameters:
isEditable
- whether to set the widget editable
-
bindValue
public org.eclipse.core.databinding.Binding bindValue()
Deprecated.Description copied from class:SWTControl
Triggers the control to perform the databinding.- Specified by:
bindValue
in classSWTControl
- Returns:
- The
Binding
-
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
-
getControlsForTooltip
protected org.eclipse.swt.widgets.Control[] getControlsForTooltip()
Deprecated.Description copied from class:SWTControl
Method for retrieving all controls which should have the help text as their tooltip.- Specified by:
getControlsForTooltip
in classSWTControl
- Returns:
- the array of the controls to set a tooltip to
-
updateValidationColor
protected void updateValidationColor(org.eclipse.swt.graphics.Color color)
Deprecated.Allows controls to supply a second visual effect for controls on validation. The color to set is provided as the parameter.- Overrides:
updateValidationColor
in classSingleControl
- Parameters:
color
- the color to set, null if the default background color should be set- See Also:
SingleControl.updateValidationColor(org.eclipse.swt.graphics.Color)
-
-