public final class ColumnConfigurationImpl extends Object implements ColumnConfiguration
ColumnConfiguration.ALL_FEATURES, COLUMN_ID, DMR, FEATURE_COLUMN_FILTER, FEATURE_COLUMN_HIDE_SHOW, FEATURE_COLUMN_REGEX_FILTER, FEATURES, ID, MIN_WIDTH, NO_WEIGHT, RESIZABLE, WEIGHT| Constructor and Description |
|---|
ColumnConfigurationImpl(Set<Feature> enabledFeatures,
boolean resizeable,
boolean moveable,
int styleBits,
int weight,
int minWidth,
org.eclipse.core.databinding.observable.value.IObservableValue columnText,
org.eclipse.core.databinding.observable.value.IObservableValue tooltipText,
CellLabelProviderFactory labelProviderFactory,
EditingSupportCreator editingSupport,
org.eclipse.swt.graphics.Image image,
Map<String,Object> data,
List<ConfigurationCallback<org.eclipse.jface.viewers.AbstractTableViewer,org.eclipse.jface.viewers.ViewerColumn>> configurationCallbacks)
Constructs a new
ColumnConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
Optional<org.eclipse.jface.viewers.EditingSupport> |
createEditingSupport(org.eclipse.jface.viewers.AbstractTableViewer columnViewer)
Called to setup the
EditingSupport for the viewer. |
org.eclipse.jface.viewers.CellLabelProvider |
createLabelProvider(org.eclipse.jface.viewers.AbstractTableViewer columnViewer)
The cell label provider which will be set on the column.
|
void |
dispose()
Dispose this configuration and all its properties.
|
Optional<org.eclipse.swt.graphics.Image> |
getColumnImage()
The image of the column.
|
org.eclipse.core.databinding.observable.value.IObservableValue |
getColumnText()
The header text for the column.
|
org.eclipse.core.databinding.observable.value.IObservableValue |
getColumnTooltip()
The column header tooltip text.
|
List<ConfigurationCallback<org.eclipse.jface.viewers.AbstractTableViewer,org.eclipse.jface.viewers.ViewerColumn>> |
getConfigurationCallbacks()
Get the list of additional ConfigurationCallbacks.
|
Map<String,Object> |
getData()
Get the underlying data map.
|
Object |
getData(String key)
Get an arbitrary element from the data map.
|
Set<Feature> |
getEnabledFeatures()
Returns a static array of enabled features.
|
int |
getMinWidth()
The minimal width of the column.
|
int |
getStyleBits()
The SWT style bits which will be used to create the column.
|
int |
getWeight()
The weight of the column.
|
boolean |
isMoveable()
true if moveable, false otherwise. |
boolean |
isResizeable()
true if resizeable, false otherwise. |
Property<Object> |
matchFilter()
Set a filter on the current column.
|
void |
setData(Map<String,Object> data)
Add the contents of the given map to the data map.
|
Property<Boolean> |
showFilterControl()
Toggle the visible state of the filter control.
|
Property<Boolean> |
visible()
Toggle the visible state of the column.
|
public ColumnConfigurationImpl(Set<Feature> enabledFeatures, boolean resizeable, boolean moveable, int styleBits, int weight, int minWidth, org.eclipse.core.databinding.observable.value.IObservableValue columnText, org.eclipse.core.databinding.observable.value.IObservableValue tooltipText, CellLabelProviderFactory labelProviderFactory, EditingSupportCreator editingSupport, org.eclipse.swt.graphics.Image image, Map<String,Object> data, List<ConfigurationCallback<org.eclipse.jface.viewers.AbstractTableViewer,org.eclipse.jface.viewers.ViewerColumn>> configurationCallbacks)
ColumnConfiguration.enabledFeatures - list of enabled featuresresizeable - resizeablemoveable - moveablestyleBits - styleBitsweight - weightminWidth - minWidthcolumnText - columnTexttooltipText - tooltipTextlabelProviderFactory - labelProvidereditingSupport - editingSupport. May be null to indicate that there is no editing supportpublic Set<Feature> getEnabledFeatures()
ColumnConfigurationgetEnabledFeatures in interface ColumnConfigurationpublic boolean isResizeable()
ColumnConfigurationtrue if resizeable, false otherwise.isResizeable in interface ColumnConfigurationpublic boolean isMoveable()
ColumnConfigurationtrue if moveable, false otherwise.isMoveable in interface ColumnConfigurationpublic int getStyleBits()
ColumnConfigurationgetStyleBits in interface ColumnConfigurationpublic int getWeight()
ColumnConfigurationgetWeight in interface ColumnConfigurationpublic int getMinWidth()
ColumnConfigurationgetMinWidth in interface ColumnConfigurationpublic org.eclipse.core.databinding.observable.value.IObservableValue getColumnText()
ColumnConfigurationgetColumnText in interface ColumnConfigurationpublic org.eclipse.core.databinding.observable.value.IObservableValue getColumnTooltip()
ColumnConfigurationgetColumnTooltip in interface ColumnConfigurationpublic org.eclipse.jface.viewers.CellLabelProvider createLabelProvider(org.eclipse.jface.viewers.AbstractTableViewer columnViewer)
ColumnConfigurationcreateLabelProvider in interface ColumnConfigurationcolumnViewer - the column viewerpublic Optional<org.eclipse.jface.viewers.EditingSupport> createEditingSupport(org.eclipse.jface.viewers.AbstractTableViewer columnViewer)
ColumnConfigurationEditingSupport for the viewer.createEditingSupport in interface ColumnConfigurationcolumnViewer - the AbstractTableViewerpublic Optional<org.eclipse.swt.graphics.Image> getColumnImage()
ColumnConfigurationgetColumnImage in interface ColumnConfigurationpublic void setData(Map<String,Object> data)
ColumnConfigurationsetData in interface ColumnConfigurationdata - objectpublic Object getData(String key)
ColumnConfigurationgetData in interface ColumnConfigurationkey - (see constants)public Map<String,Object> getData()
ColumnConfigurationgetData in interface ColumnConfigurationpublic List<ConfigurationCallback<org.eclipse.jface.viewers.AbstractTableViewer,org.eclipse.jface.viewers.ViewerColumn>> getConfigurationCallbacks()
ColumnConfigurationgetConfigurationCallbacks in interface ColumnConfigurationpublic Property<Boolean> visible()
ColumnConfigurationvisible in interface ColumnConfigurationpublic Property<Boolean> showFilterControl()
ColumnConfigurationshowFilterControl in interface ColumnConfigurationpublic Property<Object> matchFilter()
ColumnConfigurationmatchFilter in interface ColumnConfigurationpublic void dispose()
ColumnConfigurationdispose in interface ColumnConfigurationCopyright © 2019. All rights reserved.