Module is.codion.swing.common.model
Interface FilterTableModel.Builder<R,C>
- Type Parameters:
R
- the row typeC
- the column identifer type
- Enclosing interface:
- FilterTableModel<R,
C>
public static interface FilterTableModel.Builder<R,C>
A builder for a
FilterTableModel
.-
Method Summary
Modifier and TypeMethodDescriptionasyncRefresh
(boolean asyncRefresh) build()
filterModelFactory
(TableConditionModel.ConditionModelFactory<C> filterModelFactory) refreshStrategy
(FilterTableModel.RefreshStrategy refreshStrategy) supplier
(Supplier<? extends Collection<R>> supplier) Items failing validation can not be added to the model.
-
Method Details
-
filterModelFactory
FilterTableModel.Builder<R,C> filterModelFactory(TableConditionModel.ConditionModelFactory<C> filterModelFactory) - Parameters:
filterModelFactory
- the column filter model factory- Returns:
- this builder instance
-
supplier
- Parameters:
supplier
- supplies the items- Returns:
- this builder instance
-
validator
Items failing validation can not be added to the model.- Parameters:
validator
- the item validator- Returns:
- this builder instance
-
refreshStrategy
- Parameters:
refreshStrategy
- the refresh strategy to use- Returns:
- this builder instance
- See Also:
-
asyncRefresh
- Parameters:
asyncRefresh
- true if async refresh should be enabled- Returns:
- this builder instance
-
build
FilterTableModel<R,C> build()- Returns:
- a new
FilterTableModel
instance.
-