Module io.github.mmm.ui.api.data
Package io.github.mmm.ui.api.widget.data
Interface UiAbstractDataWidget.ColumnAdapter<D,C>
-
- Type Parameters:
D
- type of the data model.C
- type of the property value (cell value).
- Enclosing interface:
- UiAbstractDataWidget<R>
public static interface UiAbstractDataWidget.ColumnAdapter<D,C>
Interface to read and write the value of a property of the data model.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description C
get(D data)
Getter to read the property value from the data model.Class<C>
getType()
default void
set(D data, C value)
Setter to write the property value back to the data model.
-
-
-
Method Detail
-
getType
Class<C> getType()
- Returns:
- the
Class
reflecting the cell value (e.g.String
,Boolean
,Integer
,BigDecimal
, etc.).
-
get
C get(D data)
Getter to read the property value from the data model.- Parameters:
data
- the data object to read the value from.- Returns:
- the property value from the data object.
-
-