public final class TableConfigurationBuilder extends AbstractFeatureAwareBuilder<TableConfigurationBuilder>
TableConfiguration
s.Modifier and Type | Method and Description |
---|---|
TableConfiguration |
build()
Creates a new
TableConfiguration based on the current builder state. |
TableConfigurationBuilder |
columnRegexFilter(boolean columnRegexFilter)
Set whether support for users to show a regular expression filter on columns
is installed.
|
TableConfigurationBuilder |
columnSubstringFilter(boolean columnSubstringFilter)
Set whether support for users to show a simple substring-matching filter on columns
is installed.
|
TableConfigurationBuilder |
dataMapEntry(String key,
Object value)
Add a data map entry.
|
static TableConfigurationBuilder |
from(TableViewerSWTBuilder viewerBuilder)
Returns a new
TableConfigurationBuilder initialized using an existing viewer builder. |
protected Set<Feature> |
getEnabledFeatures()
Deprecated.
Since 1.21, use the
showHideColumns(boolean) and similar
builder methods, instead |
Set<Feature> |
getSupportedFeatures()
Deprecated.
Since 1.21, use the
showHideColumns(boolean) and similar
builder methods, instead |
TableConfigurationBuilder |
showHideColumns(boolean showHideColumns)
Set whether support for users to show and hide columns is installed.
|
static TableConfigurationBuilder |
usingConfiguration(TableConfiguration tableConfiguration)
Returns a new
TableConfigurationBuilder initialized using an existing configuration. |
static TableConfigurationBuilder |
usingDefaults()
Returns a new
TableConfigurationBuilder initialized using default values. |
disableFeature, enableFeature, getBuilder, inheritFeatures, isFeatureEnabled, isFeatureSupported
public static TableConfigurationBuilder usingDefaults()
TableConfigurationBuilder
initialized using default values.public static TableConfigurationBuilder usingConfiguration(TableConfiguration tableConfiguration)
TableConfigurationBuilder
initialized using an existing configuration.tableConfiguration
- a TableConfiguration
to usepublic static TableConfigurationBuilder from(TableViewerSWTBuilder viewerBuilder)
TableConfigurationBuilder
initialized using an existing viewer builder.viewerBuilder
- a TableViewerSWTBuilder
to transform to a configuration builder@Deprecated public Set<Feature> getSupportedFeatures()
showHideColumns(boolean)
and similar
builder methods, insteadAbstractFeatureAwareBuilder
getSupportedFeatures
in class AbstractFeatureAwareBuilder<TableConfigurationBuilder>
showHideColumns(boolean)
,
columnSubstringFilter(boolean)
,
columnRegexFilter(boolean)
@Deprecated protected Set<Feature> getEnabledFeatures()
showHideColumns(boolean)
and similar
builder methods, insteadAbstractFeatureAwareBuilder
getEnabledFeatures
in class AbstractFeatureAwareBuilder<TableConfigurationBuilder>
showHideColumns(boolean)
,
columnSubstringFilter(boolean)
,
columnRegexFilter(boolean)
public TableConfigurationBuilder showHideColumns(boolean showHideColumns)
showHideColumns
- true
to enable showing and hiding of columns; false
to disable itpublic TableConfigurationBuilder columnSubstringFilter(boolean columnSubstringFilter)
columnSubstringFilter
- true
to enable the substring filter; false
to disable itpublic TableConfigurationBuilder columnRegexFilter(boolean columnRegexFilter)
columnRegexFilter
- true
to enable the regex filter; false
to disable itpublic TableConfigurationBuilder dataMapEntry(String key, Object value)
key
- the data map keyvalue
- the data map valuepublic TableConfiguration build()
TableConfiguration
based on the current builder state.TableConfiguration
Copyright © 2019. All rights reserved.