From a15f2847950126bc87751c54d977d2f4edd45c04 Mon Sep 17 00:00:00 2001 From: Johannes Dahlström Date: Wed, 4 Feb 2015 18:33:30 +0200 Subject: Grid columns can now be marked as non-editable (#16538) Non-editable columns are not assigned editor fields. When the editor is active, any non-editable content is not displayed (this should changein the future). This is separate from setting the property or editor field read-only - in those cases the field is still used to display the data which may not be desired and will fail if there is no converter. Also add Column.setEditorField(Field) and the corresponding getter. Change-Id: Ice17c357895cb63a8e1bfd6abaffc1d803399e98 --- shared/src/com/vaadin/shared/ui/grid/GridColumnState.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'shared') diff --git a/shared/src/com/vaadin/shared/ui/grid/GridColumnState.java b/shared/src/com/vaadin/shared/ui/grid/GridColumnState.java index 070d146736..4c5b2c3a02 100644 --- a/shared/src/com/vaadin/shared/ui/grid/GridColumnState.java +++ b/shared/src/com/vaadin/shared/ui/grid/GridColumnState.java @@ -45,6 +45,12 @@ public class GridColumnState implements Serializable { */ public Connector rendererConnector; + /** + * Whether the values in this column are editable when the editor interface + * is active. + */ + public boolean editable = true; + /** * The connector for the field used to edit cells in this column when the * editor interface is active. -- cgit v1.2.3