GWT:UiBinder 还是 GWT Designer? [英] GWT: UiBinder or GWT Designer?

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

问题描述

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

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

但我看到了 Google 免费发布的名为 GWT Designer 的东西.它具有标准 Google Eclipse 插件所缺少的出色功能和向导.我喜欢它,但我仍然认为使用UiBinder更好.我认为当 GWT Designer 可以帮助您编写 UiBinder XML 文件(GWT 2.0 方式),而不仅仅是源代码(GWT 1.0 方式)时,它会非常有用.

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

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

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可以给你比传统的widget构建更好的性能和更好的优化下载;对我来说,这足以成为坚持使用 UiBinder 的理由.如果您的应用足够轻巧且速度足够快,那么选择可能取决于哪种开发风格最适合您.

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.

我不会将您现有的 UiBinder 模板移植到设计器中.Google 很快就会向 GWT 设计器添加对它们的支持.

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 Designer?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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