Friday, February 15, 2013

Re: How to get the data out of a CellTable?



On Friday, February 15, 2013 3:43:54 PM UTC+1, membersound wrote:
Hi,

I set the data into a table with: cellTable.setRowData(myList);

But what is the proper way to perform CRUD on this list, or retrieve the whole data of the CellTable?
Especially I'm interested in auto-update of the list when the user changes something within an EditTextCell.

That's easily done with FieldUpdaters on your Columns.

Should I just keep a private List<Foo> in the same class where the cellTable resides? Or should this be done using a ListDataProvider<Foo>?

The one thing data providers do is listening to range-change events (i.e. pagination events); they also make it easier to have multiple simultaneous, synchronized views of the same list, but that's rather an edge case. Data providers also help decoupling your data retrieval from your "screens" (activities, presenters, views, you name them).
This is all independent from the above re. FieldUpdaters.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate