Interface VGrid.CellFormatter<T>

Type Parameters:
T - the Item type
Enclosing class:
VGrid<T>

public static interface VGrid.CellFormatter<T>
An interface to configure formatting of all data cells in the Grid. Not that this does not apply to columns defined with custom renderer.
  • Method Details

    • defaultVaadinFormatting

      static String defaultVaadinFormatting(Object value)
    • formatColumnValue

      String formatColumnValue(VGrid.VColumn<T> col, Object value)
      Formats the value in a raw data column. By default, nulls are rendered as "" and non-nulls with String.valueOf(Object).
      Parameters:
      col - the column
      value - the value to render in the cell
      Returns:
      String representation of the value to be sent to client