Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

PagingScrollTable from google-web-toolkit-incubator

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i found PagingScrollTable demo from google-web-toolkit-incubator jar.

http://collectionofdemos.appspot.com/demo/com.google.gwt.gen2.demo.scrolltable.PagingScrollTableDemo/PagingScrollTableDemo.html

it's good.
but i doesn't get any simple example for how to use it.
did any one used this PagingScrollTable widget??
if yes please help me with an simple example specifying how to use use it.
 
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which part are you having problems understanding? Paging? Scrolling? Table?

I have not used this component, but paging is simple.
As you know, MVC separates the data from the presentation.
Imagine you got 100 records and your page size is 10 (max 10 records will be displayed at one time)
To navigate between the records, you need to provide the user with some controls (typically the previous/next button)

In pseudo code
1) Keep a counter for the page. defaults to 0
2) Have a RPC method which will accept this counter and return the appropriate records. e.g. If the counter is 1 you return records from 10-20
3) When the call returns the data, load them in your model and update your UI with this new set of data.
 
Nilesh Pat
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it's not my problem.

there is a widget called PagingScrollTable in google-web-toolkit-incubator jar.
it gives all paging, scrolling in a table itself.
as i gave a url in my last post.

so i tryed to use it.
but it's complicated and i didn't got any simple example on internet.
so i was asking if anyone used it or any one know how to implement this widget.
 
That is a really big piece of pie for such a tiny ad:
professionally read, modify and write PDF files from Java
https://products.aspose.com/pdf/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!