Class AbstractFeatureAwareBuilder<B>

  • Type Parameters:
    B - the builder type
    Direct Known Subclasses:
    ColumnConfigurationBuilder, TableConfigurationBuilder, TableViewerSWTBuilder

    @Deprecated
    public abstract class AbstractFeatureAwareBuilder<B>
    extends java.lang.Object
    Deprecated.
    as of 1.21, Features are used only to communicate configuration data to the UI controls that interrogate the configurations. The builder API for users is a fluent API, not abstracted in terms of features
    Abstract helper class for feature support.
    Since:
    1.14
    Author:
    Mat Hansen
    • Constructor Detail

      • AbstractFeatureAwareBuilder

        public AbstractFeatureAwareBuilder()
        Deprecated.
    • Method Detail

      • getSupportedFeatures

        protected abstract java.util.Set<Feature> getSupportedFeatures()
        Deprecated.
        Returns the list of supported features.
        Returns:
        array of supported features
      • getEnabledFeatures

        protected abstract java.util.Set<Feature> getEnabledFeatures()
        Deprecated.
        Return the list of enabled features.
        Returns:
        list of enabled features
      • enableFeature

        public B enableFeature​(Feature featureToEnable)
        Deprecated.
        Enable a feature.
        Parameters:
        featureToEnable - the feature to enable
        Returns:
        self
      • disableFeature

        public B disableFeature​(Feature featureToDisable)
        Deprecated.
        Disable a feature.
        Parameters:
        featureToDisable - the feature to disable
        Returns:
        self
      • isFeatureEnabled

        public boolean isFeatureEnabled​(Feature feature)
        Deprecated.
        Check whether the given feature is enabled.
        Parameters:
        feature - the feature to check
        Returns:
        true if enabled
      • isFeatureSupported

        public boolean isFeatureSupported​(Feature feature)
        Deprecated.
        Check whether the given feature is supported.
        Parameters:
        feature - the feature to check
        Returns:
        true if supported
      • inheritFeatures

        public B inheritFeatures​(java.util.Collection<Feature> features)
        Deprecated.
        Inherit the features as long as they are supported.
        Parameters:
        features - list of features to inherit.
        Returns:
        self
      • getBuilder

        protected B getBuilder()
        Deprecated.
        Returns the builder instance.
        Returns:
        self