Package io.jmix.flowui.component.grid
Class ColumnSortInfoImpl<T>
java.lang.Object
io.jmix.flowui.component.grid.ColumnSortInfoImpl<T>
- Type Parameters:
T- the type of the objects represented in the column
- All Implemented Interfaces:
ColumnSortInfo<T>
Implementation of the
ColumnSortInfo interface representing sorting information for a DataGridColumn.
Provides details about the sorting direction and the meta property path associated with the column.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final DataGridColumn<T> protected final @Nullable MetaPropertyPath -
Constructor Summary
ConstructorsConstructorDescriptionColumnSortInfoImpl(DataGridColumn<T> column, boolean ascending, @Nullable MetaPropertyPath metaPropertyPath) -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the column associated with this sorting information.@Nullable MetaPropertyPathRetrieves theMetaPropertyPathassociated with this sort info, ornullif the column is not bound to a meta property path.booleanIndicates whether the sorting order for the column is ascending.
-
Field Details
-
column
-
metaPropertyPath
-
ascending
protected final boolean ascending
-
-
Constructor Details
-
ColumnSortInfoImpl
public ColumnSortInfoImpl(DataGridColumn<T> column, boolean ascending, @Nullable MetaPropertyPath metaPropertyPath)
-
-
Method Details
-
getMetaPropertyPath
Description copied from interface:ColumnSortInfoRetrieves theMetaPropertyPathassociated with this sort info, ornullif the column is not bound to a meta property path.- Specified by:
getMetaPropertyPathin interfaceColumnSortInfo<T>- Returns:
- the meta property path associated with this sort info
-
getColumn
Description copied from interface:ColumnSortInfoRetrieves the column associated with this sorting information.- Specified by:
getColumnin interfaceColumnSortInfo<T>- Returns:
- the
DataGridColumninstance
-
isAscending
public boolean isAscending()Description copied from interface:ColumnSortInfoIndicates whether the sorting order for the column is ascending.- Specified by:
isAscendingin interfaceColumnSortInfo<T>- Returns:
trueif the column is sorted in ascending order,falseotherwise
-