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 Details

    • AbstractFilterModelRefresher

      protected AbstractFilterModelRefresher(Supplier<Collection<T>> supplier)
      Parameters:
      supplier - supplies the items
  • Method Details

    • supportsAsyncRefresh

      protected final boolean supportsAsyncRefresh()
      Specified by:
      supportsAsyncRefresh in class is.codion.common.model.FilterModel.AbstractRefresher<T>
    • refreshAsync

      protected final void refreshAsync(Consumer<Collection<T>> onRefresh)
      Specified by:
      refreshAsync in class is.codion.common.model.FilterModel.AbstractRefresher<T>
    • refreshSync

      protected final void refreshSync(Consumer<Collection<T>> onRefresh)
      Specified by:
      refreshSync in class is.codion.common.model.FilterModel.AbstractRefresher<T>