From: Jouni Koivuviita Date: Thu, 21 May 2009 10:01:39 +0000 (+0000) Subject: Added a new classname to VScrollTable: now non-selectable table will have .v-table... X-Git-Tag: 6.7.0.beta1~2814 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=58ae67e4b3b5398e293756706546979acb822676;p=vaadin-framework.git 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 --- 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 pendingComponentPaints; private String[] actionKeys = null; - private TableRowElement rowElement; + private final TableRowElement rowElement; private VScrollTableRow(int rowKey) { this.rowKey = rowKey;