On Tuesday, March 29, 2011 6:43:14 PM UTC+2, Yaakov wrote: > > On Tue, Mar 29, 2011 at 12:17 PM, Thomas Broyer <[email protected]> wrote: > > > > > > On Tuesday, March 29, 2011 6:14:35 PM UTC+2, Yaakov wrote: > >> > >> Ok, I'll try to find it. Thanks. > >> > >> What about #2? How would one accomplish that? > > > > I'd go a similar path: copy EditTextCell and make it generate a <select> > and > > <option>s instead of the <input type=text> (probably copy some code from > > SelectionCell) > > Ok, I see. so, does it mean that you can only customize a Cell one > level down? I.e., if I start producing my own HTML instead of having > GWT do it, I would lose the functionality I would otherwise have out > of the box... > > Let me make it a bit clearer with regard to what I am asking... > > I would hope that I can have some construct like this: > > CustomCell { > > @Override > public xxx render(xxxx) { > // Render a label > // Render a SelectionCell > } > } > > so, in the pseudo code above, my custom cell would get the > functionality of a GWT Label and of a GWT SelectionCell with all of > its events, etc. > > If I were to start rendering using straight HTML, then I would lose > the events that come out of the box for the SelectionCell. > > So, is something like that possible? >
That's what CompositeCell is about (I haven't tried it though). > In fact, I am currently trying to figure out if it's possible to have > CellTable have one of its columns be another CellTable. Are you saying > that this is not possible? > Another CellTable? not possible (Cell cannot be a Widget). Rendered as a table with each cell having a specific behavior (similar to CellTable, but as a Cell), possible, but not straightforward at all! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
