One sort of sneaky trick that could be helpful with overlay types
would be to do something like:
public native String getStringField(String fieldName)/-{
return (fieldName != null && this[fieldName] != undefined) ?
this[fieldName] : null;
}-*/;
It isn't as convenient as getThis() or getThat(), but it does come in
handy particularly when field names are defined sometime after compile
time.
-jason
On Jul 28, 2009, at 5:44 AM, rohit a wrote:
>
> Yes i was able to do it after reading overlays.
>
> It was tedious to write a wrapper for every javascript object
> extending the JavaScriptObject.
>
> Anyways thanks for the quick reply.
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---