public class GridControlSWTRenderer extends TableControlSWTRenderer
| Modifier and Type | Class and Description |
|---|---|
class |
GridControlSWTRenderer.CustomGridTableViewer
Custom Nebula Grid table viewer to expose getViewerRowFromItem() method.
|
protected class |
GridControlSWTRenderer.GridTableControlSWTRendererTableViewerCreator
TableViewerCreator for the table control swt renderer. |
TableControlSWTRenderer.AutoSortModelChangeListener, TableControlSWTRenderer.CompactVerticallyTableControlSWTRendererCompositeBuilder, TableControlSWTRenderer.ECPCellLabelProvider, TableControlSWTRenderer.ECPTableViewerComparator, TableControlSWTRenderer.TableControlEditingSupportAndLabelProvider, TableControlSWTRenderer.TableControlSWTRendererCompositeBuilder, TableControlSWTRenderer.TableControlSWTRendererTableViewerCreatorFIXED_COLUMNS, TABLE_CUSTOM_VARIANT, VALIDATION_PREFERRED_SIZECUSTOM_VARIANT| Constructor and Description |
|---|
GridControlSWTRenderer(VTableControl vElement,
ViewModelContext viewContext,
ReportService reportService,
EMFFormsDatabindingEMF emfFormsDatabinding,
EMFFormsLabelProvider emfFormsLabelProvider,
VTViewTemplateProvider vtViewTemplateProvider,
ImageRegistryService imageRegistryService,
EMFFormsEditSupport emfFormsEditSupport,
EStructuralFeatureValueConverterService converterService,
EMFFormsLocalizationService localizationService)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
computeRequiredHeight(Integer visibleLines)
Returns the height in pixels required to display the given number of table items.
|
protected TableViewerSWTBuilder |
createTableViewerSWTBuilder(org.eclipse.swt.widgets.Composite parent,
org.eclipse.core.databinding.observable.list.IObservableList list,
org.eclipse.core.databinding.observable.value.IObservableValue labelText,
org.eclipse.core.databinding.observable.value.IObservableValue labelTooltipText,
TableViewerCompositeBuilder compositeBuilder,
org.eclipse.jface.databinding.viewers.ObservableListContentProvider cp,
TableControlSWTRenderer.ECPTableViewerComparator comparator,
TableActionBar<? extends org.eclipse.jface.viewers.AbstractTableViewer> actionBar)
Creates a new
TableViewerSWTBuilder. |
protected org.eclipse.swt.widgets.Item[] |
getColumns()
Returns an array of
items which are the columns in the table. |
protected EStructuralFeatureValueConverterService |
getConverterService() |
protected org.eclipse.swt.widgets.ScrollBar |
getHorizontalBar()
Returns the receiver's horizontal scroll bar if it has one, and null if it does not.
|
protected EMFFormsLocalizationService |
getLocalizationService() |
protected int |
getSelectionIndex()
Returns the zero-relative index of the item which is currently selected in the receiver, or -1 if no item is
selected.
|
protected TableViewerCreator<org.eclipse.nebula.jface.gridviewer.GridTableViewer> |
getTableViewerCreator()
Creates a new instance of the
TableViewerCreator to be used. |
protected org.eclipse.swt.widgets.ScrollBar |
getVerticalBar()
Returns the receiver's vertical scroll bar if it has one, and null if it does not.
|
addAdditionalColumns, addButtonsToButtonBar, addRow, applyEnable, applyReadOnly, applyUnchangeableFeature, applyValidation, applyValidation, canEditObject, compare, configureActions, createActionBar, createCellEditor, createCellLabelProvider, createControlComposite, createDefaultBackgroundStyleProperty, createDefaultFontPropertiesStyleProperty, createDefaultTableStyleProperty, createDefaultTableValidationStyleProperty, createLabel, createTableViewerCompositeBuilder, createViewerActionContext, deleteRows, deleteRowUserConfirmDialog, dispose, getAddButton, getBackgroundStyleProperty, getColumnDomainModelReferences, getControlForAction, getDMRToMultiReference, getEMFFormsDatabinding, getFontPropertiesStyleProperty, getGridDescription, getImage, getImage, getKeyBindingsForAction, getRemoveButton, getSettingFromObservable, getSWTColor, getTableHeightHint, getTableStyleProperty, getTableValidationStyleProperty, getTableViewer, getTableViewerComposite, postRefresh, postRefresh, renderControl, renderTableControl, rootDomainModelChanged, setTableViewer, shouldCreateCellEditor, updateActionBar, viewerSelectionChangedcanHandleControlProcessor, createValidationIcon, defaultHandleControlProcessor, defaultHandleControlProcessorForCell, getDataBindingContext, getEditingDomain, getEMFFormsLabelProvider, getLabelStyleBits, getModelValue, getValidationBackgroundColor, getValidationForegroundColor, getValidationIcon, getVTViewTemplateProvider, hasLeftLabelAlignment, isUnchangeableFeature, notifyChange, postInit, renderapplyVisible, finalizeRendering, getControls, getDefaultFontName, ignoreEnableOnReadOnly, init, preInit, setControlEnabledcheckRenderer, getReportService, getVElement, getViewModelContext@Inject public GridControlSWTRenderer(VTableControl vElement, ViewModelContext viewContext, ReportService reportService, EMFFormsDatabindingEMF emfFormsDatabinding, EMFFormsLabelProvider emfFormsLabelProvider, VTViewTemplateProvider vtViewTemplateProvider, ImageRegistryService imageRegistryService, EMFFormsEditSupport emfFormsEditSupport, EStructuralFeatureValueConverterService converterService, EMFFormsLocalizationService localizationService)
vElement - the view model element to be renderedviewContext - the view contextemfFormsDatabinding - The EMFFormsDatabindingEMFemfFormsLabelProvider - The EMFFormsLabelProviderreportService - The ReportServicevtViewTemplateProvider - The VTViewTemplateProviderimageRegistryService - The ImageRegistryServiceemfFormsEditSupport - The EMFFormsEditSupportconverterService - the EStructuralFeatureValueConverterServicelocalizationService - the EMFFormsLocalizationServiceprotected TableViewerCreator<org.eclipse.nebula.jface.gridviewer.GridTableViewer> getTableViewerCreator()
TableControlSWTRendererTableViewerCreator to be used.getTableViewerCreator in class TableControlSWTRendererTableViewerCreatorprotected TableViewerSWTBuilder createTableViewerSWTBuilder(org.eclipse.swt.widgets.Composite parent, org.eclipse.core.databinding.observable.list.IObservableList list, org.eclipse.core.databinding.observable.value.IObservableValue labelText, org.eclipse.core.databinding.observable.value.IObservableValue labelTooltipText, TableViewerCompositeBuilder compositeBuilder, org.eclipse.jface.databinding.viewers.ObservableListContentProvider cp, TableControlSWTRenderer.ECPTableViewerComparator comparator, TableActionBar<? extends org.eclipse.jface.viewers.AbstractTableViewer> actionBar)
TableControlSWTRendererTableViewerSWTBuilder.createTableViewerSWTBuilder in class TableControlSWTRendererparent - the parent Compositelist - the input objectlabelText - the titlelabelTooltipText - the tooltipcompositeBuilder - the TableViewerCompositeBuildercp - the content providercomparator - the ViewerComparator; has no effect if move up/down
functionality is enabledactionBar - the ActionBarTableViewerSWTBuilderprotected int getSelectionIndex()
TableControlSWTRenderergetSelectionIndex in class TableControlSWTRendererprotected org.eclipse.swt.widgets.Item[] getColumns()
TableControlSWTRendereritems which are the columns in the table.getColumns in class TableControlSWTRendererprotected org.eclipse.swt.widgets.ScrollBar getHorizontalBar()
TableControlSWTRenderergetHorizontalBar in class TableControlSWTRendererprotected org.eclipse.swt.widgets.ScrollBar getVerticalBar()
TableControlSWTRenderergetVerticalBar in class TableControlSWTRendererprotected int computeRequiredHeight(Integer visibleLines)
TableControlSWTRenderercomputeRequiredHeight in class TableControlSWTRenderervisibleLines - the number of visible table itemsprotected EStructuralFeatureValueConverterService getConverterService()
EStructuralFeatureValueConverterServiceprotected EMFFormsLocalizationService getLocalizationService()
EMFFormsLocalizationServiceCopyright © 2019. All rights reserved.