Thursday, August 22, 2013

Build a DataGrid with 2 proxies

Hi guys, 
Is it possible to mix up datas coming from multiples proxies on to a DataGrid or do i have to create a new proxy containing both ?

table = new DataGrid<AProxy>(numRows,
        GWT.<TableResources> create(TableResources.class));
    initWidget(GWT.<Binder> create(Binder.class).createAndBindUi(this));
  
    Column<AProxy, String> nameColumn = new NameColumn();
    table.addColumn(nameColumn, "Acolumn");
    table.setColumnWidth(nameColumn, "25ex");

    table.setColumnWidth(descriptionColumn, "40ex");
    table.addColumn(new CpColumn(), "BColumn");

Would like to add a column like 
    Column<BProxy, String> ficheColumn = new FicheColumn();
    table.addColumn(ficheColumn, "Demandeur");

It says 
The method addColumn(Column<AProxy,?>, String) in the type AbstractCellTable<AProxy> is not applicable for the arguments (Column<BProxy,String>, String)

Regards,

pierre

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment