Interface VGrid.CellFormatter<T>
- Type Parameters:
T
- the Item type
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 Summary
Modifier and TypeMethodDescriptionstatic String
defaultVaadinFormatting
(Object value) formatColumnValue
(VGrid.VColumn<T> col, Object value) Formats the value in a raw data column.
-
Method Details
-
defaultVaadinFormatting
-
formatColumnValue
Formats the value in a raw data column. By default, nulls are rendered as "" and non-nulls with String.valueOf(Object).- Parameters:
col
- the columnvalue
- the value to render in the cell- Returns:
- String representation of the value to be sent to client
-