Package swingtree.api

Interface Configurator<T>

Type Parameters:
T - the type of the configuration object
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Configurator<T>
A configurator is a functional interface that takes a configuration object and returns a transformed configuration object. Typically, this configuration object is an immutable builder type. It is commonly used to configure table models or cell renderer, check out the following methods for these additional usage sites:

Configurators are also heavily used for defining the style of components through the UIForAnySwing.withStyle(Styler) method or when writing a custom StyleSheet.

  • Method Summary

    Modifier and Type
    Method
    Description
    configure(T config)
    Configures the given configuration object and returns the transformed configuration object.
  • Method Details

    • configure

      T configure(T config)
      Configures the given configuration object and returns the transformed configuration object.
      Parameters:
      config - The configuration object, typically an immutable builder type which uses method chaining to for defining its properties.
      Returns:
      The fully transformed/updated configuration object.