From: jdewaen Date: Fri, 18 Dec 2020 20:40:13 +0000 (+0100) Subject: Add getter for presentationProvider in Grid.Column (#10323) (#12060) X-Git-Tag: 7.7.23~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a250bde2bf0ae47368e3c8d0f339567254b40262;p=vaadin-framework.git Add getter for presentationProvider in Grid.Column (#10323) (#12060) Without access to the presentation provider used for a column, it is often not possible to reconstruct the data as shown on the end-user's screen This commit adds a getter method to Grid.Column to allow access to this provider --- diff --git a/server/src/main/java/com/vaadin/ui/Grid.java b/server/src/main/java/com/vaadin/ui/Grid.java index eb90328725..5d7534ae6a 100644 --- a/server/src/main/java/com/vaadin/ui/Grid.java +++ b/server/src/main/java/com/vaadin/ui/Grid.java @@ -1261,6 +1261,18 @@ public class Grid extends AbstractListing implements HasComponents, return valueProvider; } + /** + * Gets the function to get presentations from the value of data in this + * column, based on the row item. + * + * @return the presentation provider function + * + * @since + */ + public ValueProvider getPresentationProvider() { + return presentationProvider; + } + /** * Sets whether the user can sort this column or not. Whether the column * is actually sortable after {@code setSortable(true)} depends on the