Class ExporterSortHelper

java.lang.Object
io.jmix.gridexportui.exporter.ExporterSortHelper

public class ExporterSortHelper extends Object
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 Details

    • ExporterSortHelper

      public ExporterSortHelper()
  • Method Details

    • getSortOrder

      @Nullable public static Sort getSortOrder(@Nullable Table.SortInfo sortInfo)
      Converts the sorting information from a Table.SortInfo object to a Sort object.
      Parameters:
      sortInfo - The sorting information from a Table component. Can be null.
      Returns:
      A Sort object representing the sorting information, or null if sortInfo is null.
    • getSortOrder

      @Nullable public static Sort getSortOrder(@Nullable List<DataGrid.SortOrder> sortOrders)
      Converts the sorting information from a list of DataGrid.SortOrder objects to a Sort object.
      Parameters:
      sortOrders - The list of sorting information from a DataGrid component. Can be null.
      Returns:
      A Sort object representing the sorting information, or null if sortOrders is null.