hey,
replying to my own question.
I figured it out, i wrote my own custom cell, extending SelectionCell
and my own addOption(), clear() methods etc.


On Wed, Jun 8, 2011 at 1:42 PM, Celinio <cel...@gmail.com> wrote:

> Hi,
> this question has already been asked but nobody answered.
>
> http://groups.google.com/group/google-web-toolkit/msg/48a4109232fa2f35
>
> Here is a snippet from the showcase sample :
> http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable
>
> final Category[] categories = ContactDatabase.get().queryCategories();
>     List<String> categoryNames = new ArrayList<String>();
>     for (Category category : categories) {
>       categoryNames.add(category.getDisplayName());
>     }
>     SelectionCell categoryCell = new SelectionCell(categoryNames);
>     Column<ContactInfo, String> categoryColumn = new Column<
>         ContactInfo, String>(categoryCell) {
>       @Override
>       public String getValue(ContactInfo object) {
>         return object.getCategory().getDisplayName();
>       }
>     };
>     cellTable.addColumn(categoryColumn,
> constants.cwCellTableColumnCategory());
>
> I am facing the same problem :
> I am also currently working on a project that requires that each  object in
> the cellTable may have it's own menu list.  Can anyone
> provide any clues as to how I would go about modifying the code so that
> each object/row would have it's own SelectionCell?
>
> Thanks for helping.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to