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.
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:
UIForTable.withModel(Configurator)
UIForTable.withModel(Class, Configurator)
UIForTable.withRenderer(Configurator)
UIForList.withRenderer(Configurator)
UIForCombo.withRenderer(Configurator)
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
-
Method Details
-
configure
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.
-