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 Details

    • AbstractFilteredModelRefresher

      protected AbstractFilteredModelRefresher(Supplier<Collection<T>> itemSupplier)
      Parameters:
      itemSupplier - the item supplier
  • Method Details

    • supportsAsyncRefresh

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

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

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