瀏覽代碼

Fixing JavaDoc of Column#getWidth() and Column#setWidth() (#11452)

Fixes #11451
tags/8.8.0.beta1
Tatu Lund 5 年之前
父節點
當前提交
0ecafa47b5
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6
    1
      server/src/main/java/com/vaadin/ui/Grid.java

+ 6
- 1
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

Loading…
取消
儲存