diff options
author | Tatu Lund <tatu@vaadin.com> | 2019-02-12 11:24:54 +0200 |
---|---|---|
committer | Anastasia Smirnova <anasmi@utu.fi> | 2019-02-12 11:24:54 +0200 |
commit | 0ecafa47b5e21a8e678d4113da4ca57dd9c7d6df (patch) | |
tree | db49218545350d4dfeef0906e60c86215c12e6b2 /server | |
parent | 4c1919c6ec83ef60f44e688aafe83a2eaf25ef97 (diff) | |
download | vaadin-framework-0ecafa47b5e21a8e678d4113da4ca57dd9c7d6df.tar.gz vaadin-framework-0ecafa47b5e21a8e678d4113da4ca57dd9c7d6df.zip |
Fixing JavaDoc of Column#getWidth() and Column#setWidth() (#11452)
Fixes #11451
Diffstat (limited to 'server')
-rw-r--r-- | server/src/main/java/com/vaadin/ui/Grid.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/server/src/main/java/com/vaadin/ui/Grid.java b/server/src/main/java/com/vaadin/ui/Grid.java index 9ee57512b2..402c93f36d 100644 --- a/server/src/main/java/com/vaadin/ui/Grid.java +++ b/server/src/main/java/com/vaadin/ui/Grid.java @@ -1599,7 +1599,9 @@ public class Grid<T> extends AbstractListing<T> 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 @@ -1678,6 +1680,9 @@ public class Grid<T> extends AbstractListing<T> implements HasComponents, * This defines the minimum guaranteed pixel width of the column * <em>when it is set to expand</em>. * + * Note: Value -1 is not accepted, use {@link #setWidthUndefined()} + * instead. + * * @param pixels * the minimum width for the column * @throws IllegalStateException |