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

PanelManager  - AS3 ADEP Guides

Пакетga.model
Классpublic class PanelManager
НаследованиеPanelManager Inheritance EventDispatcher Inheritance Object
Реализует IHistoryManagerClient

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

The PanelManager class manages the list of visible panels on a Guide. The view classes use the panel manager as a source of the panels and to retrieve and select the current panel.

Note: The term "page" is synonymous with "panel". A page implements the IPanel interface.



Общедоступные свойства
 СвойствоОпределено
 Inheritedconstructor : Object
Ссылка на объект класса или функцию конструктора для данного экземпляра объекта.
Object
  currentPage : Page
[bindable] The currently selected panel.
PanelManager
  currentPageIndex : int
The index of the current page
PanelManager
  firstPage : Page
[только для чтения] Returns the first panel.
PanelManager
  gaModel : GuidedActivity
Returns the guided activity model
PanelManager
  instance : PanelManager
[статические] Returns a single instance of the PanelManager class.
PanelManager
  lastPage : Page
[только для чтения] Returns the last panel.
PanelManager
  nextPage : Page
[только для чтения] [bindable] Returns the next panel, or null if none exists.
PanelManager
  pages : Array
[только для чтения] Returns the visible panels.
PanelManager
  previousPage : Page
[только для чтения] [bindable] Returns the previous panel, or null if none exists.
PanelManager
  selectedItem : Object
[bindable] Returns the current panel.
PanelManager
  submitRequestTimestamp : Date
PanelManager
Общедоступные методы
 МетодОпределено
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Регистрирует объект прослушивателя события на объекте EventDispatcher для получения прослушивателем уведомления о событии.
EventDispatcher
  
If the panel is allowed to repeat, this method adds a new panel after the current panel.
PanelManager
  
If the section is repeatable, this method adds a new section after the current section.
PanelManager
  
Returns true if the user is allowed to change the panel due to validation.
PanelManager
  
If the panel is allowed to repeat, this method creates a copy of a panel and adds it after the current panel.
PanelManager
  
If the section is repeatable, this method copies a new section after the current section.
PanelManager
 Inherited
Посылает событие в поток событий.
EventDispatcher
  
Sets the next panel as the current panel.
PanelManager
  
Sets the previous panel as the current panel.
PanelManager
 Inherited
Проверяет, имеет ли объект EventDispatcher прослушиватели, зарегистрированные для определенного типа события.
EventDispatcher
 Inherited
Показывает, определено ли заданное свойство для объекта.
Object
 Inherited
Показывает, есть ли экземпляр класса Object в цепи прототипов объекта, заданного в качестве параметра.
Object
 Inherited
Показывает наличие заданного свойства и его перечисляемость.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Удаляет прослушиватель из объекта EventDispatcher.
EventDispatcher
  
If the panel is repeatable, this method removes the current panel.
PanelManager
  
If the section is repeatable, this method removes the current section.
PanelManager
 Inherited
Задает доступность динамического свойства для операций цикла.
Object
  
If the Submit button on the form contains a script, this method executes the script, validates the form data, and then submits the data to the server.
PanelManager
  
submitToUrl(xmlData:String, targetUrl:String, requireValidation:Boolean = false, window:String = "_self"):void
Send the panel data to the specified URL.
PanelManager
 Inherited
Возвращает строковое представление этого объекта, отформатированного в соответствии со стандартами, принятыми для данной локали.
Object
 Inherited
Возвращает строковое представление заданного объекта.
Object
  
Validates the Guide data, and returns true if validation was successful.
PanelManager
  
Returns true if the user is allowed to change to the panel provided due to validation.
PanelManager
 Inherited
Возвращает элементарное значение заданного объекта.
Object
 Inherited
