Java 最好的 GWT 小部件库?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/867451/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Best GWT widget library?
提问by tellme
Question for all the GWT gurus out there - which is the best GWT widgets library out there? And why?
对所有 GWT 大师的问题 - 哪个是最好的 GWT 小部件库?为什么?
List based on the answers:
根据答案列出:
- Default
- Sencha GXT
- Smart GWT
- Vaadin
- GWT-Bootstrap
- GwtBootstrap3
- Rocket GWT(inactive)
- Tatami(inactive)
- ErraiFramework
- GWTMaterialDesign
И наконец- новое поколение основанное на JsInterop:
И наконец- новое поколение основанное на JsInterop:
回答by Rahul Garg
回答by ShashiKant
回答by DragonBorn
回答by jgindin
Depends on what you mean by "best". Best looking? Best API? Best for extending to your own custom needs?
取决于你所说的“最好”是什么意思。最好看的?最好的API?最适合扩展到您自己的定制需求?
E.g., I was just evaluating table classes to use in our application. We've been using GWT-Ext, but it has many performance problems for us, and is very hard to get the tables sized the way we need them. I came very close to going with GWT-Mosaic, but decided instead to build off the widgets in the GWT Incubator.
例如,我只是评估要在我们的应用程序中使用的表类。我们一直在使用 GWT-Ext,但它给我们带来了许多性能问题,而且很难按照我们需要的方式调整表的大小。我非常接近使用GWT-Mosaic,但决定在GWT Incubator 中构建小部件。
So, why did I make this choice? It seems that too many of the libraries out there come with their own, for lack of a better word, baggage. Either you have to dive whole-hog into some MVC framework (which may not be entirely compatible with the rest of your code base), or you have to adopt someone's new fangled layout system, or you have to live with the fact that you cannot really debug the code (because its just JSNI wrappers).
那么,我为什么会做出这样的选择呢?似乎有太多的图书馆都有自己的图书馆,因为没有更好的词,行李。要么你必须全神贯注于一些 MVC 框架(它可能与你的代码库的其余部分不完全兼容),要么你必须采用某人的新奇特布局系统,要么你不得不接受这样一个事实,你不能真正调试代码(因为它只是 JSNI 包装器)。
Don't get me wrong, the GWT Incubator isn't perfect...the widgets there are in some amount of flux. In my case, this was the best choice, though. It gives me good (but definitely not perfect):
不要误会我的意思,GWT 孵化器并不完美……那里的小部件有一定的变化。不过,就我而言,这是最好的选择。它给了我很好的(但绝对不完美):
- API
- Extensibility
- Look and feel (well, this is kinda weak, but that's what CSS is for.)
- 应用程序接口
- 可扩展性
- 外观和感觉(嗯,这有点弱,但这就是 CSS 的用途。)
So...the answer (for me) is a combination of:
所以......答案(对我来说)是以下各项的组合:
- Stock GWT widgets (with lotsof custom styling)
- GWT Incubator tables
- A few home-grown widgets
- 股票 GWT 小部件(有很多自定义样式)
- GWT 孵化器表
- 一些本土小部件
(I should add: the "baggage" I'm referring to isn't necessarilya bad thing. But, if you just want a widget or two, it can raise the bar on what it takes to just get your work done and how good youe application looks.)
(我应该补充一点:我所指的“行李”不一定是坏事。但是,如果您只想要一两个小部件,它可以提高完成工作所需的条件以及如何你的应用看起来不错。)
回答by Nick
I prefer vanilla GWT. Some of the other APIs look pretty and their showcases really show off the widgets, but I always find that the performance isn't the best....when I say performance I mean more like response time. I hate when an application feels sluggish.
我更喜欢香草 GWT。其他一些 API 看起来很漂亮,它们的展示确实展示了小部件,但我总是发现性能并不是最好的......当我说性能时,我的意思更像是响应时间。我讨厌应用程序感觉迟钝。
回答by Drejc
I would say if you need only a few widgets then build your own. You might copy-paste some concepts from the libraries mentioned. But they all lack one or the other thing. I have played with most of them and abandoned every one.
我会说,如果您只需要几个小部件,那么构建您自己的小部件。您可以从提到的库中复制粘贴一些概念。但他们都缺乏一个或另一个。我和他们中的大多数人一起玩过,并放弃了每一个。
回答by Drejc
Most of the libraries mentioned are not open source and even worse: are just wrappers on top of a JavaScript library. The power of GWT lies in the fact that the application works on different browsers (because of the code generation for the "big" browsers specifically). These JavaScript underlying libraries can cause lots of problems.
提到的大多数库都不是开源的,更糟糕的是:只是 JavaScript 库之上的包装器。GWT 的强大之处在于该应用程序可以在不同的浏览器上运行(因为专门为“大”浏览器生成代码)。这些 JavaScript 底层库会导致很多问题。
I agree with jgindin GWT Incubator and GWT Mosaic are the best so far.
我同意 jgindin GWT Incubator 和 GWT Mosaic 是迄今为止最好的。
回答by user124884
We're currently liking the GWT Mosaicwidgets. We've worked with ext-JS and we've rolled our own widgets in the past. ext-JS licensing and bulk were a problem for us. Rolling our own isn't what we want to do. Mosaic gives us a happy middle ground which we like to think will be an even happier middle ground as the project matures.
我们目前喜欢GWT Mosaic小部件。我们曾与 ext-JS 合作过,过去我们也推出过自己的小部件。ext-JS 许可和批量对我们来说是一个问题。滚动我们自己的不是我们想要做的。Mosaic 为我们提供了一个快乐的中间地带,我们认为随着项目的成熟,它会成为一个更快乐的中间地带。
回答by Tim
One thing to be aware of is that from the forums GWT-Extlooks like it will no longer be developed/maintained much (maybe not at all?). On their website they recommend migrating to SmartGWT.
需要注意的一件事是,从论坛上看,GWT-Ext看起来将不再被开发/维护太多(也许根本不会?)。在他们的网站上,他们建议迁移到SmartGWT。