- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Blackberry contents.ppt
Blackberry培训 UI布局之继承结构 UI布局之Field net.rim.device.api.ui.Field直接继承自java.lang.Object为页面布局元素。 直接继承自Field的子类为: MapField,Manager,BitmapField,ButtonField,CheckboxField, ChoiceField,DateField,GaugeField,LabelField,ListField, NullField,RadioButtonField,SeparatorField,SpinBoxField, TextField,TreeField,PictureScrollField 以上皆为可使用的直接布局元素。 UI布局之MainScreen MainScreen继承自Screen,顾名思义,为可显示的界面。一个App可以有多个MainScreen。独立界面继承自MainScreen类,亦可直接继承自Screen。 独立界面之间的切换使用pop方法和push方法: UiApplication.getUiApplication().popScreen(要关闭的界面) UiApplication.getUiApplication().pushScreen(要显示的界面) 如:public class LoginScreen extends MainScreen(){} UI布局之Manager 使用BlackBerry API布局管理器来安排屏幕上的组件。 下面四个类扩展了Manager类,以提供预定义的布局管理器: VerticalFieldManager垂直布局管理器 HorizontalFieldManager水平布局管理器 DialogFieldManager弹出式对话框布局管理器 如:VerticalFieldManager vfm =?new VerticalFieldManager(Manager.VERTICAL_SCROLL); vfm.add(bitmapField); vfm.add(bitmapField2); ... mainScreen.add(vfm) UI布局之Dialog public Dialog(String?message, Object[]?choices, int[]?values, int?defaultChoice, Bitmap?bitmap) Constructs a new Dialog instance. Parameters: message - Message to display in the dialog. choices - Objects selectable by the user. Each object is displayed using Object to String() values - If this parameter is specified, instead of returning the index selected, Dialog.doModal() returns the value associated with this index (useful for adding Dialog.CANCEL). defaultChoice - Initial choice selected when the Dialog is displayed. If you provide a non-null values parameter, the default choice must be present in the values array. If the values parameter is null, the default choice is the index of the initially selected item. bitmap - Image to display in the left side of the dialog. Blackberry控件特性 界面元素需要自定义实现时,必须重写方法: protected void layout(int width, int height) { super.la
您可能关注的文档
- '全国中语会农村语文教育研究中心'工作方案.doc
- (2016-2016年)一级建造师市政公用工程管理与实务历年考试真题.doc
- (杨建国)数控机床误差补偿技术现状与展望.pdf
- (答案)数控机床故障诊断与维修试题.doc
- 006设备使用和维修保养管理规程.doc
- 01140966-数控机床.pdf
- 01_豆瓣数据存储实践_刘洪清.pdf
- 02 设备保养维修管理办法.doc
- 028.“十二五”建筑节能专项规划.pdf
- 02各大数控机床主要应用于那些行业.doc
- BlackBerry Developing Applications for the BlackBerry Solution BCP-810题库.pdf
- BlackBerry Developing Java Applications for the BlackBerry Platform BCP-811题库.pdf
- BlackBerry Integrating the BlackBerry MVS Solution BCP-520题库.pdf
- BlackBerry Java 开发环境安装及入门.pdf
- BlackBerry Maintaining BlackBerry Enterprise ServerMicrosoft Exchange Exam BCP-420题库.pdf
- BlackBerry Selling the BlackBerry Solution for Technical Sales Professionals BCP-710题库.pdf
- BlackBerry Supporting BlackBerry Devices in a BlackBerry Internet Service Environment BCP-220题库.pdf
- BlackBerry Supporting BlackBerry DevicesEnterprise version 50 BCP-221题库.pdf
- BlackBerry 照相编程.pdf
- BlackBerry 网络断网问题分析.doc
文档评论(0)