looks like my IDE has helped me to solve this.
I had to implement:
@Override
public void render(Context context, Contact value, SafeHtmlBuilder sb) {
Window.alert("Called 2");
sb.appendEscaped(value.name);
}
Context is a public static subclass of Cell. Is this a changed applied
only since GWT 2.1.1?
On Sat, Jan 22, 2011 at 1:54 PM, Edvinas Bartkus <[email protected]> wrote:
> From the provided examples by GWT team I try to implement Cell widgets.
>
> private static class Info {
> public String info;
> public Info(String info) { this.info = info; }
> public String getInfo() { return this.info; }
> }
>
> private static class InfoCell extends AbstractCell<Info> {
> public void render(Info info, Object key, SafeHtmlBuilder sb) {
> sb.appendEscaped(info.getInfo());
> }
> }
>
> new CellList<Info>(new InfoCell());
>
> This code doesn't work:
>
> ERROR: Line 7: The type InfoCell must implement the inherited abstract
> method AbstractCell<Info>.render(Cell.Context, Info, SafeHtmlBuilder).
> Has anyone managed to implement it? What is Cell.Context? AbstractCell
> source code doesn't even include such render declaration.
>
--
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.