套件 | ga.model |
類別 | public class PanelManager |
繼承 | PanelManager EventDispatcher Object |
實作 | IHistoryManagerClient |
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Document Services - Guides 9 |
執行階段版本: | AIR 1.0, Flash Player 10.2 |
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.
屬性 | 定義自 | ||
---|---|---|---|
constructor : 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 |
方法 | 定義自 | ||
---|---|---|---|
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 | ||
會將事件傳送到事件流程。 | EventDispatcher | ||
Sets the next panel as the current panel. | PanelManager | ||
Sets the previous panel as the current panel. | PanelManager | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | EventDispatcher | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
會從 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 | ||
為迴圈作業設定動態屬性的可用性。 | 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 | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | 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 | ||
會傳回指定之物件的基本值。 | Object | ||
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | EventDispatcher |
事件 | 摘要 | 定義自 | ||
---|---|---|---|---|
[廣播事件] 當 Flash Player 或 AIR 應用程式取得作業系統焦點並成為作用中時傳送。 | EventDispatcher | |||
[廣播事件] 當 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 | 屬性 |
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 | 屬性 |
nextPage | 屬性 |
pages | 屬性 |
previousPage | 屬性 |
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 | 屬性 |
addPage | () | 方法 |
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 | () | 方法 |
removeSection | () | 方法 |
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:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
currentTarget | The 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 . |
target | The 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:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
currentTarget | The 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 . |
target | The 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:
Property | Value |
---|---|
page | The page that was added. |
section | The section that contains the added page. |
bubbles | false |
cancelable | false |
currentTarget | The 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 . |
target | The 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:
Property | Value |
---|---|
page | The page that was removed. |
section | The section that contained the removed page. |
bubbles | false |
cancelable | false |
currentTarget | The 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 . |
target | The 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:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
currentTarget | The 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 . |
target | The 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:
Property | Value |
---|---|
section | The section that contained the removed page. |
bubbles | false |
cancelable | false |
currentTarget | The 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 . |
target | The 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:
Property | Value |
---|---|
section | The section that contained the removed page. |
bubbles | false |
cancelable | false |
currentTarget | The 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 . |
target | The 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. |
Tue Jun 12 2018, 03:47 PM Z