Package io.jmix.gridexportui.exporter
Class ExporterSortHelper
java.lang.Object
io.jmix.gridexportui.exporter.ExporterSortHelper
Helper class for extracting sorting information from Jmix UI components.
Provides methods to convert sorting information from
Table.SortInfo
and
DataGrid.SortOrder
to Sort
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Sort
getSortOrder
(Table.SortInfo sortInfo) Converts the sorting information from aTable.SortInfo
object to aSort
object.static Sort
getSortOrder
(List<DataGrid.SortOrder> sortOrders) Converts the sorting information from a list ofDataGrid.SortOrder
objects to aSort
object.
-
Constructor Details
-
ExporterSortHelper
public ExporterSortHelper()
-
-
Method Details
-
getSortOrder
Converts the sorting information from aTable.SortInfo
object to aSort
object.- Parameters:
sortInfo
- The sorting information from a Table component. Can benull
.- Returns:
- A
Sort
object representing the sorting information, ornull
ifsortInfo
isnull
.
-
getSortOrder
Converts the sorting information from a list ofDataGrid.SortOrder
objects to aSort
object.- Parameters:
sortOrders
- The list of sorting information from a DataGrid component. Can benull
.- Returns:
- A
Sort
object representing the sorting information, ornull
ifsortOrders
isnull
.
-