click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r795100 - /incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/LargeDatasetDemo.java
Date Fri, 17 Jul 2009 14:32:19 GMT
Author: sabob
Date: Fri Jul 17 14:32:18 2009
New Revision: 795100

URL: http://svn.apache.org/viewvc?rev=795100&view=rev
Log:
set table to sorted

Modified:
    incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/LargeDatasetDemo.java

Modified: incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/LargeDatasetDemo.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/LargeDatasetDemo.java?rev=795100&r1=795099&r2=795100&view=diff
==============================================================================
--- incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/LargeDatasetDemo.java
(original)
+++ incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/LargeDatasetDemo.java
Fri Jul 17 14:32:18 2009
@@ -46,20 +46,16 @@
     private CustomerService customerService;
 
     public LargeDatasetDemo() {
-        table = new Table() {
-
-            /**
-             * Sorting must be done on Database, so we override Table build in
-             * sorting to do nothing.
-             */
-            protected void sortRowList() {
-            }
-        };
+        table = new Table();
 
         // Setup customers table
         table.setClass(Table.CLASS_ITS);
         table.setSortable(true);
 
+        // We will sort the data ourselves. We set table sorted attribute to true
+        // so the table doesn't attempt to sort the data
+        table.setSorted(true);
+
         Column column = new Column("name");
         column.setWidth("140px;");
         table.addColumn(column);



Mime
View raw message