Guide de référence ActionScript® 3.0 pour la plate-forme Adobe® Flash®
Accueil  |  Masquer la liste des packages et des classes |  Packages  |  Classes  |  Nouveautés  |  Index  |  Annexes  |  Pourquoi existe-t-il du contenu en anglais ?
Filtres : Récupération des données du serveur...
Récupération des données du serveur...
com.adobe.mosaic.om.interfaces 

IView  - AS3 ADEP Composite Application

Packagecom.adobe.mosaic.om.interfaces
Interfacepublic interface IView extends IMosaicNode , IDisplayable , IMetadataAvailable , IUIAttributes , IContextProvider

Version du langage: ActionScript 3.0
Version du produit: Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 9.5
Versions du moteur d’exécution: AIR 2.6, Flash Player 10.2

The IView interface defines methods for adding panels, saving views, and retrieving view context and a list of panels.



Propriétés publiques
 PropriétéDéfini par
  allowContentAdd : Boolean
Returns the allowContentAdd value
IView
  allowContentDelete : Boolean
Returns the allowContentDelete value
IView
 Inheritedbottom : 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
 InheritedchildrenNodes : Array
[lecture seule] Returns an array of child nodes (IMosaicNode objects) of the node.
IMosaicNode
 Inheritedcontext : IContext
[lecture seule] Returns the context interface for the application.
IContextProvider
 Inheriteddisplayed : Boolean
[lecture seule] Determines if the selected node is currently displayed.
IDisplayable
 Inheritedheight : String
The maximum height for the nodes.
IUIAttributes
  layout : ILayout
[lecture seule] The layout of the view.
IView
 Inheritedleft : 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
 InheritedmaxHeight : Number
The node's maximum width.
IUIAttributes
 InheritedmaxWidth : Number
The node's maximum width.
IUIAttributes
 Inheritedmetadata : IMetadata
[lecture seule] Returns the metadata if any of the node.
IMetadataAvailable
 InheritedminHeight : Number
The node's minimum height.
IUIAttributes
 InheritedminWidth : Number
The the node's minimum width.
IUIAttributes
 InheritednodeID : String
[lecture seule] Returns the ID of the node.
IMosaicNode
 InheritednodeLabel : String
Returns the label of the tile.
IMosaicNode
 InheritednodeName : String
[lecture seule] Returns the name of the node.
IMosaicNode
 InheritednodeType : String
[lecture seule] Returns the type value of the node.
IMosaicNode
  panels : Array
[lecture seule] Returns an array of panels that exist within a view.
IView
 InheritedparentNode : IMosaicNode
[lecture seule] Returns the direct parent node of the current node within the application.
IMosaicNode
 Inheritedright : 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
 InheritedstyleName : String
The style name for the node.
IUIAttributes
 Inheritedtop : 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
 InheriteduniqueID : String
[lecture seule] Returns the generated unique ID of the node.
IMosaicNode
 Inheritedvisible : Boolean
Returns the node's visible setting.
IUIAttributes
 Inheritedwidth : String
Returns the node's width.
IUIAttributes
 Inheritedx : Number
Returns the node's x coordinate, relative to its container.
IUIAttributes
 Inheritedy : Number
Returns the node's y coordinate, relative to its container.
IUIAttributes
Méthodes publiques
 MéthodeDéfini par
  
addPanel(panel:IPanel, onSuccess:Function = null, onFailure:Function = null):void
Adds a Panel to the View.
IView
 Inherited
Clones an IMosaicNode.
IMosaicNode
 Inherited
Navigates the application until the selected node is displayed.
IDisplayable
  
Removes the specified panel from the view and returns the removed IPanel object, which can optionally be added to another node in the DOM tree.
IView
 Inherited
resolveReferences(onSuccess:Function = null, onFailure:Function = null):void
Resolves any reference elements that may be in the View, Panel, or Tile.
IMosaicNode
  
