]> source.dussan.org Git - vaadin-framework.git/commitdiff
Added a new classname to VScrollTable: now non-selectable table will have .v-table...
authorJouni Koivuviita <jouni.koivuviita@itmill.com>
Thu, 21 May 2009 10:01:39 +0000 (10:01 +0000)
committerJouni Koivuviita <jouni.koivuviita@itmill.com>
Thu, 21 May 2009 10:01:39 +0000 (10:01 +0000)
svn changeset:7932/svn branch:6.0

src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java

index 3978f3cc78b2dec595dc19b2fb67206ed1824a45..b63a82f28a623854efafee71f2f6a53d9a03ec28 100644 (file)
@@ -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;