Re: Cell List: add non-data rows
Well, you can always wrap your data object and render non-data rows
depending on that:
class Wrapper{
private Data data;
}
CellList<Wrapper> cellList = new CellList<Wrapper>(new MyCell());
class MyCell extends AbstractCell<Wrapper>{
private SomeCell<Data> somecell = ...
@Override
public void render(Cell.Context context, Wrapper value,
SafeHtmlBuilder sb) {
if(value.getData() == null){
// render header into sb, maybe using a cell
}else{
somecell .render(context, value.getData(), db);
}
}
}
You also need to delegate onBrowserEvent to mycell and I think it
should work.
On Sep 13, 2:11 pm, Jens <jens.nehlme...@gmail.com> wrote:
> Have you (or anybody else) found a solution for this?
>
> -- J.
--
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