diff options
author | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2017-05-16 15:53:49 +0300 |
---|---|---|
committer | Aleksi Hietanen <aleksi@vaadin.com> | 2017-05-16 15:53:49 +0300 |
commit | da773250ca4b50a2994ef07dbb0b4cf1fa9da4ac (patch) | |
tree | 819db6d8d32668efb8e23213b745843e1ded0c08 /client | |
parent | bac4c82d5258202caa3dfde2554e726a26439adc (diff) | |
download | vaadin-framework-da773250ca4b50a2994ef07dbb0b4cf1fa9da4ac.tar.gz vaadin-framework-da773250ca4b50a2994ef07dbb0b4cf1fa9da4ac.zip |
Remove unnecessary rowmode prefix from TreeGrid focus styles (#9327)
Diffstat (limited to 'client')
-rw-r--r-- | client/src/main/java/com/vaadin/client/widget/treegrid/TreeGrid.java | 5 | ||||
-rwxr-xr-x | client/src/main/java/com/vaadin/client/widgets/Grid.java | 8 |
2 files changed, 2 insertions, 11 deletions
diff --git a/client/src/main/java/com/vaadin/client/widget/treegrid/TreeGrid.java b/client/src/main/java/com/vaadin/client/widget/treegrid/TreeGrid.java index 86c7f7c53e..fb66bebb7d 100644 --- a/client/src/main/java/com/vaadin/client/widget/treegrid/TreeGrid.java +++ b/client/src/main/java/com/vaadin/client/widget/treegrid/TreeGrid.java @@ -54,9 +54,4 @@ public class TreeGrid extends Grid<JsonObject> { public HandlerRegistration addBodyClickHandler(BodyClickHandler handler) { return addHandler(handler, TreeGridClickEvent.TYPE); } - - @Override - protected String getFocusPrimaryStyleName() { - return getStylePrimaryName() + "-rowmode"; - } } diff --git a/client/src/main/java/com/vaadin/client/widgets/Grid.java b/client/src/main/java/com/vaadin/client/widgets/Grid.java index f94c45f780..fb59329883 100755 --- a/client/src/main/java/com/vaadin/client/widgets/Grid.java +++ b/client/src/main/java/com/vaadin/client/widgets/Grid.java @@ -6217,8 +6217,8 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>, rowSelectedStyleName = rowStyle + "-selected"; rowStripeStyleName = rowStyle + "-stripe"; - cellFocusStyleName = getFocusPrimaryStyleName() + "-cell-focused"; - rowFocusStyleName = getFocusPrimaryStyleName() + "-row-focused"; + cellFocusStyleName = getStylePrimaryName() + "-cell-focused"; + rowFocusStyleName = getStylePrimaryName() + "-row-focused"; if (isAttached()) { refreshHeader(); @@ -6227,10 +6227,6 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>, } } - protected String getFocusPrimaryStyleName() { - return getStylePrimaryName(); - } - /** * Creates the escalator updater used to update the header rows in this * grid. The updater is invoked when header rows or columns are added or |