You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by sa...@apache.org on 2009/07/17 16:32:19 UTC
svn commit: r795100 -
/incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/LargeDatasetDemo.java
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);