summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/Table.java
diff options
context:
space:
mode:
authorAnna Koskinen <anna@vaadin.com>2013-01-11 14:05:46 +0200
committerAnna Koskinen <anna@vaadin.com>2013-01-11 14:05:46 +0200
commit08b7ea5b1f9a4f5d31b5559d557d36727ea1d26e (patch)
tree213d0b9fb9ec21fef88a56d240ad062c738cfdf6 /server/src/com/vaadin/ui/Table.java
parent5b81a29acc9909d45c2299541228992aeb19813c (diff)
downloadvaadin-framework-08b7ea5b1f9a4f5d31b5559d557d36727ea1d26e.tar.gz
vaadin-framework-08b7ea5b1f9a4f5d31b5559d557d36727ea1d26e.zip
Merge of (#9133) to Vaadin 7.
Sort optimization. Change-Id: I2b75de400acde7fe23574d6439b75e6f05b4eb55
Diffstat (limited to 'server/src/com/vaadin/ui/Table.java')
-rw-r--r--server/src/com/vaadin/ui/Table.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/Table.java b/server/src/com/vaadin/ui/Table.java
index 57f196d704..e73c6d7188 100644
--- a/server/src/com/vaadin/ui/Table.java
+++ b/server/src/com/vaadin/ui/Table.java
@@ -4427,9 +4427,12 @@ public class Table extends AbstractSelect implements Action.Container,
final Container c = getContainerDataSource();
if (c instanceof Container.Sortable) {
final int pageIndex = getCurrentPageFirstItemIndex();
+ boolean refreshingPreviouslyEnabled = disableContentRefreshing();
((Container.Sortable) c).sort(propertyId, ascending);
setCurrentPageFirstItemIndex(pageIndex);
- refreshRowCache();
+ if (refreshingPreviouslyEnabled) {
+ enableContentRefreshing(true);
+ }
} else if (c != null) {
throw new UnsupportedOperationException(