Проверяет, зарегистрирован ли прослушиватель события для указанного типа события с данным объектом EventDispatcher или любым его предшественником.
EventDispatcher
События
 Событие Сводка Определено
 Inherited[многоадресное событие] Отправляется, когда проигрыватель Flash Player или приложение AIR перемещается в фокус операционной системы и становится активным.EventDispatcher
 Inherited[многоадресное событие] Отправляется, когда проигрыватель Flash Player или приложение AIR теряет фокус системы и становится неактивным.EventDispatcher
   Dispatched by a page, panel, or section whenever the error string for a Guide field changes.PanelManager
   Dispatched when a Guide initializes.PanelManager
   Dispatched when a repeating panel is added to a Guide.PanelManager
   Dispatched when a repeating panel is removed from a Guide.PanelManager
   Dispatched when a panel is selected.PanelManager
   Dispatched when a repeating section is added to a Guide.PanelManager
   Dispatched when a repeating section is removed from a Guide.PanelManager
Сведения о свойстве

currentPage

свойство
currentPage:Page

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

[bindable] The currently selected panel.

Это свойство можно использовать в качестве источника для связывания данных. При изменении этого свойства отправляется событие propertyChange .



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

currentPageIndex

свойство 
currentPageIndex:int

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

The index of the current page

Это свойство можно использовать в качестве источника для связывания данных. При изменении этого свойства отправляется событие propertyChange .



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

firstPage

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

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

Returns the first panel.

Это свойство можно использовать в качестве источника для связывания данных. При изменении этого свойства отправляется событие propertyChange .



Реализация
    public function get firstPage():Page

gaModel

свойство 
gaModel:GuidedActivity

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

Returns the guided activity model

Это свойство можно использовать в качестве источника для связывания данных. При изменении этого свойства отправляется событие propertyChange .



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

instance

свойство 
instance:PanelManager

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

Returns a single instance of the PanelManager class.



Реализация
    public static function get instance():PanelManager
    public static function set instance(value:PanelManager):void

lastPage

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

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

Returns the last panel.

Это свойство можно использовать в качестве источника для связывания данных. При изменении этого свойства отправляется событие propertyChange .



Реализация
    public function get lastPage():Page

nextPage

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

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

[bindable] Returns the next panel, or null if none exists.

Это свойство можно использовать в качестве источника для связывания данных. При изменении этого свойства отправляется событие propertyChange .



Реализация
    public function get nextPage():Page

pages

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

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

Returns the visible panels.



Реализация
    public function get pages():Array

previousPage

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

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

[bindable] Returns the previous panel, or null if none exists.

Это свойство можно использовать в качестве источника для связывания данных. При изменении этого свойства отправляется событие propertyChange .



Реализация
    public function get previousPage():Page

selectedItem

свойство 
selectedItem:Object

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

[bindable] Returns the current panel.

Это свойство можно использовать в качестве источника для связывания данных. При изменении этого свойства отправляется событие propertyChange .



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

submitRequestTimestamp

свойство 
submitRequestTimestamp:Date



Реализация
    public function get submitRequestTimestamp():Date
    public function set submitRequestTimestamp(value:Date):void
Сведения о методе

addPage

()метод
public function addPage():Boolean

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

If the panel is allowed to repeat, this method adds a new panel after the current panel.

Возвращает
Boolean — Boolean true if the page was added.

addSection

()метод 
public function addSection():Boolean

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

If the section is repeatable, this method adds a new section after the current section.

Возвращает
Boolean — Boolean true if the section was added.

canGoForward

()метод 
public function canGoForward():Boolean

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

Returns true if the user is allowed to change the panel due to validation.

Возвращает
Boolean — Boolean whether or not the user is allowed to page forward.

copyPage

()метод 
public function copyPage():Boolean

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

If the panel is allowed to repeat, this method creates a copy of a panel and adds it after the current panel.

Возвращает
Boolean — Boolean whether or not the page was copied.

copySection

()метод 
public function copySection():Boolean

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

If the section is repeatable, this method copies a new section after the current section.

