Is it possible to reflect Widgets classes?

4 views
Skip to first unread message

Luis

unread,
May 14, 2010, 5:25:50 AM5/14/10
to GWT-Ent Developer Forum
Hi,
I'm new here :) My name is Luis and I'm from Spain.
My question is if it's possible to use gwt-ent reflection to
dynamically instance Widgets. I want to dynamically load a menu for my
app, based on the user's permissions.
Thank you
- Luis

--
You received this message because you are subscribed to the Google Groups "GWT-Ent Developer Forum" group.
To post to this group, send email to gwt...@googlegroups.com.
To unsubscribe from this group, send email to gwt-ent+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gwt-ent?hl=en.

James Luo

unread,
May 15, 2010, 12:52:53 AM5/15/10
to gwt...@googlegroups.com
Hi, Luis

  With reflection, you can get a ClassType by TypeOracle.getClassType(String name), after that, with ClassType, you can get all field/method/constructor/annotation information, you can invoke method and constructor dynamically if you want.

  I think this framework can working for you

James
--
Regards
James Luo
Reply all
Reply to author
Forward
0 new messages