Class BaseContainerSorter

java.lang.Object
io.jmix.ui.model.impl.BaseContainerSorter
All Implemented Interfaces:
Sorter
Direct Known Subclasses:
CollectionContainerSorter, CollectionPropertyContainerSorter

public abstract class BaseContainerSorter extends Object implements Sorter
Base implementation of sorting collection containers.
  • Field Details

    • beanFactory

      protected org.springframework.beans.factory.BeanFactory beanFactory
  • Constructor Details

    • BaseContainerSorter

      public BaseContainerSorter(CollectionContainer container, org.springframework.beans.factory.BeanFactory beanFactory)
  • Method Details

    • getContainer

      public CollectionContainer getContainer()
    • sort

      public void sort(Sort sort)
      Description copied from interface: Sorter
      Sorts data according to the given Sort parameters.
      Specified by:
      sort in interface Sorter
    • sortInMemory

      protected void sortInMemory(Sort sort)
    • setItemsToContainer

      protected abstract void setItemsToContainer(List list)
    • createComparator

      protected Comparator<?> createComparator(Sort sort, MetaClass metaClass)