From a250bde2bf0ae47368e3c8d0f339567254b40262 Mon Sep 17 00:00:00 2001 From: jdewaen Date: Fri, 18 Dec 2020 21:40:13 +0100 Subject: 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 --- server/src/main/java/com/vaadin/ui/Grid.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'server') 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 -- cgit v1.2.3