public class TableControlDetailDialogSWTRenderer extends TableControlSWTRenderer
VTableControl
with a detail editing
dialog.TableControlSWTRenderer.ECPCellLabelProvider, TableControlSWTRenderer.ECPTableViewerComparator, TableControlSWTRenderer.TableControlSWTRendererButtonBarBuilder, TableControlSWTRenderer.TableControlSWTRendererTableViewerCreator
FIXED_COLUMNS, TABLE_CUSTOM_VARIANT
CUSTOM_VARIANT
Constructor and Description |
---|
TableControlDetailDialogSWTRenderer(VTableControl vElement,
ViewModelContext viewContext,
ReportService reportService,
EMFFormsDatabindingEMF emfFormsDatabinding,
EMFFormsLabelProvider emfFormsLabelProvider,
VTViewTemplateProvider vtViewTemplateProvider,
ImageRegistryService imageRegistryService,
EMFFormsEditSupport emfFormsEditSupport)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected int |
addButtonsToButtonBar(org.eclipse.swt.widgets.Composite buttonComposite)
Allows to add additional buttons to the button bar of the table control.
|
protected void |
dispose()
Disposes all resources used by the renderer.
|
protected void |
viewerSelectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
This method gets called when the selection on the
TableViewer (see TableControlSWTRenderer.getTableViewer() ) has
changed. |
addAdditionalColumns, addRow, applyEnable, applyReadOnly, applyValidation, compare, createCellEditor, createControlComposite, deleteRows, deleteRowUserConfirmDialog, getAddButton, getBackgroundStyleProperty, getColumns, getDMRToMultiReference, getEMFFormsDatabinding, getFontPropertiesStyleProperty, getGridDescription, getHorizontalBar, getImage, getImage, getRemoveButton, getSelectionIndex, getSWTColor, getTableHeightHint, getTableViewer, getTableViewerCreator, getTableViewerSWTBuilder, getVerticalBar, renderControl, rootDomainModelChanged, setTableViewer
canHandleControlProcessor, createLabel, createValidationIcon, defaultHandleControlProcessor, defaultHandleControlProcessorForCell, getDataBindingContext, getEditingDomain, getEMFFormsLabelProvider, getModelValue, getValidationBackgroundColor, getValidationForegroundColor, getValidationIcon, getVTViewTemplateProvider, hasLeftLabelAlignment, notifyChange, postInit, render
applyVisible, finalizeRendering, getControls, getDefaultFontName, init, preInit, setControlEnabled
checkRenderer, getReportService, getVElement, getViewModelContext
@Inject public TableControlDetailDialogSWTRenderer(VTableControl vElement, ViewModelContext viewContext, ReportService reportService, EMFFormsDatabindingEMF emfFormsDatabinding, EMFFormsLabelProvider emfFormsLabelProvider, VTViewTemplateProvider vtViewTemplateProvider, ImageRegistryService imageRegistryService, EMFFormsEditSupport emfFormsEditSupport)
vElement
- the view model element to be renderedviewContext
- the view contextemfFormsDatabinding
- The EMFFormsDatabindingEMF
emfFormsLabelProvider
- The EMFFormsLabelProvider
reportService
- The ReportService
vtViewTemplateProvider
- The VTViewTemplateProvider
imageRegistryService
- The ImageRegistryService
emfFormsEditSupport
- The EMFFormsEditSupport
protected int addButtonsToButtonBar(org.eclipse.swt.widgets.Composite buttonComposite)
The default implementation does not add additional buttons.
addButtonsToButtonBar
in class TableControlSWTRenderer
buttonComposite
- the composite where the buttons are addedTableControlSWTRenderer.addButtonsToButtonBar(org.eclipse.swt.widgets.Composite)
protected void viewerSelectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
TableViewer
(see TableControlSWTRenderer.getTableViewer()
) has
changed.
If you override this method make sure to call super.
viewerSelectionChanged
in class TableControlSWTRenderer
event
- the SelectionChangedEvent
TableControlSWTRenderer.viewerSelectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
protected void dispose()
dispose
in class TableControlSWTRenderer
TableControlSWTRenderer.dispose()
Copyright © 2016. All rights reserved.