@Deprecated public abstract class SWTControl extends ECPAbstractControl implements ECPControlSWT
ECPAbstractControl
for SWT.Modifier and Type | Field and Description |
---|---|
protected static String |
CUSTOM_VARIANT
Deprecated.
RAP theming variable to set.
|
protected static String |
VALIDATION_ERROR_ICON
Deprecated.
The icon for a validation error.
|
protected org.eclipse.swt.widgets.Label |
validationLabel
Deprecated.
The label for the validation icon.
|
Constructor and Description |
---|
SWTControl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
backwardCompatibleHandleValidation()
Deprecated.
Helper method to keep the old validation.
|
protected abstract org.eclipse.core.databinding.Binding |
bindValue()
Deprecated.
Triggers the control to perform the databinding.
|
protected org.eclipse.swt.widgets.Button |
createButtonForAction(org.eclipse.jface.action.Action action,
org.eclipse.swt.widgets.Composite composite)
Deprecated.
A helper method which creates a button for an action on a composite.
|
protected void |
createContentControl(org.eclipse.swt.widgets.Composite composite)
Deprecated.
Helper for creating the unset stacklayout and creating the control's composite.
|
org.eclipse.swt.widgets.Composite |
createControl(org.eclipse.swt.widgets.Composite parent)
Deprecated.
This method is called to render the control on a parent.
|
List<RenderingResultRow<org.eclipse.swt.widgets.Control>> |
createControls(org.eclipse.swt.widgets.Composite parent)
Deprecated.
Renders a control on the provided parent and returning a list of
RenderingResultRows . |
void |
dispose()
Deprecated.
Disposes the control.
|
protected abstract void |
fillControlComposite(org.eclipse.swt.widgets.Composite controlComposite)
Deprecated.
This method must be overridden by concrete classes.
|
protected abstract org.eclipse.swt.widgets.Control[] |
getControlsForTooltip()
Deprecated.
Method for retrieving all controls which should have the help text as their tooltip.
|
protected org.eclipse.swt.widgets.Button |
getCustomUnsetButton()
Deprecated.
The default unset button will be displayed to the right of the control's composite.
|
protected String |
getHelpText()
Deprecated.
Returns the help information.
|
protected org.eclipse.core.databinding.observable.value.IObservableValue |
getModelValue()
Deprecated.
The model value used for databinding.
|
protected org.eclipse.swt.graphics.Color |
getSystemColor(int color)
Deprecated.
Method for retrieving a
Color based on the predefined SWT id. |
protected abstract String |
getUnsetButtonTooltip()
Deprecated.
Returns the string for the unset button tooltip.
|
protected abstract String |
getUnsetLabelText()
Deprecated.
Returns the string for the unset label.
|
protected org.eclipse.swt.graphics.Color |
getValidationBackgroundColor(int severity)
Deprecated.
Returns the background color for a control with the given validation severity.
|
protected org.eclipse.swt.graphics.Image |
getValidationIcon(int severity)
Deprecated.
Returns the validation icon matching the given severity.
|
protected boolean |
isEditable()
Deprecated.
|
void |
setObservableValue(org.eclipse.core.databinding.observable.value.IObservableValue modelValue)
Deprecated.
Allows the user to set the
IObservableValue to use in the control during databinding. |
protected void |
showUnsetLabel()
Deprecated.
|
applyValidation, enabledmentChanged, getControl, getDataBindingContext, getDomainModelReference, getEditingDomain, getEditingDomain, getFirstSetting, getFirstStructuralFeature, getItemPropertyDescriptor, getLocale, getService, getViewModelContext, handleValidation, init, isEmbedded, postInit, resetValidation, setEditable, setEmbedded, showLabel
protected static final String CUSTOM_VARIANT
protected static final String VALIDATION_ERROR_ICON
protected org.eclipse.swt.widgets.Label validationLabel
public List<RenderingResultRow<org.eclipse.swt.widgets.Control>> createControls(org.eclipse.swt.widgets.Composite parent)
RenderingResultRows
.createControls
in interface ECPControlSWT
parent
- the Composite
to render ontoRenderingResultRows
ECPControlSWT.createControls(org.eclipse.swt.widgets.Composite)
public org.eclipse.swt.widgets.Composite createControl(org.eclipse.swt.widgets.Composite parent)
parent
- the Composite
which is the parentComposite
protected abstract org.eclipse.swt.widgets.Control[] getControlsForTooltip()
protected void createContentControl(org.eclipse.swt.widgets.Composite composite)
composite
- the parent Composite
to create the control ontoprotected void showUnsetLabel()
protected abstract void fillControlComposite(org.eclipse.swt.widgets.Composite controlComposite)
controlComposite
- the Composite
to add the widget toprotected org.eclipse.swt.widgets.Button getCustomUnsetButton()
protected org.eclipse.core.databinding.observable.value.IObservableValue getModelValue()
IObservableValue
public void setObservableValue(org.eclipse.core.databinding.observable.value.IObservableValue modelValue)
IObservableValue
to use in the control during databinding.modelValue
- the set IObservableValue
protected org.eclipse.swt.widgets.Button createButtonForAction(org.eclipse.jface.action.Action action, org.eclipse.swt.widgets.Composite composite)
action
- the action to create a button forcomposite
- the composite to create the button ontoprotected abstract org.eclipse.core.databinding.Binding bindValue()
Binding
protected String getHelpText()
protected org.eclipse.swt.graphics.Image getValidationIcon(int severity)
severity
- the severity of the Diagnostic
null
when no icon is to be displayedprotected org.eclipse.swt.graphics.Color getValidationBackgroundColor(int severity)
severity
- severity the severity of the Diagnostic
protected abstract String getUnsetLabelText()
protected abstract String getUnsetButtonTooltip()
protected final org.eclipse.swt.graphics.Color getSystemColor(int color)
Color
based on the predefined SWT id.color
- the SWT id of the color@Deprecated protected boolean isEditable()
IItemPropertyDescriptor.canSetProperty(Object)
returns true, false otherwisepublic void dispose()
ECPAbstractControl
dispose
in class ECPAbstractControl
protected void backwardCompatibleHandleValidation()
backwardCompatibleHandleValidation
in class ECPAbstractControl
Copyright © 2018. All rights reserved.