diff options
author | Tatu Lund <tatu@vaadin.com> | 2018-10-19 12:43:08 +0300 |
---|---|---|
committer | Sun Zhe <31067185+ZheSun88@users.noreply.github.com> | 2018-11-13 16:40:32 +0200 |
commit | 9c821ad8deb863edcdce86d417f1f7ae69731fdc (patch) | |
tree | 6a418a785f8d5bc96d0205dd8990ae98c70136c2 | |
parent | dbd78b64f2eede4e3f50b30755b55fea83d258a2 (diff) | |
download | vaadin-framework-9c821ad8deb863edcdce86d417f1f7ae69731fdc.tar.gz vaadin-framework-9c821ad8deb863edcdce86d417f1f7ae69731fdc.zip |
Improve setStyleGenerator JavaDocs (#11262)
Added note that style generator is not applied to the Editor
See also: https://github.com/vaadin/framework/issues/11169
-rw-r--r-- | server/src/main/java/com/vaadin/ui/Grid.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/src/main/java/com/vaadin/ui/Grid.java b/server/src/main/java/com/vaadin/ui/Grid.java index 1b824cf53f..2a83a8558f 100644 --- a/server/src/main/java/com/vaadin/ui/Grid.java +++ b/server/src/main/java/com/vaadin/ui/Grid.java @@ -1398,6 +1398,9 @@ public class Grid<T> extends AbstractListing<T> implements HasComponents, * cells in this column. Returning null from the generator results in no * custom style name being set. * + * Note: The style generator is applied only to the body cells, not to + * the Editor. + * * @param cellStyleGenerator * the cell style generator to set, not null * @return this column @@ -3311,6 +3314,9 @@ public class Grid<T> extends AbstractListing<T> implements HasComponents, * in this grid. Returning null from the generator results in no custom * style name being set. * + * Note: The style generator is applied only to the body cells, not to + * the Editor. + * * @see StyleGenerator * * @param styleGenerator |