@Deprecated public class TableControl extends SWTControl
Modifier and Type | Class and Description |
---|---|
class |
TableControl.ECPCellLabelProvider
Deprecated.
ECP specficic cell label provider that does also implement
IColorProvider in
order to correctly. |
CUSTOM_VARIANT, VALIDATION_ERROR_ICON, validationLabel
Constructor and Description |
---|
TableControl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addRow(org.eclipse.emf.ecore.EClass clazz)
Deprecated.
This method is called to add a new entry in the domain model and thus to create a new row in the table.
|
protected void |
applyValidation(VDiagnostic diagnostic)
Deprecated.
Override this method in order to handle validation.
|
protected org.eclipse.core.databinding.Binding |
bindValue()
Deprecated.
Triggers the control to perform the databinding.
|
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 . |
protected void |
deleteRows(List<org.eclipse.emf.ecore.EObject> deletionList)
Deprecated.
This is called by
deleteRowUserConfirmDialog(List) after the user confirmed to delete the selected
elements. |
protected void |
deleteRowUserConfirmDialog(List<org.eclipse.emf.ecore.EObject> deletionList)
Deprecated.
This method shows a user confirmation dialog when the user attempts to delete a row in the table.
|
void |
dispose()
Deprecated.
Disposes the control.
|
protected void |
fillControlComposite(org.eclipse.swt.widgets.Composite parent)
Deprecated.
This method must be overridden by concrete classes.
|
protected String |
getCellTooltipMessage(VDiagnostic vDiagnostic)
Deprecated.
Returns the message of the validation tool tip shown in the cell.
|
protected 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 |
getRowTooltipMessage(VDiagnostic vDiagnostic)
Deprecated.
Returns the message of the validation tool tip shown in the row.
|
protected String |
getTableTooltipMessage(org.eclipse.emf.common.util.Diagnostic diagnostic)
Deprecated.
Returns the message of the validation tool tip shown in the table header.
|
protected String |
getUnsetButtonTooltip()
Deprecated.
Returns the string for the unset button tooltip.
|
protected String |
getUnsetLabelText()
Deprecated.
Returns the string for the unset label.
|
void |
setEditable(boolean isEditable)
Deprecated.
|
void |
setTableControlConfiguration(TableControlConfiguration tableControlConfiguration)
Deprecated.
|
boolean |
showLabel()
Deprecated.
|
backwardCompatibleHandleValidation, createButtonForAction, createContentControl, getHelpText, getModelValue, getSystemColor, getValidationBackgroundColor, getValidationIcon, isEditable, setObservableValue, showUnsetLabel
enabledmentChanged, getControl, getDataBindingContext, getDomainModelReference, getEditingDomain, getEditingDomain, getFirstSetting, getFirstStructuralFeature, getItemPropertyDescriptor, getLocale, getService, getViewModelContext, handleValidation, init, isEmbedded, postInit, resetValidation, setEmbedded
public final void setTableControlConfiguration(TableControlConfiguration tableControlConfiguration)
tableControlConfiguration
- the TableControlConfiguration
to use when creating the tableprotected org.eclipse.core.databinding.Binding bindValue()
SWTControl
bindValue
in class SWTControl
Binding
public List<RenderingResultRow<org.eclipse.swt.widgets.Control>> createControls(org.eclipse.swt.widgets.Composite parent)
RenderingResultRows
.createControls
in interface ECPControlSWT
createControls
in class SWTControl
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)
SWTControl
createControl
in class SWTControl
parent
- the Composite
which is the parentComposite
protected void fillControlComposite(org.eclipse.swt.widgets.Composite parent)
SWTControl
fillControlComposite
in class SWTControl
parent
- the Composite
to add the widget toprotected org.eclipse.swt.widgets.Button getCustomUnsetButton()
SWTControl
getCustomUnsetButton
in class SWTControl
protected void deleteRowUserConfirmDialog(List<org.eclipse.emf.ecore.EObject> deletionList)
deletionList
- the list of selected EObjects to deleteprotected void deleteRows(List<org.eclipse.emf.ecore.EObject> deletionList)
deleteRowUserConfirmDialog(List)
after the user confirmed to delete the selected
elements.deletionList
- the list of EObjects
to deleteprotected void addRow(org.eclipse.emf.ecore.EClass clazz)
clazz
- the EClass
defining the EObject to createpublic void dispose()
dispose
in class SWTControl
protected void applyValidation(VDiagnostic diagnostic)
applyValidation
in class ECPAbstractControl
diagnostic
- the current VDiagnostic
ECPAbstractControl.applyValidation(org.eclipse.emf.ecp.view.spi.model.VDiagnostic)
protected String getTableTooltipMessage(org.eclipse.emf.common.util.Diagnostic diagnostic)
diagnostic
- the Diagnostic
to extract the message fromprotected String getRowTooltipMessage(VDiagnostic vDiagnostic)
vDiagnostic
- the VDiagnostic
to get the message fromprotected String getCellTooltipMessage(VDiagnostic vDiagnostic)
vDiagnostic
- the VDiagnostic
to get the message from@Deprecated public void setEditable(boolean isEditable)
setEditable
in class ECPAbstractControl
isEditable
- whether to set the widget editableprotected String getUnsetLabelText()
SWTControl
getUnsetLabelText
in class SWTControl
protected String getUnsetButtonTooltip()
SWTControl
getUnsetButtonTooltip
in class SWTControl
protected org.eclipse.swt.widgets.Control[] getControlsForTooltip()
SWTControl
getControlsForTooltip
in class SWTControl
@Deprecated public boolean showLabel()
showLabel
in class ECPAbstractControl
Copyright © 2019. All rights reserved.