]> source.dussan.org Git - vaadin-framework.git/commit
Add presentation value providers for Grid (#9553)
authorTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>
Tue, 27 Jun 2017 12:42:01 +0000 (15:42 +0300)
committerHenri Sara <henri.sara@gmail.com>
Tue, 27 Jun 2017 12:42:01 +0000 (15:42 +0300)
commite4e2328a3a78d652cd09ef8293f233d31d899415
tree26d0b17179952e662ab8559269154715ba10c265
parent65ac37ae63f65d17731dafdab85f0be53158ae78
Add presentation value providers for Grid (#9553)

This patch changes Grid Columns, so they can have different value and presentation types. A presentation provider can be given when setting the renderer for a column. This provider takes the value of the column on a row and chooses what to present for this value. Using this approach it is easier to have an editor for the actual backing data instead of the presentation of it.

Fixes #8656
Resolves #9588
all/src/main/templates/release-notes.html
documentation/components/components-grid.asciidoc
server/src/main/java/com/vaadin/ui/Grid.java
uitest/src/main/java/com/vaadin/tests/components/grid/GridColumnPresentation.java [new file with mode: 0644]
uitest/src/test/java/com/vaadin/tests/components/grid/GridColumnPresentationTest.java [new file with mode: 0644]