From ed5b1f2c279c37ba80da179f92fd66a4e43342f9 Mon Sep 17 00:00:00 2001 From: Johannes Dahlström Date: Tue, 29 Sep 2015 17:57:14 +0300 Subject: 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 --- shared/src/com/vaadin/shared/ui/grid/GridColumnState.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'shared/src/com') 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; } -- cgit v1.2.3