V
- the TableViewer implementation to useC
- the ViewerColumn
implementation to usepublic abstract class AbstractTableViewerColumnBuilder<V extends org.eclipse.jface.viewers.AbstractTableViewer,C extends org.eclipse.jface.viewers.ViewerColumn> extends Object
Constructor and Description |
---|
AbstractTableViewerColumnBuilder(ColumnConfiguration config)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
bindValue(org.eclipse.swt.widgets.Widget column,
org.eclipse.jface.databinding.swt.IWidgetValueProperty valueProperty,
org.eclipse.core.databinding.observable.value.IObservableValue observable)
Binds a value to a widget value property.
|
C |
build(V tableViewer)
Creates a new viewer column.
|
protected void |
configure(V tableViewer,
C viewerColumn)
Configures a viewer column instance.
|
protected void |
configureContextMap(org.eclipse.swt.widgets.Widget column)
Configures the context map of the given widget.
|
protected void |
configureDatabinding(org.eclipse.swt.widgets.Widget column)
Configures data binding for the given column widget.
|
protected abstract void |
configureEditingSupport(C viewerColumn,
V tableViewer)
Configures the EditingSupport for the given table viewer/column.
|
protected void |
configureImage(org.eclipse.swt.widgets.Item column)
Configures a image for the given column item.
|
protected void |
configureLabelProvider(C column,
V tableViewer)
Configures the label provider of the given column.
|
protected abstract void |
configureViewerColumn(C viewerColumn)
Configures a viewer column instance.
|
abstract C |
createViewerColumn(V tableViewer)
Creates a new ViewerColumn instance.
|
ColumnConfiguration |
getConfig() |
protected abstract org.eclipse.swt.widgets.Item |
getTableColumn(C viewerColumn)
Returns the table column control for the given viewer column.
|
AbstractTableViewerColumnBuilder<V,C> |
withDatabinding(org.eclipse.emf.databinding.EMFDataBindingContext dataBindingContext)
Adds databinding support.
|
public AbstractTableViewerColumnBuilder(ColumnConfiguration config)
config
- the ColumnConfiguration
public C build(V tableViewer)
tableViewer
- the parent table viewerpublic abstract C createViewerColumn(V tableViewer)
tableViewer
- the TableViewerprotected abstract org.eclipse.swt.widgets.Item getTableColumn(C viewerColumn)
viewerColumn
- the viewer columnprotected abstract void configureViewerColumn(C viewerColumn)
viewerColumn
- the viewer column to configureprotected void configure(V tableViewer, C viewerColumn)
tableViewer
- the table viewer the column belongs toviewerColumn
- the viewer column to configureprotected abstract void configureEditingSupport(C viewerColumn, V tableViewer)
viewerColumn
- the viewer column to configuretableViewer
- the table viewer the column belongs topublic AbstractTableViewerColumnBuilder<V,C> withDatabinding(org.eclipse.emf.databinding.EMFDataBindingContext dataBindingContext)
dataBindingContext
- the EMFDataBindingContext
to useprotected void bindValue(org.eclipse.swt.widgets.Widget column, org.eclipse.jface.databinding.swt.IWidgetValueProperty valueProperty, org.eclipse.core.databinding.observable.value.IObservableValue observable)
column
- the widgetvalueProperty
- the value property to bind toobservable
- the value to bind toprotected void configureDatabinding(org.eclipse.swt.widgets.Widget column)
column
- the column widget to configureprotected void configureLabelProvider(C column, V tableViewer)
column
- the column to configuretableViewer
- the table viewer the column belongs toprotected void configureImage(org.eclipse.swt.widgets.Item column)
column
- the column item to configure an image forprotected void configureContextMap(org.eclipse.swt.widgets.Widget column)
column
- the column widget to configurepublic ColumnConfiguration getConfig()
ColumnConfiguration
Copyright © 2019. All rights reserved.