GWT Dynamic loading using GWT.create() with String literals instead of Class literals

后端 未结 9 1222
一个人的身影
一个人的身影 2020-12-14 10:11

GWT.create() is the reflection equivalent in GWT, But it take only class literals, not fully qualified String for the Class name. How do i dynamically create classes with

9条回答
  •  执念已碎
    2020-12-14 10:33

    I was able to do what I think you're trying to do which is load a class and bind it to an event dynamically; I used a Generator to dynamically link the class to the event. I don't recommend it but here's an example if it helps:

    http://francisshanahan.com/index.php/2010/a-simple-gwt-generator-example/

提交回复
热议问题