Module is.codion.swing.common.model
Class AbstractFilterModelRefresher<T>
java.lang.Object
is.codion.common.model.FilterModel.AbstractRefresher<T>
is.codion.swing.common.model.component.AbstractFilterModelRefresher<T>
- Type Parameters:
T- the model row type
- All Implemented Interfaces:
is.codion.common.model.FilterModel.Refresher<T>
public abstract class AbstractFilterModelRefresher<T>
extends is.codion.common.model.FilterModel.AbstractRefresher<T>
A default swing based
FilterModel.Refresher.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFilterModelRefresher(Supplier<Collection<T>> supplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidrefreshAsync(Consumer<Collection<T>> onRefresh) protected final voidrefreshSync(Consumer<Collection<T>> onRefresh) protected final booleanMethods inherited from class is.codion.common.model.FilterModel.AbstractRefresher
async, failure, notifyFailure, notifySuccess, observer, processResult, refresh, setRefreshing, success, supplier
-
Constructor Details
-
AbstractFilterModelRefresher
- Parameters:
supplier- supplies the items
-
-
Method Details
-
supportsAsyncRefresh
protected final boolean supportsAsyncRefresh()- Specified by:
supportsAsyncRefreshin classis.codion.common.model.FilterModel.AbstractRefresher<T>
-
refreshAsync
- Specified by:
refreshAsyncin classis.codion.common.model.FilterModel.AbstractRefresher<T>
-
refreshSync
- Specified by:
refreshSyncin classis.codion.common.model.FilterModel.AbstractRefresher<T>
-