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

SessionMap  - AS3 ADEP Workspace

lc.foundation.domain
public class SessionMap
继承SessionMap Inheritance Object

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

The SessionMap object is initialized during application initialization and passed to all components, as the session property, therefore making it available throughout the application.

It is recommended to use the typed convenience methods from the WorkspaceSession object to retrieve Workspace API objects. For example, if you want to use the QueuesManager object, it can be retrieved using the following code:

var queuesManager:QueuesManager = WorkspaceSession.getQueuesManager(session);

Additional objects can be added using the setObject method. The general convention for key names is that the key name should match the fully qualified class or interface name that you want. For example, to add a new object to the session, your can use the following code:

session.setObject("my.example.ISample", new Sample());

This object may be retrieved from the session property using the following code:

var mySample:ISample = ISample(session.getObject("my.example.ISample"));

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

相关 API 元素



公共属性
 属性由以下参数定义
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
公共方法
 方法由以下参数定义
  
Retrieves a session object using the provided key.
SessionMap
 Inherited
表示对象是否已经定义了指定的属性。
Object
 Inherited
表示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
 Inherited
表示指定的属性是否存在、是否可枚举。
Object
  
Adds an object to be retrieved with the given key.
SessionMap
 Inherited
设置循环操作动态属性的可用性。
Object
 Inherited
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。
Object
 Inherited
返回指定对象的字符串表示形式。
Object
 Inherited
返回指定对象的原始值。
Object
方法详细信息

getObject

()方法
public function getObject(key:String):Object

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

Retrieves a session object using the provided key.

参数

key:String — Specifies the key for the SessionMap object. The standard convention is that this will be the fully qualified name of the class or interface to which the returned object would be cast.

返回
Object — An object matching the given key. If no match for the key exists, a value of null is returned.

setObject

()方法 
public function setObject(key:String, object:Object):void

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

Adds an object to be retrieved with the given key. If the object with that key already exists, it will be replaced.

参数

key:String — Specifies the key for the object.
 
object:Object — Specifies the object to be stored for the given key.

相关 API 元素

lc.domain.SessionMap.getObject()




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

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