FlowPanel -> WidgetList -> DataGrid
Your comments above about the contraints are what made me ask my question in the first place. I even set the size of the DataGrid to 100% on the hunch that that would meet your rule that it must be "explicitly sized". Granted, I am not sizing the columns, which you also mention. Regardless, if my understanding is correct, in order to use DataGrid and CellTable interchangeably, I would have to make some changes.
On Sunday, December 2, 2012 4:26:24 PM UTC-5, Thomas Broyer wrote:
--
On Sunday, December 2, 2012 1:29:22 AM UTC+1, Tony B wrote:So does this means they cannot be used interchangeably? For instance, I have a table. When I define it as a "CellTable", it works fine. But when I simple change it to a DataGrid ( no other changes ), it does not work."Does not work" is not really helpful.Your comments suggest that I need to do some extra steps for DataGrid. I am just trying to confirm my understanding. Thanks
- CellTable example:
private AbstractCellTable<FacilityModel> facilityTable;
facilityTable = new CellTable<FacilityModel>();
- DataGrid example:
private AbstractCellTable<FacilityModel> facilityTable;
facilityTable = new DataGrid<FacilityModel>();
As stated above, the ONLY difference is the creation statement, which I highlighted in yellow above. Thanks.
On Saturday, December 31, 2011 5:38:52 AM UTC-5, Thomas Broyer wrote:DataGrid and CellTable both display data in similar ways; but DataGrid has fixed column headers with scrollable content (have a look at the Showcase: http://gwt.google.com/samples/Showcase/Showcase. vs. http://html#!CwCellTable gwt.google.com/samples/ )Showcase/Showcase.html#! CwDataGrid Note that DataGrid comes with a few constraints: it's a RequiresResize so it must be put inside a ProvidesResize widget or be explicitly sized, and it has fixed-width columns.So, which is the parent widget of facilityTable?To read more about RequiresResize/ProvidesResize, see https://developers.google.com/web-toolkit/doc/latest/ DevGuideUiPanels#Resize
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/01Pwucbgn1YJ.
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