Возвращает
Boolean — Boolean whether or not the section was copied.

goNextPage

()метод 
public function goNextPage():void

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

Sets the next panel as the current panel.

goPreviousPage

()метод 
public function goPreviousPage():void

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

Sets the previous panel as the current panel.

removePage

()метод 
public function removePage():Boolean

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

If the panel is repeatable, this method removes the current panel.

Возвращает
Boolean — Boolean whether or not the page was removed.

removeSection

()метод 
public function removeSection():Boolean

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

If the section is repeatable, this method removes the current section.

Возвращает
Boolean — Boolean whether or not the section was removed.

submit

()метод 
public function submit():void

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

If the Submit button on the form contains a script, this method executes the script, validates the form data, and then submits the data to the server.

submitToUrl

()метод 
public function submitToUrl(xmlData:String, targetUrl:String, requireValidation:Boolean = false, window:String = "_self"):void

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

Send the panel data to the specified URL. The results display in a new window.

Параметры

xmlData:String — the xml data to be submitted
 
targetUrl:String — the url to submit to
 
requireValidation:Boolean (default = false) — true if validation is required prior to submit
 
window:String (default = "_self") — the window to display the results of the submission

validate

()метод 
public function validate():Boolean

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

Validates the Guide data, and returns true if validation was successful. If validation fails, the GAEvent.GUIDE_VALIDATION_FAILED event is dispatched.

Возвращает
Boolean — Boolean true if validation was successful.

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

validateNavigation

()метод 
public function validateNavigation(requestedPage:Page):Page

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

Returns true if the user is allowed to change to the panel provided due to validation. Any previous panel is ok to go to, but may not be allowed to go to a next panel.

Параметры

requestedPage:Page — validations are run against all pages preceeding the requestedPage.

Возвращает
Page — either a panel with validation errors or the requested page.
Сведения о событии

errorStringChanged

Событие
Тип объекта события: ga.model.GAEvent
свойство GAEvent.type = ga.model.GAEvent.ERROR_STRING_CHANGED

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

Dispatched by a page, panel, or section whenever the error string for a Guide field changes.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.

initialized

Событие  
Тип объекта события: ga.model.GAEvent
свойство GAEvent.type = ga.model.GAEvent.INITIALIZED

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

Dispatched when a Guide initializes.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.

pageAdd

Событие  
Тип объекта события: ga.model.GAEvent
свойство GAEvent.type = ga.model.GAEvent.PAGE_ADD

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

Dispatched when a repeating panel is added to a Guide.

The properties of the event object have the following values:

PropertyValue
pageThe page that was added.
sectionThe section that contains the added page.
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.

pageRemove

Событие  
Тип объекта события: ga.model.GAEvent
свойство GAEvent.type = ga.model.GAEvent.PAGE_REMOVE

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

Dispatched when a repeating panel is removed from a Guide.

The properties of the event object have the following values:

PropertyValue
pageThe page that was removed.
sectionThe section that contained the removed page.
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.

pageSelectionChange

Событие  
Тип объекта события: ga.model.GAEvent
свойство GAEvent.type = ga.model.GAEvent.PAGE_SELECTION_CHANGE

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

Dispatched when a panel is selected.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.

sectionAdd

Событие  
Тип объекта события: ga.model.GAEvent
свойство GAEvent.type = ga.model.GAEvent.SECTION_ADD

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

Dispatched when a repeating section is added to a Guide.

The properties of the event object have the following values:

PropertyValue
sectionThe section that contained the removed page.
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.

sectionRemove

Событие  
Тип объекта события: ga.model.GAEvent
свойство GAEvent.type = ga.model.GAEvent.SECTION_REMOVE

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Document Services - Guides 9
Версии среды выполнения: AIR 1.0, Flash Player 10.2

Dispatched when a repeating section is removed from a Guide.

The properties of the event object have the following values:

PropertyValue
sectionThe section that contained the removed page.
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.




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

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