diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2015-09-29 17:57:14 +0300 |
---|---|---|
committer | Johannes Dahlström <johannesd@vaadin.com> | 2015-10-08 13:10:46 +0300 |
commit | ed5b1f2c279c37ba80da179f92fd66a4e43342f9 (patch) | |
tree | 10b9f0017958a07ad517302c715d021b0faf853b /shared | |
parent | ab5f80bb20550a04bb0b6cf0c2208863b41dcf91 (diff) | |
download | vaadin-framework-ed5b1f2c279c37ba80da179f92fd66a4e43342f9.tar.gz vaadin-framework-ed5b1f2c279c37ba80da179f92fd66a4e43342f9.zip |
Add API for setting Grid columns resizable (#16838)
By default columns can be drag-resized by the user. This can be changed on a
column-by-column basis.
Change-Id: I8354e270db9affe865d1444d6cccbe8c839a3b5b
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/com/vaadin/shared/ui/grid/GridColumnState.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/shared/src/com/vaadin/shared/ui/grid/GridColumnState.java b/shared/src/com/vaadin/shared/ui/grid/GridColumnState.java index 547a4a84ca..98fa553330 100644 --- a/shared/src/com/vaadin/shared/ui/grid/GridColumnState.java +++ b/shared/src/com/vaadin/shared/ui/grid/GridColumnState.java @@ -58,7 +58,7 @@ public class GridColumnState implements Serializable { public Connector editorConnector; /** - * Are sorting indicators shown for a column. Default is false. + * Whether this column is sortable by the user */ public boolean sortable = false; @@ -77,10 +77,10 @@ public class GridColumnState implements Serializable { */ public double minWidth = GridConstants.DEFAULT_MIN_WIDTH; - /** Is the column currently hidden. */ + /** Whether this column is currently hidden. */ public boolean hidden = false; - /** Can the column be hidden by the UI. */ + /** Whether the column can be hidden by the user. */ public boolean hidable = false; /** The caption for the column hiding toggle. */ @@ -88,4 +88,7 @@ public class GridColumnState implements Serializable { /** Column header caption */ public String headerCaption; + + /** Whether this column is resizable by the user. */ + public boolean resizable = true; } |