Control
A control is a user interface element that the user can interact with. Controls are used in PC applications, in web pages and in mobile device applications. In web pages controls are often known as "form controls". Common controls include textfields, textareas, buttons, checkboxes, radio buttons, scrollbars, labels and progress bars, among others. Not all controls are interactive, e.g. labels simply display a value. Controls are contained within some kind of user interface container such as a view or window.
In the WRTKit, controls are JavaScript objects that contain the state and implement the behavior of the control. Controls take care of drawing themselves, including changing their appearence as a result of various state changes.
View
A container for user interface elements such as controls. On a mobile device user interface views typically fill the entire screen and thus only one view can be shown at a time. Views in a mobile device tend to lay out the elements it contains in a vertical list that can be scrolled up and down if there is more content in the view than what fits on the screen at a time.
In the WRTKit, views are responsible for laying out controls. Custom views can be created to support advanced layouts but in the vast majority of cases the default ListView is sufficient. WRTKit views are JavaScript objects.
Event
An event is a notification of some occurrence in a user interface element, such as a view or control. Events are typically propagated to application code as messages or function calls or a combination of the two.
The WRTKit uses a model known as the "observer pattern" to deliver event messages, which are JavaScript objects, to event listeners, which are JavaScript callback functions. WRTKit events have a type name that can be used to distinguish between different types of events. E.g. a button press produces an "ActionPerformed" event.
Focus
The control that is currently selected to receive input is said to be focused. Controls can be focused in both the tab and pointer navigation modes. In the tab mode the focus is moved between controls using the 4-way controller. In the pointer mode the focus is moved between controls by moving the pointer to "hover" above a control and then pressing a selection button to select that control. Focused controls are displayed in a distinct way from other controls to indicate that they are ready to be interacted with.
Hovering
In pointer navigation mode, the pointer is said to be "hovering" above a control if the pointer is located inside the control's area on the screen. Hovering is similar to focus, but differs because hovering in itself does not select a control for interaction. Rather a selection key must be pressed in order to focus the control that the pointer is currently hovering over. Hover is indicated by displaying a control in a distinct way from other controls.
Navigation mode
A navigation mode refers to a method of selecting what user interface element to interact with. The S60 Web Runtime supports two navigation modes: "tab" and "pointer". In the tab mode, focus is moved between controls using the 4-way controller. In pointer mode there is a pointer arrow on the screen that can be moved freely using the 4-way controller. A control is focused by moving the pointer arrow so that it hovers above a control, and then pressing a selection key to select that control. In tab mode a control can be either in normal or focused state, whereas in the pointer mode a control can be in normal, hover or focused state.
分享到:
相关推荐
然后根据功能要求,阐述了Widget的框架设计,包括桌面布局设计、实现Widget的生命周期方法、在Manifest文件中注册接收器receiver、实现定时器等内容,这样Widget的整体框架就搭建完毕。 在Widget框架搭建完成之后...
包括BlackBerry 的PUSH 技术, 均可以应用于Widget 开发过程之中。 开发工具下载 在进行Widget 开发之前,开发人员需要下载相应的开发工具,BlackBerry Widget SDK, 这个工 具提供了一些命令行工具可以用来打包编译...
Android App Widget 开发,demo实现了一个简单的音乐播放器,详见http://blog.csdn.net/huaxun66/article/details/77880376
比较好用的WIDGET开发工具
在入门篇中,我们讨论了如何应用Blackberry 提供的Widget API 来进行开发,从如下链接中, http://www.blackberry.com/developers/docs/widgetapi/ 可以找到BlackBerry 能提供的所有Widget API 列表。然后,对于很多...
brew widget开发源代码,欢迎下载
android 源码 android Widget开发案例 eclipse项目 直接导入 ,掌握widget开发,让你的手机‘炫’起来
手机Widget开发教程,适合初学者开发widget的文档
基于Qt widget开发的圆形进度条组件+源码+开发文档解析,适合期末大作业、课程设计、项目开发。项目源码已经过严格测试,可以放心参考并在此基础上延申使用~ 基于Qt widget开发的圆形进度条组件+源码+开发文档解析...
该包中有各种widget开发资料,其中包括:中国移动的BAE,雅虎的yahoo!widget,nokia的WRT开发教程和实例等等。改包是花了我1个礼拜收集和整理的,我相信想进行和了解widget开发的朋友下载后肯定收获不少。例外本人...
AndroidWidget开发学习教程.pdf
Nokia_Widget开发入门(中文)和范例
基于OPhone的Mobile Widget联机应用开发基础
图中我用黄色箭头指示的即为AppWidget,一些用户使用比较频繁的程序,可以做成AppWidget,这样能方便地使用。典型的程序有时钟、天气、音乐播放器等。AppWidget 是Android 系统应用开发层面的一部分,有着特殊用途,...
一个简单的电量监控代码可以很好的演示Android平台下Widget开发中的基础方式,比如appWidget如何于Service交互以及RemoteViews的演示。完成的工程代码我们稍作美化后提供下载,同时下次开始我们提供一些国外比较优秀...
Laravel开发-widget Laravel框架小部件包装。
widget开发Demo,封装.framework进行代码数据共享,宿主App和widget都能够使用NSUserDefault保存的数据
基于WAC的Widget开发指南 基于window下开发JIL Widget只
这是一个介绍如何开发widget的文档,类容详尽细致,还附有实例。