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

    Modifier and Type
    Method
    Description
    get(D data)
    Getter to read the property value from the data model.
     
    default void
    set(D data, C value)
    Setter to write the property value back to the data model.
  • Method Details

    • 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.
    • set

      default void set(D data, C value)
      Setter to write the property value back to the data model. Only needed for inline editing when UiColumn is not read-only.
      Parameters:
      data -
      value -