Package | com.adobe.mosaic.om.interfaces |
Interface | public interface IViewManager extends IMosaicNode , IUIAttributes |
Version du langage: | ActionScript 3.0 |
Version du produit: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
Versions du moteur d’exécution: | AIR 2.6, Flash Player 10.2 |
IViewManager
interface provides access to the views and includes
add/remove/get of views.
Propriété | Défini par | ||
---|---|---|---|
allowContentAdd : Boolean
Returns the allowContentAdd value
| IViewManager | ||
bottom : 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 | ||
childrenNodes : Array [lecture seule]
Returns an array of child nodes (IMosaicNode objects) of the node. | IMosaicNode | ||
height : String
The maximum height for the nodes. | IUIAttributes | ||
layout : ILayout [lecture seule]
The layout of the viewManager. | IViewManager | ||
left : 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 | ||
maxHeight : Number
The node's maximum width. | IUIAttributes | ||
maxWidth : Number
The node's maximum width. | IUIAttributes | ||
minHeight : Number
The node's minimum height. | IUIAttributes | ||
minWidth : Number
The the node's minimum width. | IUIAttributes | ||
nodeID : String [lecture seule]
Returns the ID of the node. | IMosaicNode | ||
nodeLabel : String
Returns the label of the tile. | IMosaicNode | ||
nodeName : String [lecture seule]
Returns the name of the node. | IMosaicNode | ||
nodeType : String [lecture seule]
Returns the type value of the node. | IMosaicNode | ||
parentNode : IMosaicNode [lecture seule]
Returns the direct parent node of the current node within the application. | IMosaicNode | ||
right : 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 | ||
styleName : String
The style name for the node. | IUIAttributes | ||
top : 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 | ||
uniqueID : String [lecture seule]
Returns the generated unique ID of the node. | IMosaicNode | ||
views : Array [lecture seule]
Returns an array of views that are available within the application. | IViewManager | ||
visible : Boolean
Returns the node's visible setting. | IUIAttributes | ||
width : String
Returns the node's width. | IUIAttributes | ||
x : Number
Returns the node's x coordinate, relative to its container. | IUIAttributes | ||
y : Number
Returns the node's y coordinate, relative to its container. | IUIAttributes |
Méthode | Défini par | ||
---|---|---|---|
Adds a view to the ViewManager. | IViewManager | ||
Clones an IMosaicNode. | IMosaicNode | ||
Removes the specified view from the application. | IViewManager | ||
Resolves any reference elements that may be in the View, Panel, or Tile. | IMosaicNode |
allowContentAdd | propriété |
allowContentAdd:Boolean
Version du langage: | ActionScript 3.0 |
Version du produit: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
Versions du moteur d’exécution: | AIR 2.6, Flash Player 10.2 |
Returns the allowContentAdd value
Implémentation
public function get allowContentAdd():Boolean
public function set allowContentAdd(value:Boolean):void
layout | propriété |
layout:ILayout
[lecture seule] Version du langage: | ActionScript 3.0 |
Version du produit: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
Versions du moteur d’exécution: | AIR 2.6, Flash Player 10.2 |
The layout of the viewManager.
Implémentation
public function get layout():ILayout
saveMode | propriété |
saveMode:String
Version du langage: | ActionScript 3.0 |
Version du produit: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
Versions du moteur d’exécution: | 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".
Implémentation
public function get saveMode():String
public function set saveMode(value:String):void
views | propriété |
views:Array
[lecture seule] Version du langage: | ActionScript 3.0 |
Version du produit: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
Versions du moteur d’exécution: | AIR 2.6, Flash Player 10.2 |
Returns an array of views that are available within the application.
Implémentation
public function get views():Array
addView | () | méthode |
public function addView(view:IView, onSuccess:Function = null, onFailure:Function = null):void
Version du langage: | ActionScript 3.0 |
Version du produit: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
Versions du moteur d’exécution: | 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.
Paramètres
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
|
Exemple
Comment utiliser cet exemple
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 | () | méthode |
public function removeView(node:IView):IView
Version du langage: | ActionScript 3.0 |
Version du produit: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
Versions du moteur d’exécution: | AIR 2.6, Flash Player 10.2 |
Removes the specified view from the application.
Paramètres
node:IView — The view to be deleted.
|
IView — The view that was removed.
|
Eléments de l’API associés
Tue Jun 12 2018, 09:30 AM Z