Tuesday, March 29, 2011

Re: Clickable image in a CellTable & changing cell types

On Tue, Mar 29, 2011 at 12:17 PM, Thomas Broyer <t.broyer@gmail.com> 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?

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?

-Yaakov.

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

No comments:

Post a Comment