使用谷歌Web工具包的桌面像网络应用程序? [英] Using Google Web Toolkit for desktop like web app?

查看:94
本文介绍了使用谷歌Web工具包的桌面像网络应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

gwt是否有(良好)对效果的支持,在元素周围移动并调整它们? GWT可能会给表格带来什么样的限制?

GWT API本身并不支持所有这些东西。然而,最新版本的GWT支持动画。



关于GWT的有用之处在于它是一种JavaScript之上的抽象,它支持通过Java更深入地重用比JavaScript的方式可以。



检查如果你对ExtJs留下深刻的印象,那么这就是。 gwt-ext的展示应该展示你可以用ExtJs做的事情类型,但是GWT支持Java的全部功能。您特别感兴趣的可能是门户和拖放示例。设置拖放目标,拖动东西并调整大小是它的位置。 gwt-ext和ExtJs库支持这些事情。这取决于你想要选择的抽象级别。

如果在gwt-ext中所有ExtJs库的额外开销对您来说太大,那么 gxt 来自ExtJs的项目可能会更快。这是一个ExtJs的纯Java实现,因此只有你需要的部件被编译。这减少了开销,但没有gwt-ext所具有的所有功能。



底线: GWT具有强大的抽象,您可以使用它来创建任何你需要。如果你不习惯从头开始构建,你需要另一个库。


Does gwt have (good) support for effects, moving around elements, and resizing them? Are there any possible limitations GWT might bring to the table?

解决方案

The GWT API does not support all of these things natively. The newest versions of GWT have support for animation, however.

The useful thing about GWT is that it is an abstraction above javascript and it supports reuse through java in a much deeper way than javascript ever can.

Check this out if you're impressed with ExtJs. The showcase for gwt-ext should show the types of things that you can do with ExtJs but that GWT supports with the full power of Java. Of particular interest to you may be the portal and drag-and-drop examples. Setting up drop targets, dragging things around, and resizing things are where its at. The gwt-ext and ExtJs libraries support these things. It's up to you what level of abstraction you want to choose.

If the added overhead of all the ExtJs libraries are too much for you in gwt-ext then the gxt project from ExtJs may be more your speed. This is a pure java implementation of ExtJs and (as such) only the widgets you need are compiled. This reduces overhead but does not have all of the features that gwt-ext has.

Bottom line: GWT has powerful abstractions that you can build on to produce whatever you want. If you're not comfortable with building from scratch, you'll need another library.

这篇关于使用谷歌Web工具包的桌面像网络应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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