Show
Ignore:
Timestamp:
07/23/08 09:06:17 (4 months ago)
Author:
magi@…
Message:

Updated book tests: editable tables.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/com/itmill/toolkit/tests/book/TableExample3.java

    r5100 r5113  
    3434        table.addContainerProperty("Comments",       TextField.class, null); 
    3535        table.addContainerProperty("Details",        Button.class,    null); 
    36  
     36         
    3737        /* Add a few items in the table. */ 
    3838        for (int i=0; i<100; i++) { 
     
    7070                          itemId); 
    7171        } 
    72          
    73         /* Show just three rows because they are so high. */ 
     72 
     73        // Show just three rows because they are so high. 
    7474        table.setPageLength(3); 
    7575 
     76        // Initially show the 50th item in the top of the table. 
     77        table.setCurrentPageFirstItemIndex(50); 
     78        //table.setCurrentPageFirstItemId(initial); 
     79         
    7680        layout.addComponent(table); 
    7781    }