BestSolution.at public p2 repository
DefaultExportValueFunction
at.bestsolution.framework.grid

Class DefaultExportValueFunction<R,C>

  • java.lang.Object
    • at.bestsolution.framework.grid.DefaultExportValueFunction<R,C>
  • Type Parameters:
    R - row type
    C - cell type
    All Implemented Interfaces:
    ExportValueFunction<R,C>


    public class DefaultExportValueFunction<R,C>
    extends java.lang.Object
    implements ExportValueFunction<R,C>
    Default Export Value implementation.

    null values will be exported as null

    Whole number values will be exported as BigInteger

    Decimal values will be exported as BigDecimal

    Date values will be exported as Date

    all other values will be exported as String

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object apply(R row, C cellValue)
      Apply the function on the value
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultExportValueFunction

        public DefaultExportValueFunction(@NonNull XGridColumn<R,C> column)
        Parameters:
        column - the column
    • Method Detail

      • apply

        public java.lang.Object apply(R row,
                                      C cellValue)
        Description copied from interface: ExportValueFunction
        Apply the function on the value
        Specified by:
        apply in interface ExportValueFunction<R,C>
        Parameters:
        row - the row
        cellValue - the cell
        Returns:
        the value to present in the UI