適用於 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 類別就會以英文顯示。