aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2007-04-19 11:17:05 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2007-04-19 11:17:05 +0000
commitefce86093f2dfc670129c2ecb5f975740085a074 (patch)
tree1082b891b390ffba73dafca1676ec018f9e78223
parent47c360cde636ce70fff46f5e3376e27813503ab6 (diff)
downloadvaadin-framework-efce86093f2dfc670129c2ecb5f975740085a074.tar.gz
vaadin-framework-efce86093f2dfc670129c2ecb5f975740085a074.zip
fixes #618
svn changeset:1277/svn branch:trunk
-rw-r--r--src/com/itmill/toolkit/ui/Table.java28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/com/itmill/toolkit/ui/Table.java b/src/com/itmill/toolkit/ui/Table.java
index ba40c43574..96d821be66 100644
--- a/src/com/itmill/toolkit/ui/Table.java
+++ b/src/com/itmill/toolkit/ui/Table.java
@@ -1293,20 +1293,22 @@ public class Table extends Select implements Action.Container,
// Sorting
boolean doSort = false;
- if (variables.containsKey("sortcolumn")) {
- String colId = (String) variables.get("sortcolumn");
- if (colId != null && !"".equals(colId) && !"null".equals(colId)) {
- Object id = this.columnIdMap.get(colId);
- setSortContainerPropertyId(id);
- doSort = true;
+ if(!this.sortDisabled) {
+ if (variables.containsKey("sortcolumn")) {
+ String colId = (String) variables.get("sortcolumn");
+ if (colId != null && !"".equals(colId) && !"null".equals(colId)) {
+ Object id = this.columnIdMap.get(colId);
+ setSortContainerPropertyId(id);
+ doSort = true;
+ }
}
- }
- if (variables.containsKey("sortascending")) {
- boolean state = ((Boolean) variables.get("sortascending"))
- .booleanValue();
- if (state != this.sortAscending) {
- setSortAscending(state);
- doSort = true;
+ if (variables.containsKey("sortascending")) {
+ boolean state = ((Boolean) variables.get("sortascending"))
+ .booleanValue();
+ if (state != this.sortAscending) {
+ setSortAscending(state);
+ doSort = true;
+ }
}
}
if (doSort)