Actually, I might have jumped the gun there. Instead of accessing the
widget as one of my class's field variables, I could just traverse the
Widget structure looking for it by name. Is that even possible? Are
there methods / libraries out there that would allow me to specify a
Widget by some "path specifier" from within a Widget structure?

On Apr 22, 10:08 am, richip <[email protected]> wrote:
> I've two requirements that Reflection on the client side seems most
> appropriate for:
>
> 1) To get references to field variables from client-side Java classes
> where the the specific name is determined at runtime. I figured that
> with Reflection, I could expose said field variables by using
> accessors (e.g. name --> getName() { return name; }) and would use
> Reflection to access the methods.
>
> 2) I'd need to know what class that returned object is an instance of
> and inherits from. The objects themselves will be various GWT widgets.
>
> What I'm attempting to accomplish here is a late-binding of a GWT
> widget to its data model field. So say I've a field data of type int
> that I could have the option of binding to a TextBox or an IntegerBox
> at runtime.
>
> Are there updates on Reflection in GWT? Any proposals that would avoid
> creating a registry type of object for the various widgets that we'll
> be using? (as they may be dynamically instantiated, as well)

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

Reply via email to