HI, Here's an example :

publicMyClass implement EntryPoint , PageLoadHandler {
........

        public void onModuleLoad() {

            tableModel = new TestTableModel();
            cachedTableModel = new CachedTableModel<TestModel>(tableModel);
            cachedTableModel.setPreCachedRowCount(100);
            cachedTableModel.setPostCachedRowCount(100);

            pagingScrollTable = new
PagingScrollTable<TestModel>(cachedTableModel, data, header ,
getDefTable () );
            pagingScrollTable.setPageSize(3);
            pagingScrollTable.setEmptyTableWidget(new HTML ("No hay nada para
ver"));
            pagingScrollTable.setWidth("400px");
            pagingScrollTable.setHeight("200px");
            pagingScrollTable.setFooterGenerated(true);
            pagingScrollTable.setCellSpacing(0);
 
pagingScrollTable.setResizePolicy(ScrollTable.ResizePolicy.FILL_WIDTH);

          FixedWidthGridBulkRenderer<TestModel> bulkRenderer = new
FixedWidthGridBulkRenderer<TestModel>(pagingScrollTable.getDataTable(),
 
pagingScrollTable);
          pagingScrollTable.setBulkRenderer(bulkRenderer);
          pagingScrollTable.addPageLoadHandler(this);

           PagingOptions p = new PagingOptions(pagingScrollTable);
           RootPanel.get().add( pagingScrollTable );
           RootPanel.get().add( p );

      }
....
        public void onPageLoad(PageLoadEvent event) {

                cachedTableModel.clearCache();
                cachedTableModel.setRowCount(tableModel.getRowCount()); /* 
cantidad
de filas dinamicas */
                pagingScrollTable.redraw();

        }

}

not implemented here: TableModel ( get data from the source ),
tableDefinition ( how to display data) ,

I hope helped you !
saludos.


On 29 mar, 11:07, crojay78 <[email protected]> wrote:
> Hi,
>
> I am searching for a running example for PagingScrollTable from
> incubator project. Can somebody provide me something, for me its
> always easier to understand the stuff by playing a bit with the code.
>
> I found a maven example but I could import it to eclipse so that it
> works.
>
> Thanks a lot

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to