为60系列平台设计Java应用

时间:2007-09-01 10:28:20
【文件属性】:

文件名称:为60系列平台设计Java应用

文件大小:605KB

文件格式:RAR

更新时间:2007-09-01 10:28:20

JAVA 为60系列平台设计Java应用

为60系列平台设计Java应用 为60 系列平台设计Java 应用 | 2 目录 1. 引言.............................................................................................................................. 6 1.1 目的和范围..............................................................................................................................6 2. 概述.............................................................................................................................. 7 2.1 MIDlet 概述..............................................................................................................................7 2.2 基本设计考虑...........................................................................................................................8 2.2.1 MIDlet 的局限性..............................................................................................................8 2.2.2 MIDlet 用户界面..............................................................................................................9 3. 应用生命周期.............................................................................................................. 10 3.1 MIDlet 的构造........................................................................................................................10 3.2 StartApp() ..............................................................................................................................10 3.3 PauseApp() ...........................................................................................................................11 3.4 DestroyApp (boolean unconditional) .....................................................................................11 4. 用户界面类................................................................................................................. 12 4.1 概述.......12 4.2 导航.......12 5. 高层用户界面API....................................................................................................... 14 5.1 命令处理14 5.2 命令类型14 5.2.1 Exit command Exit (退出)命令..................................................................................14 5.2.2 Screen (屏幕)命令.....................................................................................................15 5.2.3 Item (项目)命令.........................................................................................................15 5.2.4 Help (帮助)命令.........................................................................................................15 5.2.5 Back (返回)命令........................................................................................................15 5.2.6 OK/Cancel (OK/取销)命令.......................................................................................15 5.3 设计各种命令.........................................................................................................................16 5.4 Screen (屏幕)类.................................................................................................................16 5.4.1 16 5.4.2 List (列表).................................................................................................................17 5.4.3 Alert (报警)...............................................................................................................20 5.4.4 Form (表单)..............................................................................................................21 5.4.4.1 ChoiceGroup ............................................................................................................21 5.4.4.2 DateField..................................................................................................................21 5.4.4.3 Gauge (标尺)........................................................................................................22 5.4.4.4 StringItem.................................................................................................................22 5.4.4.5 TextField...................................................................................................................22 5.5 用户界面设计的实际步骤.......................................................................................................23 6. 低层用户界面API....................................................................................................... 24 6.1 用Canvas 进行低层事件处理................................................................................................24 6.1.1 ShowNotify() .................................................................................................................24 6.1.2 HideNotify()...................................................................................................................24 6.1.3 KeyPressed()、keyRepeated(),以及keyReleased() .................................................24 6.2 Canvas Graphics...................................................................................................................25 6.3 Graphics 25 6.3.1 显示文本.......................................................................................................................25 6.3.2 Image (图像)类..........................................................................................................26 7. 定时器和线程.............................................................................................................. 27 7.1 定时器....27 7.2 线程.......28 8. 网络MIDlets 概述...................................................................................................... 30 9. 永久存储概述.............................................................................................................. 31 9.1 读写一个记录的数据..............................................................................................................32 10. 诺基亚用户界面API ................................................................................................... 33 11. 更多参考读物.............................................................................................................. 35


【文件预览】:
资源中心.url
CH_Designing_Java_Applications_for_Series_60_v1_0.pdf

网友评论