diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-05-27 11:07:00 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-05-27 09:41:35 +0000 |
commit | 7925e4ce136b98e2807725ffe6ef86f3d40e69bc (patch) | |
tree | 27cdca73e50e4ea21870abafe8b65f5b198d4fff /client | |
parent | 0883983a4d361df61bcc4b6d38bcde2616a8e097 (diff) | |
download | vaadin-framework-7925e4ce136b98e2807725ffe6ef86f3d40e69bc.tar.gz vaadin-framework-7925e4ce136b98e2807725ffe6ef86f3d40e69bc.zip |
Add class name for not editable editor cells (#18021)
Change-Id: Ib9bfb1fd3fe2f3caef745aa0d8fad5913759cb9e
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/widgets/Grid.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/widgets/Grid.java b/client/src/com/vaadin/client/widgets/Grid.java index f1edefc8ba..274daeacb4 100644 --- a/client/src/com/vaadin/client/widgets/Grid.java +++ b/client/src/com/vaadin/client/widgets/Grid.java @@ -1105,6 +1105,7 @@ public class Grid<T> extends ResizeComposite implements public static final int KEYCODE_HIDE = KeyCodes.KEY_ESCAPE; private static final String ERROR_CLASS_NAME = "error"; + private static final String NOT_EDITABLE_CLASS_NAME = "not-editable"; protected enum State { INACTIVE, ACTIVATING, BINDING, ACTIVE, SAVING @@ -1488,6 +1489,8 @@ public class Grid<T> extends ResizeComposite implements columnToWidget.put(column, editor); attachWidget(editor, cell); } + } else { + cell.addClassName(NOT_EDITABLE_CLASS_NAME); } } |