Справочник по ActionScript® 3.0 для платформы Adobe® Flash®
Домашняя страница  |  Скрыть список пакетов и классов |  Пакеты  |  Классы  |  Что нового  |  Указатель  |  Приложения  |  Почему по-английски?
Фильтры: Получение данных с сервера...
Получение данных с сервера...
com.adobe.mosaic.om.interfaces 

IViewManager  - AS3 ADEP Composite Application

Пакетcom.adobe.mosaic.om.interfaces
Интерфейсpublic interface IViewManager extends IMosaicNode , IUIAttributes

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10
Версии среды выполнения: AIR 2.6, Flash Player 10.2

The IViewManager interface provides access to the views and includes add/remove/get of views.



Общедоступные свойства
 СвойствоОпределено
  allowContentAdd : Boolean
Returns the allowContentAdd value
IViewManager
 Inheritedbottom : Number
Returns the node's bottom value which is the vertical distance, in pixels, from the lower edge of the component to the lower edge of the content region.
IUIAttributes
 InheritedchildrenNodes : Array
[только для чтения] Returns an array of child nodes (IMosaicNode objects) of the node.
IMosaicNode
 Inheritedheight : String
The maximum height for the nodes.
IUIAttributes
  layout : ILayout
[только для чтения] The layout of the viewManager.
IViewManager
 Inheritedleft : Number
Returns the node's left value which is horizontal distance, in pixels, from the left edge of the component to the left edge of the content region.
IUIAttributes
 InheritedmaxHeight : Number
The node's maximum width.
IUIAttributes
 InheritedmaxWidth : Number
The node's maximum width.
IUIAttributes
 InheritedminHeight : Number
The node's minimum height.
IUIAttributes
 InheritedminWidth : Number
The the node's minimum width.
IUIAttributes
 InheritednodeID : String
[только для чтения] Returns the ID of the node.
IMosaicNode
 InheritednodeLabel : String
Returns the label of the tile.
IMosaicNode
 InheritednodeName : String
[только для чтения] Returns the name of the node.
IMosaicNode
 InheritednodeType : String
[только для чтения] Returns the type value of the node.
IMosaicNode
 InheritedparentNode : IMosaicNode
[только для чтения] Returns the direct parent node of the current node within the application.
IMosaicNode
 Inheritedright : Number
Returns the node's right value which is the horizontal distance, in pixels, from the right edge of the component to the right edge of the content region.
IUIAttributes
  saveMode : String
Returns the saveMode that controls the ability to save and close views managed by the ViewManager.
IViewManager
 InheritedstyleName : String
The style name for the node.
IUIAttributes
 Inheritedtop : Number
Returns the node's top value which is the vertical distance, in pixels, from the upper edge of the component to the upper edge of the content region.
IUIAttributes
 InheriteduniqueID : String
[только для чтения] Returns the generated unique ID of the node.
IMosaicNode
  views : Array
[только для чтения] Returns an array of views that are available within the application.
IViewManager
 Inheritedvisible : Boolean
Returns the node's visible setting.
IUIAttributes
 Inheritedwidth : String
Returns the node's width.
IUIAttributes
 Inheritedx : Number
Returns the node's x coordinate, relative to its container.
IUIAttributes
 Inheritedy : Number
Returns the node's y coordinate, relative to its container.
IUIAttributes
Общедоступные методы
 МетодОпределено
  
addView(view:IView, onSuccess:Function = null, onFailure:Function = null):void
Adds a view to the ViewManager.
IViewManager
 Inherited
Clones an IMosaicNode.
IMosaicNode
  
Removes the specified view from the application.
IViewManager
 Inherited
resolveReferences(onSuccess:Function = null, onFailure:Function = null):void
Resolves any reference elements that may be in the View, Panel, or Tile.
IMosaicNode
Сведения о свойстве

allowContentAdd

свойство
allowContentAdd:Boolean

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10
Версии среды выполнения: AIR 2.6, Flash Player 10.2

Returns the allowContentAdd value



Реализация
    public function get allowContentAdd():Boolean
    public function set allowContentAdd(value:Boolean):void

layout

свойство 
layout:ILayout  [только для чтения]

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10
Версии среды выполнения: AIR 2.6, Flash Player 10.2

The layout of the viewManager.



Реализация
    public function get layout():ILayout

saveMode

свойство 
saveMode:String

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10
Версии среды выполнения: AIR 2.6, Flash Player 10.2

Returns the saveMode that controls the ability to save and close views managed by the ViewManager. The default allows views to be saved and closed ("saveAndClose"). Other options are to save without closing ("saveOnly"), close without saving ("closeOnly"), or to do nothing ("none"). If the saveMode is set to a value not supported by the chosen Layout, then it will be treated as if no saveMode were specified and default to "saveAndClose".



Реализация
    public function get saveMode():String
    public function set saveMode(value:String):void

views

свойство 
views:Array  [только для чтения]

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10
Версии среды выполнения: AIR 2.6, Flash Player 10.2

Returns an array of views that are available within the application.



Реализация
    public function get views():Array
Сведения о методе

addView

()метод
public function addView(view:IView, onSuccess:Function = null, onFailure:Function = null):void

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10
Версии среды выполнения: AIR 2.6, Flash Player 10.2

Adds a view to the ViewManager. The resulting AddViewEvent indicating success or failure is returned in the callback function and also dispatched to the MessageListeners.

Параметры

view:IView — The view to add.
 
onSuccess:Function (default = null) — a Function callback that takes in one parameter of type AddViewEvent when the operation succeeded
 
onFailure:Function (default = null) — a Function callback that takes in one parameter of type AddViewEvent when the operation failed


Пример
Использование этого примера
This example retrieves a view named "sampleView" from a catalog and adds the view to the viewManager:
		 mosaicApp.addMessageListener(AddViewEvent.NAMESPACE, AddViewEvent.SUCCESS, onAddViewEvent);
		 mosaicApp.addMessageListener(AddViewEvent.NAMESPACE, AddViewEvent.FAILURE, onAddViewEvent);
		 
		 var v:IView = sampleCatalog.getView("sampleView");
		 (thisTile.parentView.parentNode as IViewManager).addView(v,onAddViewSuccess,onAddViewFailure);
		 
		 //functions to manage success or failure callbacks
		 private function onAddViewSuccess(evt:AddViewEvent):void {} 
		 private function onAddViewFailure(evt:AddViewEvent):void {}
		 
		 //functions to manage success or failure events
		 private function onAddViewEvent(message:Message):void {
		     var addViewEvent:AddViewEvent = message.payload as AddViewEvent;
		     var addedView:IView = addViewEvent.viewNode;
		     //custom processing
		 }
		 

removeView

()метод 
public function removeView(node:IView):IView

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10
Версии среды выполнения: AIR 2.6, Flash Player 10.2

Removes the specified view from the application.

Параметры

node:IView — The view to be deleted.

Возвращает
IView — The view that was removed.

Связанные элементы API





[ X ]Почему по-английски?
Содержимое Справочника ActionScript 3.0 отображается на английском языке

Не все части Справочника ActionScript 3.0 переводятся на все языки. Если какой-то текстовый элемент не переведен, он отображается на английском языке. Например, компонент ga.controls.HelpBox не переведен ни на один из языков. Это значит, что в русской версии справки компонент ga.controls.HelpBox будет отображаться на английском языке.