SmartGWT 与 GWT? [英] SmartGWT with GWT?

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

问题描述

您好,我已经使用 GWT 几个星期了,想要一个丰富的表格小部件.我遇到了 SmartGWT 库.我可以像使用 GWT 开发一样使用 SmartGWT 小部件吗,或者有什么我需要知道的特殊事情吗?

Greetings , I have been using GWT for few weeks and wanted a rich Table widget.I came across with SmartGWT library. Can I use SmartGWT widgets same way I develop using GWT or is there any special things I need to know ?

谢谢

推荐答案

您不能只从 SmartGWT 中选择一个小部件,因为它们依赖于框架的其余部分.SmartGWT 是一个使用 JSNI 围绕 SmartClient 库的瘦包装器.这是一个不错的库,但您需要全部采用或不采用.

You would not be able to just choose a widget from SmartGWT as they rely on the rest of the framework. SmartGWT is a thin wrapper using JSNI around the SmartClient library. This is a nice library, but you need to adopt it all or none.

我相信这忽略了 GWT 的重点,因为您只是在包装 Javascript,因此如果 Google 添加了对其他浏览器的支持,您将无法支持 SmartClient 所做的.此外,您会错过代码拆分等的所有新好处,因为 JS 库将始终完整下载.不过,您可以拆分 GWT 代码.

I believe this misses the point of GWT as you are just wrapping Javascript, so if Google adds support for another browser, you will not be able to support it SmartClient does. Also, you miss all the new benefits of Code Splitting etc as the JS library will always download in full. You may be able to split the GWT code though.

ExtGWT 是另一种选择.这是一个完整的 Java 实现.它仍然是一种全有或全无的方法,但至少它确实充分利用了 GWT 编译器.

ExtGWT is another choice. This is a full Java implementation. It's still an all or nothing approach, but at least it does leverage the GWT compiler to the full.

请务必检查每个许可证,因为我相信 SmartGWT 比 ExtGWT 更自由一些.

Do make sure you check the licenses of each as I believe the SmartGWT one is a bit more liberal that ExtGWT.

GWT IncubatorGWT Mosaic 项目.这些被编写为与 GWT 紧密结合.事实上,孵化器中的代码可能会在成熟时进入 GWT.我相信孵化器中有一个不错的表格小部件.

There is always the widgets in the GWT Incubator and GWT Mosaic projects. These are written to be very tightly knitted to GWT. Indeed the code in the Incubator may find its way into GWT when it matures. There is a nice table widget in the Incubator I believe.

我希望这会有所帮助.

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

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