Re: CellTable SelectionCell or only text within a column

2011-02-12 Thread Thomas Visser
A column can only have one cell, which can't be changed on a row by
row basis. You could subclass SelectionCell and override render to
return the output of its super's render or the output of a TextCell
that you'll store in an attribute.

On Feb 12, 5:07 am, Sydney sydney.henr...@gmail.com wrote:
 In a column of a CellTable I would like to display either a combo box list
 or just a String depending on the value. I could just disable the combo box
 in the case I don't want the value to be editable but I was wondering if
 there was a way to display different type of cell (SelectionCell and
 CellSafeHtml) depending on a value.

-- 
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.



CellTable SelectionCell or only text within a column

2011-02-11 Thread Sydney
In a column of a CellTable I would like to display either a combo box list 
or just a String depending on the value. I could just disable the combo box 
in the case I don't want the value to be editable but I was wondering if 
there was a way to display different type of cell (SelectionCell and 
CellSafeHtml) depending on a value.

-- 
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.