套件 | com.adobe.mosaic.om.interfaces |
介面 | public interface ICatalog |
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 9.5 |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
ICatalog
interface represents a particular catalog, and provides methods for retrieving
tiles from a catalog deployed to the Experience Server.
屬性 | 定義自 | ||
---|---|---|---|
panels : Array [唯讀]
Retrieves an array of panels from the catalog to add to an application. | ICatalog | ||
serviceLibraries : Array [唯讀]
Retrieves an array of service libraries from the catalog to add to an application. | ICatalog | ||
session : ISession [唯讀]
Returns the current ISession associated with this catalog
| ICatalog | ||
stylesheets : Array [唯讀]
Returns an array of URLs representing each stylesheet from the composite application catalog. | ICatalog | ||
tiles : Array [唯讀]
Retrieves an array of tiles from the catalog to add to an application. | ICatalog | ||
uri : String [唯讀]
Returns the URI of this catalog, which is defined in the application(s) that reference this catalog. | ICatalog | ||
url : String [唯讀]
Returns the current url for this catalog's descriptor
| ICatalog | ||
views : Array [唯讀]
Retrieves an array of views from the catalog to add to an application. | ICatalog |
方法 | 定義自 | ||
---|---|---|---|
Returns the panel with the given name from this Catalog. | ICatalog | ||
Retrieves a service from the Service Library in the catalog. | ICatalog | ||
Retrieves a tile from the catalog to add to an application. | ICatalog | ||
Returns the view with the given name from this Catalog. | ICatalog | ||
NOT IMPLEMENTED
Retrieves any file asset from the catalog. | ICatalog | ||
postAsset(assetUri:String, content:Object, onSuccess:Function = null, onFailure:Function = null):void
NOT IMPLEMENTED
Sets any file asset in the catalog
| ICatalog |
panels | 屬性 |
panels:Array
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
Retrieves an array of panels from the catalog to add to an application. This method sets all the default parameters required for the panel to function.
實作
public function get panels():Array
相關 API 元素
serviceLibraries | 屬性 |
serviceLibraries:Array
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
Retrieves an array of service libraries from the catalog to add to an application.
實作
public function get serviceLibraries():Array
相關 API 元素
session | 屬性 |
stylesheets | 屬性 |
stylesheets: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 URLs representing each stylesheet from the composite application catalog.
The stylesheets can be referenced by tiles to allow you to create consistent styling between tiles and the containing applications.
實作
public function get stylesheets():Array
相關 API 元素
tiles | 屬性 |
tiles:Array
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
Retrieves an array of tiles from the catalog to add to an application. This method sets all the default parameters required for the tile to function.
實作
public function get tiles():Array
相關 API 元素
uri | 屬性 |
uri:String
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 9.5 |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
Returns the URI of this catalog, which is defined in the application(s) that reference this catalog.
實作
public function get uri():String
url | 屬性 |
views | 屬性 |
views:Array
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
Retrieves an array of views from the catalog to add to an application. This method sets all the default parameters required for the view to function.
實作
public function get views():Array
相關 API 元素
getPanel | () | 方法 |
public function getPanel(n:String):IPanel
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 9.5 |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
Returns the panel with the given name from this Catalog.
參數
n:String — The name of the panel in the catalog. This corresponds to the name attribute in the deployed catalog.
|
IPanel — The named Panel from the Catalog
|
getService | () | 方法 |
public function getService(name:String, library:String):IService
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 9.5 |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
Retrieves a service from the Service Library in the catalog.
參數
name:String — The name of the service class
| |
library:String — The service library name that holds the service class
|
IService — The Service stored in the catalog
|
相關 API 元素
getTile | () | 方法 |
public function getTile(n:String):com.adobe.mosaic.om.interfaces:ITile
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 9.5 |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
Retrieves a tile from the catalog to add to an application. This method sets all the default parameters required for the tile to function.
參數
n:String — The name of the tile in the catalog. This corresponds to the name attribute in the deployed catalog.
|
com.adobe.mosaic.om.interfaces:ITile — The tile that implements ITile .
|
相關 API 元素
範例
如何使用本範例
This example retrieves a tile named "sampleTile" from the catalog "sample_catalog", and adds the tile to the current panel:
var c:ICatalog = mosaicApp.getCatalog("sample_catalog"); var t:ITile = c.getTile("sampleTile"); this.parentPanel.addTile(t);
getView | () | 方法 |
public function getView(n:String):IView
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 9.5 |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
Returns the view with the given name from this Catalog.
參數
n:String — The name of the view in the catalog. This corresponds to the name attribute in the deployed catalog.
|
IView — The named View from the Catalog
|
loadAsset | () | 方法 |
public function loadAsset(assetUri:String, onSuccess:Function = null, onFailure:Function = null):void
語言版本: | ActionScript 3.0 |
產品版本: | NOT IMPLEMENTED |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
NOT IMPLEMENTED Retrieves any file asset from the catalog.
參數
assetUri:String — uri of the asset relative to the /content/mosaic/catalog
| |
onSuccess:Function (default = null ) — callback if the request is successful. It will have AssetLoadEvent containing data.
| |
onFailure:Function (default = null ) — callback if the request fails
|
postAsset | () | 方法 |
public function postAsset(assetUri:String, content:Object, onSuccess:Function = null, onFailure:Function = null):void
語言版本: | ActionScript 3.0 |
產品版本: | NOT IMPLEMENTED |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
NOT IMPLEMENTED Sets any file asset in the catalog
參數
assetUri:String — uri of the asset relative to the /content/mosaic/catalog
| |
content:Object — Object containing the data to post/set
| |
onSuccess:Function (default = null ) — callback if the request is successful
| |
onFailure:Function (default = null ) — callback if the request fails
|
Tue Jun 12 2018, 03:47 PM Z