diff options
author | Denis Anisimov <denis@vaadin.com> | 2014-11-02 13:11:09 +0200 |
---|---|---|
committer | Sauli Tähkäpää <sauli@vaadin.com> | 2015-01-20 13:46:02 +0200 |
commit | 1951fe6e402e2440cfa0f2ac9937904daeed3e47 (patch) | |
tree | 2bea9f0b2f3df8c6fcc3739dbf0beda34ae3642f /server/src/com/vaadin/ui | |
parent | 052a6999e98ee72ec2e56b544b5bb62db36e1e1d (diff) | |
download | vaadin-framework-1951fe6e402e2440cfa0f2ac9937904daeed3e47.tar.gz vaadin-framework-1951fe6e402e2440cfa0f2ac9937904daeed3e47.zip |
ICON_ONLY mode should not show icon row header for TreeTable (#14799).
Change-Id: If854186547e3d7b8e67710113ec6754bc84ace2f
Diffstat (limited to 'server/src/com/vaadin/ui')
-rw-r--r-- | server/src/com/vaadin/ui/Table.java | 2 | ||||
-rw-r--r-- | server/src/com/vaadin/ui/TreeTable.java | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/Table.java b/server/src/com/vaadin/ui/Table.java index 34d48a9b18..a0d9896770 100644 --- a/server/src/com/vaadin/ui/Table.java +++ b/server/src/com/vaadin/ui/Table.java @@ -3854,7 +3854,7 @@ public class Table extends AbstractSelect implements Action.Container, } } - private boolean rowHeadersAreEnabled() { + protected boolean rowHeadersAreEnabled() { return getRowHeaderMode() != ROW_HEADER_MODE_HIDDEN; } diff --git a/server/src/com/vaadin/ui/TreeTable.java b/server/src/com/vaadin/ui/TreeTable.java index 9bca20587b..63b54a6ced 100644 --- a/server/src/com/vaadin/ui/TreeTable.java +++ b/server/src/com/vaadin/ui/TreeTable.java @@ -411,6 +411,14 @@ public class TreeTable extends Table implements Hierarchical { } @Override + protected boolean rowHeadersAreEnabled() { + if (getRowHeaderMode() == RowHeaderMode.ICON_ONLY) { + return false; + } + return super.rowHeadersAreEnabled(); + } + + @Override public void changeVariables(Object source, Map<String, Object> variables) { super.changeVariables(source, variables); |