How to add cell types (TextCell) to CompositeCell?

52 views
Skip to first unread message

membersound

unread,
Jan 9, 2013, 8:49:00 AM1/9/13
to google-we...@googlegroups.com
Hi,

how can I add available cell types (TextCell, ButtonCell, CheckboxCell, DateCell etc) to a CompositeCell?
https://developers.google.com/web-toolkit/doc/latest/DevGuideUiCellWidgets?hl=en#available

List<HasCell<Foo, ?>> cells = new ArrayList<HasCell<Foo,?>>();
cells.add(new ButtonCell()); //not applicable for ButtonCell.
newCompositeCell<Foo>(cells);


I mean: what is the CompositeCell for, if I cannot add existing Cell implementations to it?

Thomas Broyer

unread,
Jan 9, 2013, 8:58:45 AM1/9/13
to google-we...@googlegroups.com
HasCell for CompositeCell is similar to Column for CellTable, you want to "wrap" a Cell within a HasCell.
http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwCellTree (ContactTreeViewModel.java) uses CompositeCell if you're looking for an example.
Reply all
Reply to author
Forward
0 new messages