·您现在的位置: 云翼网络 >> 文章中心 >> 网站建设 >> 网站建设开发 >> ASP.NET网站开发 >> LWUIT 1.3终于发布了!

LWUIT 1.3终于发布了!

作者:佚名      ASP.NET网站开发编辑:admin      更新时间:2022-07-23
LWUIT 1.3在12.15号终于发布了!

如果现在你还没有LWUIT 1.3的api和文件,去http://java.sun.com/javame/technology/lwuit/ 下载

新版本中的新特性:

从Shai 的Blog中 ,我了解到,LWUIT1.3 主要的改动有以下几点:

开始支持从右至左的语言
添加了键盘的支持,允许通过触摸屏输入
即使那些没有焦点的组件,在1.3版中也能够滚动了。比如在以前的版本中在Form中创建一个Label,Lael里面装一张1024*768的图片,这个Label只能够显示屏幕范围内的图片,超出屏幕范围的图片则不能够显示,因为Label是无法获得焦点,就没有滚动效果,所以旧版本中不能够显示大图。(画布可能可以)
添加了两个新的组件:Tree,Spinner。Tree树形组件,Spinner相当于Combobox形式的选择组件,Spinner和Combobox同样都继承自List。
添加了TableLayout。(一直想用Table的同胞们等了老半天)
重新实现Combobox(原来的Combobox可真够丑的,一直没怎么用),重新设计了ListCellRenderer的Painter
对触摸设备的支持进行了改良
把SVG也融入到Resource Editor中
(以上翻译不够准确,敬请见谅!可以看看下面的英文原版。 )

Bidi support (contributed by Telmap) - allows using LWUIT with Right To Left languages such as Arabic, Hebrew
Lightweight Virtual keyboard support - allowing for customizable touch screen input
Pixel based scrolling - allowing scroll to work as expected even when components/containers exceed screen bounds and not just for focusable components
Table layout and table component - allowing complex tabular UI's including support for features such as spanning rows/columns
Tree component - supporting nested elements and expanding
Spinner component for date, time and numeric input within a range
Reimplementation of the ComboBox widget
SVG Support integrated into the Theme Creator (formerly LWUIT Designer/Resource Editor)
Touch device imPRovements: button menus, improved kinetic scrolling, tactile touch (vibration on touch)
Resource file specification
Redesigned the list renderer "rendering" logic so that it paints the backgrounds of the renderers first, and then the selection and foreground.
我个人对LWUIT 1.3的看法:首先LWUIT的发展前景是好的,这里添加了比较实用的Tree组件和TableLayut。在我现在用的版本(不是1.3)中Tree组件我已经用到了,Table形式的布局,我结合其他的布局形式也能够做出这种效果,但是缺点就是LWUIT的体积越来越大了,上个版本的LWUIT.jar只有337k,1.3版本的增加到391k,确实长胖了不少。如果我要用1.3的话,我不会用它的jar,只会参考一下它的源码,如果有需要,就把1.3源码中的类整合到现在我用的这个版本的LWUIT中。