用于 Adobe® Flash® Platform 的 ActionScript® 3.0 参考
主页  |  隐藏包列表和类列表 |   |   |  新增内容  |  索引  |  附录  |  为什么显示为英语?
过滤条件: 正在从服务器检索数据...
正在从服务器检索数据...
lc.procmgmt.ui.presentationmodel 

PresentationModel  - AS3 ADEP Workspace

lc.procmgmt.ui.presentationmodel
public class PresentationModel
继承PresentationModel Inheritance EventDispatcher Inheritance Object
实现 IPresentationModel, IMXMLObject
子类 AttachmentHeaderModel, AttachmentListModel, AttachmentsModel, HeaderPaneModel, ProcessInstanceDataGridModel, ProcessInstanceInfoModel, SearchSelectorModel, StartpointDetailsModel, StartpointGridSelectorModel, TaskDetailsModel, TaskDirectiveModel, TaskImageModel, TaskInfoModel, TitledCardRendererModel

语言版本: ActionScript 3.0
产品版本: Adobe Digital Enterprise Platform Document Services - Workspace 9
运行时版本: AIR (unsupported), Flash Player 9, Flash Player 10

The PresentationModel class is a superclass for all the presentation models. The class holds the common functionality and convenience methods that are needed to implement a presentation model, which is designed to support a specific view. A presentation model separates the behavior of a screen from the user interface controls and events. This separation simplifies the view and allows the view to make data bindings to properties in the presentation model and make simple method calls to the presentation model.

For information on using this component to customize Workspace, see Customizing the Adobe Digital Enterprise Platform Document Services - Workspace 10.0 User Interface .



公共属性
 属性由以下参数定义
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
  session : SessionMap
A SessionMap object that stores information relating to the server session.
PresentationModel
  state : String
[只读] The name of the state the current view is in.
PresentationModel
公共方法
 方法由以下参数定义
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。
EventDispatcher
  
bindProperty(destination:Object, destinationProperty:String, source:Object, sourceChain:Object, commitOnly:Boolean = false):ChangeWatcher
Binds a public property on the destination object from a property or property chain on the source object.
PresentationModel
 Inherited
将事件调度到事件流中。
EventDispatcher
  
getCSSStyle(declaration:String, styleProperty:String, defaultValue:Object = null):Object
Returns the corresponding cascading style sheet (CSS) property to use based on the specified parameters.
PresentationModel
 Inherited
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。
EventDispatcher
 Inherited
表示对象是否已经定义了指定的属性。
Object
  
Initializes the presentation model after the view bindings are processed to prevent view bindings from overriding the initial model state.
PresentationModel
 Inherited
表示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
 Inherited
表示指定的属性是否存在、是否可枚举。
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
从 EventDispatcher 对象中删除侦听器。
EventDispatcher
 Inherited
设置循环操作动态属性的可用性。
Object
 Inherited
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。
Object
 Inherited
返回指定对象的字符串表示形式。
Object
 Inherited
返回指定对象的原始值。
Object
 Inherited
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。
EventDispatcher
受保护的方法
 方法由以下参数定义
  
setState(newState:String):void
Sets the state property to a new value and causes a PropertyChangeEvent event.
PresentationModel
事件
 事件 摘要 由以下参数定义
 Inherited[广播事件] Flash Player 或 AIR 应用程序获得操作系统焦点并变为活动状态时将调度此事件。EventDispatcher
 Inherited[广播事件] Flash Player 或 AIR 应用程序失去操作系统焦点并变为非活动状态时将调度此事件。EventDispatcher
属性详细信息

session

属性
session:SessionMap

语言版本: ActionScript 3.0
产品版本: Adobe Digital Enterprise Platform Document Services - Workspace 9
运行时版本: AIR (unsupported), Flash Player 9, Flash Player 10

A SessionMap object that stores information relating to the server session.

此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange 事件。



实现
    public function get session():SessionMap
    public function set session(value:SessionMap):void

state

属性 
state:String  [只读]

语言版本: ActionScript 3.0
产品版本: Adobe Digital Enterprise Platform Document Services - Workspace 9
运行时版本: AIR (unsupported), Flash Player 9, Flash Player 10

The name of the state the current view is in. The state is typically bound to the currentState property of a control.

此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange 事件。



实现
    public function get state():String
方法详细信息

bindProperty

()方法
public function bindProperty(destination:Object, destinationProperty:String, source:Object, sourceChain:Object, commitOnly:Boolean = false):ChangeWatcher

语言版本: ActionScript 3.0
产品版本: Adobe Digital Enterprise Platform Document Services - Workspace 9
运行时版本: AIR (unsupported), Flash Player 9, Flash Player 10

Binds a public property on the destination object from a property or property chain on the source object. This method simplifies the use of the standard BindingUtils.bindProperty method.

参数

destination:Object — Specifies the object defining the property to be bound to the value of sourceChain.
 
destinationProperty:String — Specifies the name of the public property defined by the value of the destination parameter that is to be bound.
 
source:Object — Specifies the object that hosts the property or property chain to be watched.
 
sourceChain:Object — Specifies the property or property chain to be watched.
 
commitOnly:Boolean (default = false) — A flag that specifies whether the handler is called for committing and noncommitting change events. A value of true specifies that the handler is called only on committing change events. A value of false specifies that the handler is called on both committing and noncommitting change events.

返回
ChangeWatcher — The property or property chain to be watched. At least one property name must specified in the sourceChain argument, otherwise, a null value is returned.

相关 API 元素

getCSSStyle

()方法 
public function getCSSStyle(declaration:String, styleProperty:String, defaultValue:Object = null):Object

语言版本: ActionScript 3.0
产品版本: Adobe Digital Enterprise Platform Document Services - Workspace 9
运行时版本: AIR (unsupported), Flash Player 9, Flash Player 10

Returns the corresponding cascading style sheet (CSS) property to use based on the specified parameters.

参数

declaration:String — Specifies the name of the CSS selector.
 
styleProperty:String — Specifies the name of the CSS property.
 
defaultValue:Object (default = null) — Specifies the CSS property that is used if the CSS property specified by the the styleProperty parameter is not found.

返回
Object — The CSS style.

initialize

()方法 
public function initialize():void

语言版本: ActionScript 3.0
产品版本: Adobe Digital Enterprise Platform Document Services - Workspace 9
运行时版本: AIR (unsupported), Flash Player 9, Flash Player 10

Initializes the presentation model after the view bindings are processed to prevent view bindings from overriding the initial model state. Subclasses can override this method, which

setState

()方法 
protected function setState(newState:String):void

语言版本: ActionScript 3.0
产品版本: Adobe Digital Enterprise Platform Document Services - Workspace 9
运行时版本: AIR (unsupported), Flash Player 9, Flash Player 10

Sets the state property to a new value and causes a PropertyChangeEvent event.

参数

newState:String — Specifies the new state name.





[ X ]为什么显示为英语?
《ActionScript 3.0 参考》中的内容以英语显示

《ActionScript 3.0 参考》中的部分内容未翻译成所有语言。当某个语言元素未翻译时,将显示为英语。例如,ga.controls.HelpBox 类未翻译成任何语言。因此在简体中文版的参考中,ga.controls.HelpBox 类显示为英语。