4) protected class ResidentListAsyncAdapter extends
AsyncListViewAdapter<ResidencyListV>{
@Override
protected void onRangeChanged(ListView<ResidencyListV> view) {
Range newRange = view.getRange();
loadCellData(newRange.getStart(), newRange.getLength());
}
}
Becomes
protected class ResidentListAsyncAdapter extends
AsyncDataProvider<ResidencyListV>{
@Override
protected void onRangeChanged(HasData<ResidencyListV> view) {
Range newRange = view.getVisibleRange();
loadCellData(newRange.getStart(), newRange.getLength());
}
}
5) residentListAdapter.addView(theTable);
Now becomes
residentListAdapter.addDataDisplay(theTable)
6) residentListAdapter.updateDataSize(result.getNumTotalRecords(),
true);
Becomes
residentListAdapter.updateRowCount(result.getNumTotalRecords(),
true);
7) residentListAdapter.updateViewData(startIndex,
result.getRecords().size(), result.getRecords());
Becomes
residentListAdapter.updateRowData(startIndex,
result.getRecords());
8) residentTableSelModel.addSelectionChangeHandler(new
SelectionChangeHandler(){
@Override
public void onSelectionChange(SelectionChangeEvent event) {
.....
}
});
Becomes
residentTableSelModel.addSelectionChangeHandler(new
SelectionChangeEvent.Handler() {
@Override
public void onSelectionChange(SelectionChangeEvent event) {
.....
}
});
I think that was all the changes I had to make.
On Aug 31, 10:38 pm, Paul Stockley <pstockl...@gmail.com> wrote:
> I managed to convert my code without too many problems. This release
> has fixed a few issues I was having so I am happy.
>
> There are quite a few changes required:
>
> 1) thePager = new SimplePager<R>(theTable);
> theTable.setPager(thePager);
>
> Now becomes
>
> thePager = new SimplePager();
> thePager.setDisplay(theTable);
>
> 2) theTable.setSelectionEnabled(true);
>
> Has been removed. I just commented it out and the
> table still supports selection. I haven't investigated what this has
> been replaced with yet
>
> 3) theTable.refreshHeaders();
>
> Now becomes
>
> theTable.redrawHeaders();
>
> 4) residentListAdapter.addView(theTable);
>
> On Aug 31, 2:51 pm, Christian Goudreau <goudreau.christ...@gmail.com>
> wrote:
>
>
>
>
>
>
>
> > Yeah they changed a lot of thing, I'm also struggling to get my CellTable
> > back to work.
>
> > Cheers,
>
> > On Tue, Aug 31, 2010 at 2:44 PM, chiappone <chiapp...@gmail.com> wrote:
> > > I am also struggling to get a simple CellTable working with M3.
>
> > > Javadocs are included with the SDK locally if you need them.
>
> > > On Aug 31, 11:01 am, John <bradley.r...@gmail.com> wrote:
> > > > I just downloaded the eclipse plugin and sdk for 2.1M3 using the
> > > > eclipse software installer. I'm trying to create a simple CellTable
> > > > example based on another post (http://groups.google.com/group/google-
> > > > web-toolkit/browse_thread/thread/85dd53d3183e7b9a) but the class
> > > > ListViewAdapter doesn't exist in the the sdk I have ... the only L
> > > > class in com.google.gwt.view.client is ListDataProvider - which
> > > > doesn't even exist in the javadocs (http://google-web-
> > > > toolkit.googlecode.com/svn/javadoc/2.1/index.html?com/google/gwt/
> > > > view/)
>
> > > > Am I completely missing something or is the download repo for Gallileo
> > > > just on the wrong version? (http://google-web-toolkit.googlecode.com/
> > > > svn/2.1.0.M3/eclipse/plugin/3.5)
>
> > > > Thanks,
> > > > John
>
> > > --
> > > 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<google-web-toolkit%2Bunsubs cribe@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > Christian Goudreauwww.arcbees.com
--
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.
No comments:
Post a Comment