diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2015-02-04 18:33:30 +0200 |
---|---|---|
committer | Johannes Dahlström <johannesd@vaadin.com> | 2015-02-05 15:47:46 +0000 |
commit | a15f2847950126bc87751c54d977d2f4edd45c04 (patch) | |
tree | 200d9866abb2c9334ca9c38ef58639954c562d27 /shared | |
parent | 50724f2d0d1e225b5c24d097d3c4b8529b7a8f3f (diff) | |
download | vaadin-framework-a15f2847950126bc87751c54d977d2f4edd45c04.tar.gz vaadin-framework-a15f2847950126bc87751c54d977d2f4edd45c04.zip |
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
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/com/vaadin/shared/ui/grid/GridColumnState.java | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ -46,6 +46,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. */ |