save(label:String, description:String = null, onSuccess:Function = null, onFailure:Function = null):void
Programmatically saves the view with a label and description.
IView
Détails de la propriété

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

allowContentDelete

propriété 
allowContentDelete: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 allowContentDelete value



Implémentation
    public function get allowContentDelete():Boolean
    public function set allowContentDelete(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 view.



Implémentation
    public function get layout():ILayout

panels

propriété 
panels:Array  [lecture seule]

Version du langage: ActionScript 3.0
Version du produit: Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 9.5
Versions du moteur d’exécution: AIR 2.6, Flash Player 10.2

Returns an array of panels that exist within a view.



Implémentation
    public function get panels():Array
Détails de la méthode

addPanel

()méthode
public function addPanel(panel:IPanel, 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 9.5
Versions du moteur d’exécution: AIR 2.6, Flash Player 10.2

Adds a Panel to the View. The resulting AddPanelEvent indicating success or failure is returned in the callback function and also dispatched to the MessageListeners.

Paramètres

panel:IPanel — The Panel to add.
 
onSuccess:Function (default = null) — a Function callback that takes in one parameter of type AddPanelEvent when the operation succeeded
 
onFailure:Function (default = null) — a Function callback that takes in one parameter of type AddPanelEvent when the operation failed

Eléments de l’API associés


Exemple
Comment utiliser cet exemple
This example retrieves a panel named "samplePanel" from a catalog and adds the Panel to the view:
         mosaicApp.addMessageListener(AddPanelEvent.NAMESPACE, AddPanelEvent.SUCCESS, onAddPanelEvent);
         mosaicApp.addMessageListener(AddPanelEvent.NAMESPACE, AddPanelEvent.FAILURE, onAddPanelEvent);
         
         var t:IPanel = sampleCatalog.getPanel("samplePanel");
         thisTile.parentView.addPanel(t,onAddPanelSuccess,onAddPanelFailure);
         
         //functions to manage success or failure callbacks
         private function onAddPanelSuccess(evt:AddPanelEvent):void {} 
         private function onAddPanelFailure(evt:AddPanelEvent):void {}
         
         //functions to manage success or failure events
         private function onAddPanelEvent(message:Message):void {
             var addPanelEvent:AddPanelEvent = message.payload as AddPanelEvent;
             var addedPanel:IPanel = addPanelEvent.panelNode;
             //custom processing
         }
         

removePanel

()méthode 
public function removePanel(panel:IPanel):IPanel

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 panel from the view and returns the removed IPanel object, which can optionally be added to another node in the DOM tree.

Paramètres

panel:IPanel — The panel to be deleted.

Valeur renvoyée
IPanel — The IPanel object that was removed.

Eléments de l’API associés

save

()méthode 
public function save(label:String, description:String = null, 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 9.5
Versions du moteur d’exécution: AIR 2.6, Flash Player 10.2

Programmatically saves the view with a label and description. Users are not presented with a user interface to input view details. The resulting SaveViewEvent indicating success or failure is returned in the callback function and also dispatched to the MessageListeners.

Paramètres

label:String — The label to use for the view.
 
description:String (default = null) — The text description for this view.
 
onSuccess:Function (default = null) — A function that takes in one parameter of type SaveViewEvent that is called when the view is saved successfully.
 
onFailure:Function (default = null) — A function that takes in one parameter of type SaveViewEvent that is called when the view save fails.





[ X ]Pourquoi existe-t-il du contenu en anglais ?
Certaines parties du Guide de référence ActionScript 3.0 sont en anglais

Tout le contenu du Guide de référence ActionScript 3.0 n’a pas été traduit dans toutes les langues. Si un élément de langage n’est pas traduit, il s’affiche en anglais. Par exemple, la classe ga.controls.HelpBox n’est traduite dans aucune langue. Ainsi, dans la version française du guide de référence, la classe ga.controls.HelpBox apparaît en anglais.