Class GroupSortInfoImpl<E>
java.lang.Object
io.jmix.groupgridflowui.component.GroupSortInfoImpl<E>
- Type Parameters:
E- the type of the entity associated with the group column
- All Implemented Interfaces:
GroupSortInfo<E>,PropertySortInfo
Implementation of the
GroupSortInfo interface, representing sort information
for a group column in a data structure.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final @Nullable GroupDataGridColumn<E> protected final List<ColumnSortInfo<E>> -
Constructor Summary
ConstructorsConstructorDescriptionGroupSortInfoImpl(List<ColumnSortInfo<E>> groupingSortInfos, boolean ascending, @Nullable GroupDataGridColumn<E> column) -
Method Summary
Modifier and TypeMethodDescription@Nullable GroupDataGridColumn<E> Returns the group column associated with this sort info, ornullif sorting occurs without explicitly specifying a group column.@Nullable MetaPropertyPathboolean
-
Field Details
-
column
-
groupingSortInfos
-
ascending
protected boolean ascending
-
-
Constructor Details
-
GroupSortInfoImpl
public GroupSortInfoImpl(List<ColumnSortInfo<E>> groupingSortInfos, boolean ascending, @Nullable GroupDataGridColumn<E> column)
-
-
Method Details
-
getGroupingSortInfos
- Specified by:
getGroupingSortInfosin interfaceGroupSortInfo<E>- Returns:
- the list of sort information for the grouping columns
-
getMetaPropertyPath
- Specified by:
getMetaPropertyPathin interfacePropertySortInfo- Returns:
- the meta property path associated with this sort info, or
nullif the column is not bound to a meta property path
-
getGroupColumn
Description copied from interface:GroupSortInfoReturns the group column associated with this sort info, ornullif sorting occurs without explicitly specifying a group column.- Specified by:
getGroupColumnin interfaceGroupSortInfo<E>- Returns:
- the group column
-
isAscending
public boolean isAscending()- Specified by:
isAscendingin interfacePropertySortInfo- Returns:
trueif the sort is ascending,falseotherwise
-