Package io.jmix.flowui.model.impl
Class BaseContainerSorter
java.lang.Object
io.jmix.flowui.model.impl.BaseContainerSorter
- All Implemented Interfaces:
Sorter
- Direct Known Subclasses:
CollectionContainerSorter
,CollectionPropertyContainerSorter
Base implementation of sorting collection containers.
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.beans.factory.BeanFactory
-
Constructor Summary
ConstructorDescriptionBaseContainerSorter
(CollectionContainer<?> container, org.springframework.beans.factory.BeanFactory beanFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected Comparator<?>
createComparator
(Sort sort, MetaClass metaClass) protected abstract void
setItemsToContainer
(List<?> list) void
Sorts data according to the givenSort
parameters.protected void
sortInMemory
(Sort sort)
-
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