GWT:UiBinder或GWT设计师? [英] GWT: UiBinder or GWT Designer?

查看:155
本文介绍了GWT:UiBinder或GWT设计师?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 UiBinder (GWT 2.0方式)创建了我的第一个GWT项目,我发现它比编写我的UI创建Java源代码(GWT 1.0方法)更容易。



但是我看到了Google正在免费发布的所谓 GWT Designer 。它具有很好的功能和向导,这些功能和标准的Google Eclipse Plugin都缺少这些功能和向导。我喜欢它,但我仍然认为使用UiBinder更好。我认为GWT Designer在帮助您编写UiBinder XML文件(GWT 2.0方式),而不仅仅是源代码(GWT 1.0方式)时非常有用。



你怎么看待它?
我需要迁移到GWT Designer项目吗?
如果我迁移,但仍然保持UiBinder UI创建,它会更好吗?

解决方案

UiBinder可以为您提供更好的性能和比传统小部件构建更优化的下载;对我来说这足以成为坚持使用UiBinder的理由。如果你的应用程序足够轻便,那么你的选择可能会归结为最适合你的开发风格。



我不会去将现有的UiBinder模板移植到设计器中。 Google很快就会加入对GWT设计师的支持。

I have my first GWT project that I created using UiBinder (GWT 2.0 way) which I found to be easier than write my UI creation Java source code (GWT 1.0 way).

But I saw this thing called GWT Designer that Google are releasing for free. It has nice features and wizards which were missing with the standard Google Eclipse Plugin. I like it, but I still think that using UiBinder is better. I think GWT Designer will be really useful when it can help you write UiBinder XML files (GWT 2.0 way), and not just source code (GWT 1.0 way).

What do you think about it? Do I need to migrate to GWT Designer project? Will it be better if I migrate but still keep UiBinder UI creation?

解决方案

UiBinder can give you better performance and a better optimized download than traditional widget construction; to me that's enough of a reason to stick with UiBinder. If your app is light and fast enough as it is then the choice probably comes down to what style of development suits you best.

I wouldn't go as far as to port your existing UiBinder templates into the designer. Google will be adding support for them to GWT designer soon enough.

这篇关于GWT:UiBinder或GWT设计师?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