| Pakiet | com.adobe.mosaic.mxml |
| Klasa | public class Application |
| Dziedziczenie | Application FrameworkInitializer |
| Implementuje | IMXMLObject |
| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
applicationNode property.
This underlying IApplication can be considered either:
- A Transient Application: An Application that has an Ad-hoc nature and does not reside server side.
- A CADL Application: An Application loaded by name and in the form of CADL markup (Composite Application Description Language) which is contained in a descriptor file that resides on the Experience Server.
The Application component is strictly for loading an IApplication and its "DOM", not for rendering. The Shell and Tile components are meant for rendering composite application display components on the Flex Display List.
When setting up an Application component:
The serverSession property is not required, and should not be set when generating a "Transient" Application DOM.
The name property is only required when the serverSession property has been set.
The name property represents the CADL name of the Application in residence on the Experience Server.
Use the composite application shell component for rendering the DOM of a CADL Application loaded by name.
Use the composite application tile component for rendering individual Tiles for a Transient Application.
Powiązane elementy interfejsu API
com.adobe.mosaic.mxml.ServerSession
com.adobe.mosaic.mxml.Catalog
com.adobe.mosaic.mxml.Shell
com.adobe.mosaic.mxml.Tile
com.adobe.mosaic.mxml.Service
| Właściwość | Zdefiniowane przez | ||
|---|---|---|---|
| applicationNode : IApplication [tylko do odczytu]
Returns the underlying Composite Application Framework SDK IApplication. | Application | ||
| catalogs : Vector.<ICatalogSpecifier>
Returns all of the catalogs that this Application has been given reference to. | Application | ||
| context : IContext [tylko do odczytu]
Returns the underlying IApplication's IContext. | Application | ||
| loaded : Boolean [tylko do odczytu]
Checks if the underlying IApplication is instantiated. | Application | ||
| messageBus : IMessageBus [tylko do odczytu]
Returns the IApplication as the IMessageBus. | Application | ||
| name : String
Returns the set name of the Application (not required for "Transient" Applications)
| Application | ||
| serverSession : ServerSession
Returns the ServerSession instance associated to this Application. | Application | ||
| shell : IShell [tylko do odczytu]
Returns the IShell instance associated with the underlying IApplication. | Application | ||
| state : String [tylko do odczytu]
Returns the state of this Application mxml component only. | Application | ||
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
Constructor. | Application | ||
Initializes either a "Transient" or "CADL" Application. | Application | ||
Implementation of IMXMLObject initialized,
makes a call to initializeApplication
| Application | ||
Loads a Catalog specified in the passed in ICatalogSpecifier via the underlying IApplication. | Application | ||
Makes a request to load all of the ICatalog's that this Application has
in its catalogs collection (of ICatalogSpecifier). | Application | ||
Makes a request to load an IApplication by the name passed in if the ServerSession
is not null and it is in a ServerConstants.STATE_CONNECTED state. | Application | ||
| Zdarzenie | Podsumowanie | Zdefiniowane przez | ||
|---|---|---|---|---|
| The catalogLoadEventFailure defines a failure notification of an attempt to load a Catalog | Application | |||
| The catalogLoadEventSuccess defines a successful notification of loading a Catalog | Application | |||
| The loadApplicationEventFailure defines a failure notification of an attempt to load an Application | Application | |||
| The loadApplicationEventSuccess defines a successful notification of loading an Application | Application | |||
applicationNode | właściwość |
applicationNode:IApplication [tylko do odczytu] | Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
Returns the underlying Composite Application Framework SDK IApplication.
Implementacja
public function get applicationNode():IApplicationPowiązane elementy interfejsu API
catalogs | właściwość |
catalogs:Vector.<ICatalogSpecifier>| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
Returns all of the catalogs that this Application has been given reference to.
Implementacja
public function get catalogs():Vector.<ICatalogSpecifier> public function set catalogs(value:Vector.<ICatalogSpecifier>):voidPowiązane elementy interfejsu API
context | właściwość |
context:IContext [tylko do odczytu] | Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
Returns the underlying IApplication's IContext.
Implementacja
public function get context():IContextPowiązane elementy interfejsu API
loaded | właściwość |
loaded:Boolean [tylko do odczytu] | Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
Checks if the underlying IApplication is instantiated.
Implementacja
public function get loaded():BooleanmessageBus | właściwość |
messageBus:IMessageBus [tylko do odczytu] | Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
Returns the IApplication as the IMessageBus.
Implementacja
public function get messageBus():IMessageBusPowiązane elementy interfejsu API
name | właściwość |
name:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
Returns the set name of the Application (not required for "Transient" Applications)
Implementacja
public function get name():String public function set name(value:String):voidserverSession | właściwość |
serverSession:ServerSession| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
Returns the ServerSession instance associated to this Application. Not a required field for "Transient" Applications
Implementacja
public function get serverSession():ServerSession public function set serverSession(value:ServerSession):voidPowiązane elementy interfejsu API
shell | właściwość |
shell:IShell [tylko do odczytu] | Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
Returns the IShell instance associated with the underlying IApplication.
Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .
Implementacja
public function get shell():IShellPowiązane elementy interfejsu API
state | właściwość |
state:String [tylko do odczytu] | Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
Returns the state of this Application mxml component only.
Implementacja
public function get state():StringPowiązane elementy interfejsu API
Application | () | Konstruktor |
public function Application()| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
Constructor.
initializeApplication | () | metoda |
public function initializeApplication():void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
Initializes either a "Transient" or "CADL" Application. If the serverSession property has been set and the Application name has been set, a call will be made to requestApplication by name.
Powiązane elementy interfejsu API
initialized | () | metoda |
public function initialized(document:Object, id:String):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
Implementation of IMXMLObject initialized, makes a call to initializeApplication
Parametry
document:Object — The document Object
| |
id:String — The mxml id String
|
loadCatalog | () | metoda |
public function loadCatalog(specifier:ICatalogSpecifier, onSuccess:Function = null, onFailure:Function = null):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
Loads a Catalog specified in the passed in ICatalogSpecifier via the underlying IApplication.
Parametry
specifier:ICatalogSpecifier — Specifies the CatalogSpecifier for loading.
| |
onSuccess:Function (default = null) — (Optional) Specifies the function callback that takes in one parameter of type CatalogLoadEvent when the operation succeeded
| |
onFailure:Function (default = null) — (Optional) Specifies the function callback that takes in one parameter of type CatalogLoadEvent when the operation failed
|
Powiązane elementy interfejsu API
loadCatalogs | () | metoda |
public function loadCatalogs():void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
Makes a request to load all of the ICatalog's that this Application has in its catalogs collection (of ICatalogSpecifier). Only performs if the SDK's IApplication has been initialized and the collection of catalogs is not empty.
requestApplication | () | metoda |
public function requestApplication(name:String):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
Makes a request to load an IApplication by the name passed in if the ServerSession is not null and it is in a ServerConstants.STATE_CONNECTED state. If the ServerSession is not null and is in the state of ServerConstants.STATE_DISCONNECTED, then an attempt will be made to connect. If connection succeeds, the Application will attempt to load.
Parametry
name:String — Specifies the Application name to load.
|
Powiązane elementy interfejsu API
catalogLoadEventFailure | Zdarzenie |
com.adobe.mosaic.om.events.CatalogLoadEventwłaściwość CatalogLoadEvent.type =
com.adobe.mosaic.om.events.CatalogLoadEvent.FAILURE| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
The catalogLoadEventFailure defines a failure notification of an attempt to load a Catalog
The message type sent when a catalog fails to load.catalogLoadEventSuccess | Zdarzenie |
com.adobe.mosaic.om.events.CatalogLoadEventwłaściwość CatalogLoadEvent.type =
com.adobe.mosaic.om.events.CatalogLoadEvent.SUCCESS| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
The catalogLoadEventSuccess defines a successful notification of loading a Catalog
The message type sent when a catalog is loaded successfully.loadApplicationEventFailure | Zdarzenie |
com.adobe.mosaic.om.events.LoadApplicationEventwłaściwość LoadApplicationEvent.type =
com.adobe.mosaic.om.events.LoadApplicationEvent.FAILURE| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
The loadApplicationEventFailure defines a failure notification of an attempt to load an Application
This type is sent when handling failed in loading the requested IApplicationloadApplicationEventSuccess | Zdarzenie |
com.adobe.mosaic.om.events.LoadApplicationEventwłaściwość LoadApplicationEvent.type =
com.adobe.mosaic.om.events.LoadApplicationEvent.SUCCESS| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
The loadApplicationEventSuccess defines a successful notification of loading an Application
This type is sent when handling succeeded in loading the requested IApplication
<fx:Declarations>
<mosaic:ServerSession id="myServer"
openSessionEventSuccess="myServer_connectedHandler(event)"
openSessionEventFailure="myServer_faultHandler(event)"
url="{_serverUrl}" />
<mosaic:Application id="myApp"
loadApplicationEventSuccess="myApp_loadApplicationEventSuccessHandler(event)"
loadApplicationEventFailure="myApp_loadApplicationEventFailureHandler(event)">
<mosaic:catalogs>
<mosaic:Catalog id="sampleCatalog"
name="sample_catalog"
catalogLoadEventSuccess="myCatalogSuccess(event)"
catalogLoadEventFailure="myCatalogFail(event)"
serverSession="{myServer}"/>
</mosaic:catalogs>
</mosaic:Application>
</fx:Declarations>
Tue Jun 12 2018, 12:06 PM Z