From 3ae9f174d184c68570ae8641c2d4be7ee42a7842 Mon Sep 17 00:00:00 2001 From: Tatu Lund Date: Tue, 12 Feb 2019 11:24:54 +0200 Subject: Fixing JavaDoc of Column#getWidth() and Column#setWidth() (#11452) Fixes #11451 --- server/src/main/java/com/vaadin/ui/Grid.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/src/main/java/com/vaadin/ui/Grid.java b/server/src/main/java/com/vaadin/ui/Grid.java index 3d687136cd..88ebaac9c6 100644 --- a/server/src/main/java/com/vaadin/ui/Grid.java +++ b/server/src/main/java/com/vaadin/ui/Grid.java @@ -1541,7 +1541,9 @@ public class Grid extends AbstractListing implements HasComponents, } /** - * Returns the width (in pixels). By default a column is 100px wide. + * Returns the width (in pixels). By default a column width is + * {@value com.vaadin.shared.ui.grid.GridConstants#DEFAULT_COLUMN_WIDTH_PX} + * (undefined). * * @return the width in pixels of the column * @throws IllegalStateException @@ -1620,6 +1622,9 @@ public class Grid extends AbstractListing implements HasComponents, * This defines the minimum guaranteed pixel width of the column * when it is set to expand. * + * Note: Value -1 is not accepted, use {@link #setWidthUndefined()} + * instead. + * * @param pixels * the minimum width for the column * @throws IllegalStateException -- cgit v1.2.3