public final class ColumnConfigurationBuilder extends AbstractFeatureAwareBuilder<ColumnConfigurationBuilder>
ColumnConfiguration
s.Modifier and Type | Method and Description |
---|---|
ColumnConfiguration |
build()
Create a new
ColumnConfiguration using the current builder state. |
ColumnConfigurationBuilder |
callback(ConfigurationCallback<org.eclipse.jface.viewers.AbstractTableViewer,org.eclipse.jface.viewers.ViewerColumn> callback)
Add a column configuration callback.
|
ColumnConfigurationBuilder |
dataMap(Map<String,Object> data)
Add a pre-initialized data map.
|
ColumnConfigurationBuilder |
dataMapEntry(String key,
Object value)
Add a data map entry.
|
ColumnConfigurationBuilder |
editingSupportCreator(EditingSupportCreator editingSupportCreator)
Add an editing support creator.
|
protected Set<Feature> |
getEnabledFeatures()
Return the list of enabled features.
|
Set<Feature> |
getSupportedFeatures()
Returns the list of supported features.
|
ColumnConfigurationBuilder |
image(org.eclipse.swt.graphics.Image image)
Add a column image.
|
ColumnConfigurationBuilder |
labelProvider(org.eclipse.jface.viewers.CellLabelProvider labelProvider)
Add a label provider.
|
ColumnConfigurationBuilder |
labelProviderFactory(CellLabelProviderFactory labelProviderFactory)
Add a label provider factory.
|
ColumnConfigurationBuilder |
minWidth(int minWidth)
Add a minimal width.
|
ColumnConfigurationBuilder |
moveable(boolean moveable)
Makes the column moveable.
|
ColumnConfigurationBuilder |
resizable(boolean resizable)
Makes the column resizable.
|
ColumnConfigurationBuilder |
styleBits(int styleBits)
Add SWT style bits.
|
ColumnConfigurationBuilder |
text(org.eclipse.core.databinding.observable.value.IObservableValue textObservable)
Add a text observable.
|
ColumnConfigurationBuilder |
text(String text)
Add a static text.
|
ColumnConfigurationBuilder |
tooltip(org.eclipse.core.databinding.observable.value.IObservableValue tooltipObservable)
Add a tooltip observable.
|
ColumnConfigurationBuilder |
tooltip(String tooltip)
Add a static tooltip.
|
static ColumnConfigurationBuilder |
usingConfiguration(ColumnConfiguration columnConfiguration)
Returns a new
ColumnConfigurationBuilder initialized using an existing configuration. |
static ColumnConfigurationBuilder |
usingDefaults()
Returns a new
ColumnConfigurationBuilder initialized using default values. |
ColumnConfigurationBuilder |
weight(int weight)
Add column weight.
|
disableFeature, enableFeature, getBuilder, inheritFeatures, isFeatureEnabled, isFeatureSupported
public static ColumnConfigurationBuilder usingDefaults()
ColumnConfigurationBuilder
initialized using default values.public static ColumnConfigurationBuilder usingConfiguration(ColumnConfiguration columnConfiguration)
ColumnConfigurationBuilder
initialized using an existing configuration.columnConfiguration
- a ColumnConfiguration
to usepublic Set<Feature> getSupportedFeatures()
AbstractFeatureAwareBuilder
getSupportedFeatures
in class AbstractFeatureAwareBuilder<ColumnConfigurationBuilder>
protected Set<Feature> getEnabledFeatures()
AbstractFeatureAwareBuilder
getEnabledFeatures
in class AbstractFeatureAwareBuilder<ColumnConfigurationBuilder>
public ColumnConfigurationBuilder resizable(boolean resizable)
resizable
- true for resizable columnspublic ColumnConfigurationBuilder moveable(boolean moveable)
moveable
- true for movable columnspublic ColumnConfigurationBuilder styleBits(int styleBits)
styleBits
- the SWT style bitspublic ColumnConfigurationBuilder weight(int weight)
weight
- the weightpublic ColumnConfigurationBuilder minWidth(int minWidth)
minWidth
- the minimal widthpublic ColumnConfigurationBuilder text(org.eclipse.core.databinding.observable.value.IObservableValue textObservable)
textObservable
- the column text observablepublic ColumnConfigurationBuilder text(String text)
text
- the column textpublic ColumnConfigurationBuilder tooltip(org.eclipse.core.databinding.observable.value.IObservableValue tooltipObservable)
tooltipObservable
- the tooltip observablepublic ColumnConfigurationBuilder tooltip(String tooltip)
tooltip
- the tooltippublic ColumnConfigurationBuilder labelProviderFactory(CellLabelProviderFactory labelProviderFactory)
labelProviderFactory
- the label provider factorypublic ColumnConfigurationBuilder labelProvider(org.eclipse.jface.viewers.CellLabelProvider labelProvider)
labelProvider
- the label providerpublic ColumnConfigurationBuilder editingSupportCreator(EditingSupportCreator editingSupportCreator)
editingSupportCreator
- the editing support creatorpublic ColumnConfigurationBuilder image(org.eclipse.swt.graphics.Image image)
image
- the imagepublic ColumnConfigurationBuilder dataMap(Map<String,Object> data)
data
- the data mappublic ColumnConfigurationBuilder dataMapEntry(String key, Object value)
key
- the data map keyvalue
- the data map valuepublic ColumnConfigurationBuilder callback(ConfigurationCallback<org.eclipse.jface.viewers.AbstractTableViewer,org.eclipse.jface.viewers.ViewerColumn> callback)
callback
- the callbackpublic ColumnConfiguration build()
ColumnConfiguration
using the current builder state.ColumnConfiguration
Copyright © 2018. All rights reserved.