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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SortgetSortOrder(Table.SortInfo sortInfo) Converts the sorting information from aTable.SortInfoobject to aSortobject.static SortgetSortOrder(List<DataGrid.SortOrder> sortOrders) Converts the sorting information from a list ofDataGrid.SortOrderobjects to aSortobject.
-
Constructor Details
-
ExporterSortHelper
public ExporterSortHelper()
-
-
Method Details
-
getSortOrder
Converts the sorting information from aTable.SortInfoobject to aSortobject.- Parameters:
sortInfo- The sorting information from a Table component. Can benull.- Returns:
- A
Sortobject representing the sorting information, ornullifsortInfoisnull.
-
getSortOrder
Converts the sorting information from a list ofDataGrid.SortOrderobjects to aSortobject.- Parameters:
sortOrders- The list of sorting information from a DataGrid component. Can benull.- Returns:
- A
Sortobject representing the sorting information, ornullifsortOrdersisnull.
-