Справочник по ActionScript® 3.0 для платформы Adobe® Flash®
Домашняя страница  |  Скрыть список пакетов и классов |  Пакеты  |  Классы  |  Что нового  |  Указатель  |  Приложения  |  Почему по-английски?
Фильтры: Получение данных с сервера...
Получение данных с сервера...
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 будет отображаться на английском языке.