Module is.codion.swing.common.model
Class AbstractFilteredModelRefresher<T>
java.lang.Object
is.codion.common.model.FilteredModel.AbstractRefresher<T>
is.codion.swing.common.model.component.AbstractFilteredModelRefresher<T>
- Type Parameters:
T- the model row type
- All Implemented Interfaces:
is.codion.common.model.FilteredModel.Refresher<T>
public abstract class AbstractFilteredModelRefresher<T>
extends is.codion.common.model.FilteredModel.AbstractRefresher<T>
A default swing based
FilteredModel.Refresher.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFilteredModelRefresher(Supplier<Collection<T>> itemSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidrefreshAsync(Consumer<Collection<T>> afterRefresh) protected final voidrefreshSync(Consumer<Collection<T>> afterRefresh) protected final booleanMethods inherited from class is.codion.common.model.FilteredModel.AbstractRefresher
addRefreshFailedListener, addRefreshListener, asyncRefresh, itemSupplier, observer, processResult, refresh, refreshEvent, refreshFailedEvent, refreshThen, removeRefreshFailedListener, removeRefreshListener, setRefreshing
-
Constructor Details
-
AbstractFilteredModelRefresher
- Parameters:
itemSupplier- the item supplier
-
-
Method Details
-
supportsAsyncRefresh
protected final boolean supportsAsyncRefresh()- Specified by:
supportsAsyncRefreshin classis.codion.common.model.FilteredModel.AbstractRefresher<T>
-
refreshAsync
- Specified by:
refreshAsyncin classis.codion.common.model.FilteredModel.AbstractRefresher<T>
-
refreshSync
- Specified by:
refreshSyncin classis.codion.common.model.FilteredModel.AbstractRefresher<T>
-