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中。