Re: Scrolling CellList sample?
Ahh, thanks for the hint, Joe. I can't say I understand this yet, but
it looks like this is what needed to be changed:
From this:
cellList.setRowData(0, LIST);
to this:
ListDataProvider<String> dataProvider =
new ListDataProvider<String>(LIST);
dataProvider.addDataDisplay(cellList);
Now I need to try to understand why that made the difference. I think
I'll need to study the source code; the documentation for the cell
widgets is sparse.
On Jun 10, 10:00 pm, Jim Douglas <jdou...@basis.com> wrote:
> Can you elaborate on that a bit? How would you change that sample?
>
> On Jun 10, 9:13 pm, Qian Qiao <qian.q...@gmail.com> wrote:
>
>
>
> > On Fri, Jun 10, 2011 at 20:54, Jim Douglas <jdou...@basis.com> wrote:
> > > Thanks for the response, Joe.
>
> > > I'm sure the general idea is the same, but the UiBinder stuff is
> > > gibberish to me; translating UiBinder code to traditional code is
> > > making my head hurt.
>
> > > I *think* I copied all of the relevant pieces out of the sample, but
> > > I'm clearly missing something. I get a page of items, but the
> > > ScrollPanel doesn't appear to be working. Does anything in this jump
> > > out at you as obviously wrong?
>
> > >[snip]
>
> > > On Jun 10, 5:26 pm, Qian Qiao <qian.q...@gmail.com> wrote:
> > >> On Fri, Jun 10, 2011 at 14:57, Jim Douglas <jdou...@basis.com> wrote:
> > >> > I thought it would be a trivial matter to build a scrolling CellList
> > >> > like the one in the showcase:
>
> > >> >http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellList
>
> > >> > But I need to work with hand-coded GWT Widgets, and that sample is
> > >> > based on UiBinder. Can anyone point me to a sample like the one in
> > >> > the showcase (a large scrolling list) that does not use UiBinder? The
> > >> > documentation isn't helpful; it's all based on trivial samples like
> > >> > days-of-the-week that don't require scrolling.
>
> > >> The idea's the same regardless of the usage of uibinder isn't it? the
> > >> basic idea is to put the celllist inside a scrollpanel, and then
> > >> listen to scroll events on the scrollpanel, once you reach the bottom,
> > >> load more data.
>
> > >> -- Joe
>
> > You haven't given the cellist a data provider, that's why :)
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home