Module is.codion.swing.common.model
Interface FilterListModel.Builder<T>
- Type Parameters:
T- the item type
- Enclosing interface:
FilterListModel<T>
public static interface FilterListModel.Builder<T>
Builds a
FilterListModel-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionasync(boolean async) build()comparator(@Nullable Comparator<T> comparator) onRefreshException(Consumer<Exception> onRefreshException) By default, exceptions during refresh are rethrown, use this method to handle async exceptions differently
-
Method Details
-
comparator
- Parameters:
comparator- the comparator to use when sorting- Returns:
- this builder instance
-
async
- Parameters:
async- true if async refresh should be enabled- Returns:
- this builder instance
-
onRefreshException
By default, exceptions during refresh are rethrown, use this method to handle async exceptions differently- Parameters:
onRefreshException- the exception handler to use during refresh- Returns:
- this builder instance
-
included
- Parameters:
included- thePredicatecontrolling which items should be included- Returns:
- this builder instance
-
build
FilterListModel<T> build()- Returns:
- a new
FilterListModelinstance
-