diff options
author | Aleksi Hietanen <aleksi@vaadin.com> | 2016-09-21 09:13:12 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2016-09-23 06:15:02 +0000 |
commit | 4d16c72c32ce67204ff49a5b45c5ce3e5288b86e (patch) | |
tree | 0110a3afd8157875bfa88118ffaddd9157dbd922 /shared | |
parent | f12fbfb7044defc8442d05e6810c43875c04710c (diff) | |
download | vaadin-framework-4d16c72c32ce67204ff49a5b45c5ce3e5288b86e.tar.gz vaadin-framework-4d16c72c32ce67204ff49a5b45c5ce3e5288b86e.zip |
Reintroduce grid column sizing
Change-Id: Ie5e91c3e9c8f2c9d8c05415d5602e2eaf3bd960b
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/ui/grid/ColumnState.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/grid/ColumnState.java b/shared/src/main/java/com/vaadin/shared/ui/grid/ColumnState.java index c789988cb5..8296dd8660 100644 --- a/shared/src/main/java/com/vaadin/shared/ui/grid/ColumnState.java +++ b/shared/src/main/java/com/vaadin/shared/ui/grid/ColumnState.java @@ -33,5 +33,29 @@ public class ColumnState extends SharedState { /** Whether the column can be hidden by the user. */ public boolean hidable = false; + /** + * Column width in pixels. Default column width is + * {@value GridConstants#DEFAULT_COLUMN_WIDTH_PX}. + */ + public double width = GridConstants.DEFAULT_COLUMN_WIDTH_PX; + + /** How much of the remaining space this column will reserve. */ + public int expandRatio = GridConstants.DEFAULT_EXPAND_RATIO; + + /** + * The maximum expansion width of this column. -1 for "no maximum". If + * maxWidth is less than the calculated width, maxWidth is ignored. + */ + public double maxWidth = GridConstants.DEFAULT_MAX_WIDTH; + + /** + * The minimum expansion width of this column. -1 for "no minimum". If + * minWidth is less than the calculated width, minWidth will win. + */ + public double minWidth = GridConstants.DEFAULT_MIN_WIDTH; + + /** Whether this column is resizable by the user. */ + public boolean resizable = true; + public Connector renderer; } |