diff options
author | Jouni Koivuviita <jouni.koivuviita@itmill.com> | 2009-05-21 10:01:39 +0000 |
---|---|---|
committer | Jouni Koivuviita <jouni.koivuviita@itmill.com> | 2009-05-21 10:01:39 +0000 |
commit | 58ae67e4b3b5398e293756706546979acb822676 (patch) | |
tree | 159c808f89b55595a3d792697f0b7d94248f7b51 /src | |
parent | 9f8e360dabb5174a52ccda0e62d2207d943c8ee8 (diff) | |
download | vaadin-framework-58ae67e4b3b5398e293756706546979acb822676.tar.gz vaadin-framework-58ae67e4b3b5398e293756706546979acb822676.zip |
Added a new classname to VScrollTable: now non-selectable table will have .v-table-body-noselection added to the table body element.
svn changeset:7932/svn branch:6.0
Diffstat (limited to 'src')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java index 3978f3cc78..b63a82f28a 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java @@ -280,6 +280,13 @@ public class VScrollTable extends FlowPanel implements Table, ScrollListener { sizeInit(); } } + + if (selectMode == Table.SELECT_MODE_NONE) { + tBody.addStyleName(CLASSNAME + "-body-noselection"); + } else { + tBody.removeStyleName(CLASSNAME + "-body-noselection"); + } + hideScrollPositionAnnotation(); purgeUnregistryBag(); rendering = false; @@ -2197,7 +2204,7 @@ public class VScrollTable extends FlowPanel implements Table, ScrollListener { private List<UIDL> pendingComponentPaints; private String[] actionKeys = null; - private TableRowElement rowElement; + private final TableRowElement rowElement; private VScrollTableRow(int rowKey) { this.rowKey = rowKey; |