BMP平台MVC的设计模式
来源:互联网 发布:张馨予淘宝店地址 编辑:程序博客网 时间:2024/06/05 05:59
这是高通BMP平台上的MVC设计模式,这个框架的核心就是以数据来驱动界面,对于做UI的朋友们来说,很有借鉴意义。
Design Patterns
- BUIW is built using common software engineering design patterns.
- Model-View-Controller (MVC) pattern is important to understand.
- Other patterns used in BUIW are decorator and observer patterns.
Containers
- A container is a collection of widgets, decorators and further sub-containers.
- Containers keep track of relative order of widgets, their position and layout.
- A container will handle clipping as required.
- The top level container is called the root container.
- Lots of different types of containers – CardContainer, GridContainer, ConstraintContainer, PropContainer, XYContainer.
Models
- The data that drives a widget is stored within a model
- The following models are available
- IValueModel: A model for data that can be represented in an arbitrarily complex form
- IListModel: A base class for IArrayModel and IVectorModel
- IArrayModel: A model for a collection of objects of equal fixed size
- IVectorModel: A model for a collection of objects that might be of a variable size
- IFrameModel: Base class for IMediaFrameModel and ICameraFrameModel
- IMediaFrameModel: Provides image frames from a video
- ICameraFrameModel: Provides image frames from a camera
- IInterfaceModel: Provides a model interface for objects that model their data in an interface that does not have a query interface, for example, bitmap and image widgets
- ITextModel: Model for text strings such as in text entry
- IMenuModel: Derived from IListModel
Widget View
- Responsible for rendering the model‟s data to the display
- Listens for model notifications
- Sends invalidation request to parent container, so only redraws when directed
- By letting root container redraw multiple requests can be grouped together
- The size of the content area of the view is known as the extent
- Be sure to set the extent
- The full extent of widget doesn‟t have to be redrawn when the widget is invalidated
- BMP平台MVC的设计模式
- IOS平台上的MVC设计模式
- MVC设计模式的思考
- MVC模式的设计思想
- MVC设计模式的实现
- MVC设计模式的学习
- JSP的设计模式mvc
- MVC模式的设计思想
- MVC模式的设计思想
- java的MVC设计模式
- android的MVC设计模式
- MVC设计模式的总结
- MVC模式的设计思想
- iOS 的MVC设计模式
- spring mvc 的设计模式
- iOS的MVC设计模式
- JavaWeb的MVC设计模式
- MVC设计模式的优缺点
- 文件路径相关的字符串操作
- IE6死后快人心的十件事
- .net服务器控件Button之Confirm篇
- 利用Cookie和Session保持WEB客户端始终在线
- Java实现DES
- BMP平台MVC的设计模式
- windows 7 RC(7106.0.090408)下载另附windows7驱动收集整合(5月31日更新)
- 今天开始学WINCE
- Command Prompt命令目录
- 使用Java实现FTP服务器
- dataset和实体类 之间的转换
- 十一种经典开场白
- VMware虚拟机联网方法
- 使用JQuery和s3captche实现一个水果名字的验证