Porting UiBinder file in GWT for mobile
I developed GWT desktop browser application , before working on porting the Application for webkit browsers I need to have following doubts clarified:
Is it possible to map mulitple UiBinder template with the same View class?
Are the widgets consistent in look and feel for Desktop as well as webkit(mobile) browsers?
Thanking in advance.
Take a look at the mobilewebapp example which comes with the GWT SDK. There you can see, how an app can serve different views depending on the device by using deferred binding.
Using the first approach, you have different views for each device. So, you are free to choose different widgets for different platforms.
我想分享一个我尝试过的方法,首先,不是将视图映射到viewimpl,而是将它绑定到viewprovider,然后根据用户代理值返回适当的实例绑定到。我在样本中实现了这一点应用程序和它现在工作良好。
链接地址: http://www.djcxy.com/p/44104.html上一篇: GWT手机方式
下一篇: 在GWT中移植移动UiBinder文件