Class GridDataExtractor<T>

java.lang.Object
software.xdev.vaadin.grid_exporter.grid.GridDataExtractor<T>

public class GridDataExtractor<T> extends Object
Extracts the sorted and filtered data from a Grid.

Be aware that this class uses reflection to achieve it's goals.

  • Field Details

    • grid

      protected final com.vaadin.flow.component.grid.Grid<T> grid
  • Constructor Details

    • GridDataExtractor

      public GridDataExtractor(com.vaadin.flow.component.grid.Grid<T> grid)
  • Method Details

    • getSortedAndFilteredData

      public List<List<String>> getSortedAndFilteredData(List<ColumnConfiguration<T>> columnsToExport)
    • getFormattedValue

      protected String getFormattedValue(com.vaadin.flow.component.grid.Grid.Column<T> column, T item)
    • getValueFormatter

      protected <R> Method getValueFormatter(R renderer)
    • getValueProvider

      protected <X> com.vaadin.flow.function.ValueProvider<T,X> getValueProvider(com.vaadin.flow.component.grid.Grid.Column<T> column)
    • getSortedAndFilteredData

      protected Stream<T> getSortedAndFilteredData(com.vaadin.flow.component.grid.Grid<T> grid)