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.
|
static ColumnConfigurationBuilder |
from(TableViewerSWTBuilder viewerBuilder)
Returns a new
TableConfigurationBuilder initialized using an existing viewer builder. |
protected Set<Feature> |
getEnabledFeatures()
Deprecated.
Since 1.21, use the
showHide(boolean) and similar
builder methods, instead |
Set<Feature> |
getSupportedFeatures()
Deprecated.
Since 1.21, use the
showHide(boolean) and similar
builder methods, instead |
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 |
regexFilter(boolean regexFilter)
Set whether support for users to show a regular expression filter
is installed.
|
ColumnConfigurationBuilder |
resizable(boolean resizable)
Makes the column resizable.
|
ColumnConfigurationBuilder |
showHide(boolean showHide)
Set whether support for users to show and hide the column is installed.
|
ColumnConfigurationBuilder |
styleBits(int styleBits)
Add SWT style bits.
|
ColumnConfigurationBuilder |
substringFilter(boolean substringFilter)
Set whether support for users to show a simple substring-matching filter
is installed.
|
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 static ColumnConfigurationBuilder from(TableViewerSWTBuilder viewerBuilder)
TableConfigurationBuilder
initialized using an existing viewer builder.viewerBuilder
- a TableViewerSWTBuilder
to transform to a configuration builder@Deprecated public Set<Feature> getSupportedFeatures()
showHide(boolean)
and similar
builder methods, insteadAbstractFeatureAwareBuilder
getSupportedFeatures
in class AbstractFeatureAwareBuilder<ColumnConfigurationBuilder>
showHide(boolean)
,
substringFilter(boolean)
,
regexFilter(boolean)
@Deprecated protected Set<Feature> getEnabledFeatures()
showHide(boolean)
and similar
builder methods, insteadAbstractFeatureAwareBuilder
getEnabledFeatures
in class AbstractFeatureAwareBuilder<ColumnConfigurationBuilder>
showHide(boolean)
,
substringFilter(boolean)
,
regexFilter(boolean)
public ColumnConfigurationBuilder showHide(boolean showHide)
showHide
- true
to enable showing and hiding; false
to disable itpublic ColumnConfigurationBuilder substringFilter(boolean substringFilter)
substringFilter
- true
to enable the substring filter; false
to disable itpublic ColumnConfigurationBuilder regexFilter(boolean regexFilter)
regexFilter
- true
to enable the regex filter; false
to disable itpublic 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 © 2019. All rights reserved.