diff options
author | Tatu Lund <tatu@vaadin.com> | 2019-02-12 11:24:54 +0200 |
---|---|---|
committer | Sun Zhe <31067185+ZheSun88@users.noreply.github.com> | 2019-03-06 10:30:35 +0200 |
commit | 3ae9f174d184c68570ae8641c2d4be7ee42a7842 (patch) | |
tree | cc493785f7e8811d20fc83b312ecaa89e81abd0c | |
parent | e6a301851d0b8b7e52d7b17ca4fa041140bc87c5 (diff) | |
download | vaadin-framework-3ae9f174d184c68570ae8641c2d4be7ee42a7842.tar.gz vaadin-framework-3ae9f174d184c68570ae8641c2d4be7ee42a7842.zip |
Fixing JavaDoc of Column#getWidth() and Column#setWidth() (#11452)
Fixes #11451
-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 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<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 @@ -1620,6 +1622,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 |