用于 Adobe® Flash® Platform 的 ActionScript® 3.0 参考
主页  |  隐藏包列表和类列表 |   |   |  新增内容  |  索引  |  附录  |  为什么显示为英语?
过滤条件: 正在从服务器检索数据...
正在从服务器检索数据...
com.adobe.mosaic.skinning 

IMosaicContainer  - AS3 ADEP Composite Application

com.adobe.mosaic.skinning
接口public interface IMosaicContainer extends IMosaicComponent , ILayoutChild

语言版本: ActionScript 3.0
产品版本: Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10
运行时版本: AIR 2.6, Flash Player 10.2

The IMosaicContainer interface is implemented by most composite application container, such as View, ViewManager, Panel, and Shell. Skins for these containers can declare their hostComponent to be of this interface type, gaining access to the underlying composite application container through the functions and properties here.



公共属性
 属性由以下参数定义
 InheritedallowDelete : Boolean
[只读] Indicates if this component may be deleted or not.
IMosaicComponent
 InheritedcolumnIndex : int
The column index of the component.
ILayoutChild
  contentList : ISelectableList
[只读] The list of components managed by this container as a SelectableList.
IMosaicContainer
 InheritedenableDrag : Boolean
Indicates if the item may be dragged.
ILayoutChild
 Inheritedlabel : String
The title of the component.
IMosaicComponent
 InheritedmosaicNode : IMosaicNode
[只读] Do Not Use.
IMosaicComponent
 InheritedrowIndex : int
The row index of the component
ILayoutChild
  selectedChild : DisplayObject
[只读] Returns the selectedChild of the hostComponent or null if no child is currently selected.
IMosaicContainer
公共方法
 方法由以下参数定义
  
The skin should present a control to allow the user to request a new child element.
IMosaicContainer
  
The skin should present a control to allow the user to close a child element.
IMosaicContainer
  
The skin should present a control to allow the user to save a child element.
IMosaicContainer
 Inherited
commitResize(newWidth:Number, newHeight:Number):void
Records the new size of the component in the DOM structure representing the component.
IMosaicComponent
 Inherited
Creates an displayable object (eg, Image) of the child suitable for use in a drag/drop operation as the drag proxy.
ILayoutChild
 Inherited
Returns the localized string associated with the given key.
IMosaicComponent
  
Instructs the hostComponent to handle the Add request.
IMosaicContainer
  
Instructs the hostComponent to handle the Close request.
IMosaicContainer
  
Instructs the hostComponent to give one of its children a new name.
IMosaicContainer
  
Instructs the hostComponent to handle the Save request.
IMosaicContainer
  
selectChildIndex(newIndex:int, oldIndex:int):void
Make the hostComponent show the child at the given index.
IMosaicContainer
属性详细信息

contentList

属性
contentList:ISelectableList  [只读]

语言版本: ActionScript 3.0
产品版本: Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10
运行时版本: AIR 2.6, Flash Player 10.2

The list of components managed by this container as a SelectableList.



实现
    public function get contentList():ISelectableList

selectedChild

属性 
selectedChild:DisplayObject  [只读]

语言版本: ActionScript 3.0
产品版本: Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10
运行时版本: AIR 2.6, Flash Player 10.2

Returns the selectedChild of the hostComponent or null if no child is currently selected.



实现
    public function get selectedChild():DisplayObject
方法详细信息

allowsAdd

()方法
public function allowsAdd():Boolean

语言版本: ActionScript 3.0
产品版本: Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10
运行时版本: AIR 2.6, Flash Player 10.2

The skin should present a control to allow the user to request a new child element. Pressing the control should invoke the handleAddRequest() function.

返回
Boolean — A value of true if the hostComponent allows new children.

allowsClose

()方法 
public function allowsClose():Boolean

语言版本: ActionScript 3.0
产品版本: Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10
运行时版本: AIR 2.6, Flash Player 10.2

The skin should present a control to allow the user to close a child element. Pressing the control should invoke the handleCloseRequest() function.

返回
Boolean — true if the hostComponent allows its children to be closed.

allowsSave

()方法 
public function allowsSave():Boolean

语言版本: ActionScript 3.0
产品版本: Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10
运行时版本: AIR 2.6, Flash Player 10.2

The skin should present a control to allow the user to save a child element. Pressing the control should invoke the handleSaveRequest() function.

返回
Boolean — true if the hostComponent allows its children to be saved.

handleAddRequest

()方法 
public function handleAddRequest():void

语言版本: ActionScript 3.0
产品版本: Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10
运行时版本: AIR 2.6, Flash Player 10.2

Instructs the hostComponent to handle the Add request.

handleCloseRequest

()方法 
public function handleCloseRequest(index:int):void

语言版本: ActionScript 3.0
产品版本: Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10
运行时版本: AIR 2.6, Flash Player 10.2

Instructs the hostComponent to handle the Close request.

参数

index:int — The index of the child to close.

handleRenameRequest

()方法 
public function handleRenameRequest(index:int, newName:String):void

语言版本: ActionScript 3.0
产品版本: Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10
运行时版本: AIR 2.6, Flash Player 10.2

Instructs the hostComponent to give one of its children a new name.

参数

index:int — The index of the child to give a new name to.
 
newName:String — The new name to give.

handleSaveRequest

()方法 
public function handleSaveRequest(index:int):void

语言版本: ActionScript 3.0
产品版本: Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10
运行时版本: AIR 2.6, Flash Player 10.2

Instructs the hostComponent to handle the Save request.

参数

index:int — The index of the child to save.

selectChildIndex

()方法 
public function selectChildIndex(newIndex:int, oldIndex:int):void

语言版本: ActionScript 3.0
产品版本: Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10
运行时版本: AIR 2.6, Flash Player 10.2

Make the hostComponent show the child at the given index.

参数

newIndex:int — The index of the child being selected.
 
oldIndex:int — The index of the child that was selected.





[ X ]为什么显示为英语?
《ActionScript 3.0 参考》中的内容以英语显示

《ActionScript 3.0 参考》中的部分内容未翻译成所有语言。当某个语言元素未翻译时,将显示为英语。例如,ga.controls.HelpBox 类未翻译成任何语言。因此在简体中文版的参考中,ga.controls.HelpBox 类显示为英语。