ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
com.adobe.guides.spark.layouts.components 

ILayoutComponent  - AS3 ADEP Guides

Packagecom.adobe.guides.spark.layouts.components
Interfacepublic interface ILayoutComponent extends ILayoutHost , IUIComponent , IEventDispatcher , IStyleClient , IFlexDisplayObject , ISimpleStyleClient
Implementors LayoutHostBase

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Guides 10
Runtime Versions: AIR 1.0, Flash Player 10.2

Interface supported by the skinnable layout host components



Public Properties
 PropertyDefined By
 InheritedaccessibilityProperties : AccessibilityProperties
The current accessibility options for this display object.
IFlexDisplayObject
 Inheritedalpha : Number
Indicates the alpha transparency value of the object specified.
IFlexDisplayObject
 InheritedbaselinePosition : Number
[read-only] The y-coordinate of the baseline of the first line of text of the component.
IUIComponent
 InheritedbaseReferenceChain : BaseReferenceChain
[read-only] The chain of bindings up the ancestor chain.
ILayoutHost
 InheritedblendMode : String
A value from the BlendMode class that specifies which blend mode to use.
IFlexDisplayObject
 InheritedcacheAsBitmap : Boolean
If set to true, Flash runtimes cache an internal bitmap representation of the display object.
IFlexDisplayObject
 InheritedclassName : String
[read-only] The name of the component class.
IStyleClient
 InheriteddataProvider : Object
The data provider that is bound to this panel layout.
ILayoutHost
 InheriteddefaultCaptionWidth : int
The default caption width for each panel item within a panel layout.
ILayoutHost
 Inheriteddocument : Object
A reference to the document object associated with this component.
IUIComponent
 Inheritedenabled : Boolean
Whether the component can accept user interaction.
IUIComponent
 InheritedexplicitHeight : Number
The explicitly specified height for the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedexplicitMaxHeight : Number
[read-only] Number that specifies the maximum height of the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedexplicitMaxWidth : Number
[read-only] Number that specifies the maximum width of the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedexplicitMinHeight : Number
[read-only] Number that specifies the minimum height of the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedexplicitMinWidth : Number
[read-only] Number that specifies the minimum width of the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedexplicitWidth : Number
The explicitly specified width for the component, in pixels, as the component's coordinates.
IUIComponent
 Inheritedfilters : Array
An indexed array that contains each filter object currently associated with the display object.
IFlexDisplayObject
 InheritedfocusPane : Sprite
A single Sprite object that is shared among components and used as an overlay for drawing the focus indicator.
IUIComponent
 Inheritedheight : Number
Indicates the height of the display object, in pixels.
IFlexDisplayObject
 InheritedincludeInLayout : Boolean
Specifies whether this component is included in the layout of the parent container.
IUIComponent
 InheritedinheritingStyles : Object
An object containing the inheritable styles for this component.
IStyleClient
 InheritedisPopUp : Boolean
Set to true by the PopUpManager to indicate that component has been popped up.
IUIComponent
 InheritedloaderInfo : LoaderInfo
[read-only] Returns a LoaderInfo object containing information about loading the file to which this display object belongs.
IFlexDisplayObject
 Inheritedmask : DisplayObject
The calling display object is masked by the specified mask object.
IFlexDisplayObject
 InheritedmaxHeight : Number
[read-only] Number that specifies the maximum height of the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedmaxWidth : Number
[read-only] Number that specifies the maximum width of the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedmeasuredHeight : Number
[read-only] The measured height of this object.
IFlexDisplayObject
 InheritedmeasuredMinHeight : Number
The default minimum height of the component, in pixels.
IUIComponent
 InheritedmeasuredMinWidth : Number
The default minimum width of the component, in pixels.
IUIComponent
 InheritedmeasuredWidth : Number
[read-only] The measured width of this object.
IFlexDisplayObject
 InheritedminHeight : Number
[read-only] Number that specifies the minimum height of the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedminWidth : Number
[read-only] Number that specifies the minimum width of the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedmouseX : Number
[read-only] Indicates the x coordinate of the mouse or user input device position, in pixels.
IFlexDisplayObject
 InheritedmouseY : Number
[read-only] Indicates the y coordinate of the mouse or user input device position, in pixels.
IFlexDisplayObject
 Inheritedname : String
Indicates the instance name of the DisplayObject.
IFlexDisplayObject
  nextTabIndex : int
[write-only] Set the next tab index to be used by the tab index generator.
ILayoutComponent
 InheritednonInheritingStyles : Object
An object containing the noninheritable styles for this component.
IStyleClient
 InheritedopaqueBackground : Object
Specifies whether the display object is opaque with a certain background color.
IFlexDisplayObject
 Inheritedowner : DisplayObjectContainer
The owner of this IVisualElement object.
IUIComponent
 Inheritedpanel : Panel
the parent panel of the layout.
ILayoutHost
 InheritedpanelItems : Array
An array of panel items that are slotted into the panel layout.
ILayoutHost
 Inheritedparent : DisplayObjectContainer
[read-only] Indicates the DisplayObjectContainer object that contains this display object.
IFlexDisplayObject
 InheritedpercentHeight : Number
Number that specifies the height of a component as a percentage of its parent's size.
IUIComponent
 InheritedpercentWidth : Number
Number that specifies the width of a component as a percentage of its parent's size.
IUIComponent
 Inheritedroot : DisplayObject
[read-only] For a display object in a loaded SWF file, the root property is the top-most display object in the portion of the display list's tree structure represented by that SWF file.
IFlexDisplayObject
 Inheritedrotation : Number
Indicates the rotation of the DisplayObject instance, in degrees, from its original orientation.
IFlexDisplayObject
 Inheritedscale9Grid : Rectangle
The current scaling grid that is in effect.
IFlexDisplayObject
 InheritedscaleX : Number
Indicates the horizontal scale (percentage) of the object as applied from the registration point.
IFlexDisplayObject
 InheritedscaleY : Number
Indicates the vertical scale (percentage) of an object as applied from the registration point of the object.
IFlexDisplayObject
 InheritedscrollRect : Rectangle
The scroll rectangle bounds of the display object.
IFlexDisplayObject
 InheritedsizeState : int
The size state of this panel in the Guide layout.
ILayoutHost
 Inheritedstage : Stage
[read-only] The Stage of the display object.
IFlexDisplayObject
 InheritedstyleDeclaration : CSSStyleDeclaration
The style declaration that holds the inline styles declared by this object.
IStyleClient
 InheritedstyleName : Object
The source of this object's style values.
ISimpleStyleClient
 InheritedsupportsDynamicAlignmentAreas : Boolean
[read-only] Indicates that this layout supports a dynamic number of alignment areas.
ILayoutHost
 InheritedsupportsKeepWithPrevious : Boolean
[read-only] Indicates that this layout supports the keep with previous hint on a panel item.
ILayoutHost
 InheritedsystemManager : ISystemManager
A reference to the SystemManager object for this component.
IUIComponent
 Inheritedtransform : flash.geom:Transform
An object with properties pertaining to a display object's matrix, color transform, and pixel bounds.
IFlexDisplayObject
 InheritedtweeningProperties : Array
Used by EffectManager.
IUIComponent
 Inheritedvisible : Boolean
Whether or not the display object is visible.
IFlexDisplayObject
 Inheritedwidth : Number
Indicates the width of the display object, in pixels.
IFlexDisplayObject
 Inheritedx : Number
Indicates the x coordinate of the DisplayObject instance relative to the local coordinates of the parent DisplayObjectContainer.
IFlexDisplayObject
 Inheritedy : Number
Indicates the y coordinate of the DisplayObject instance relative to the local coordinates of the parent DisplayObjectContainer.
IFlexDisplayObject
Public Methods
 MethodDefined By
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
IEventDispatcher
  
addItem(group:Group, itemFactory:IFactory):IPanelItem
instantiate the itemFactory and add it to the specified group
ILayoutComponent
  
addItemsToGroup(group:Group, itemFactories:Array):void
instantiate the itemFactories and add them to the specified group.
ILayoutComponent
  
addItemsToGroups(groups:Array, itemFactories:Array, startTabIndex:int = -1, tabIncrement:int = 0):int
Add items alternating between the specified groups, incremented the tab indexes.
ILayoutComponent
  
Aligns each row in a multi-column layout by making each item in each row the same height.
ILayoutComponent
 Inherited
Deletes a style property from this component instance.
IStyleClient
 Inherited
Clone this panel layout.
ILayoutHost
 Inherited
Dispatches an event into the event flow.
IEventDispatcher
 Inherited
executeBindings(recurse:Boolean = false):void
Execute all bindings within this panel layout.
ILayoutHost
 Inherited
getAllItems(container:DisplayObjectContainer = null, itemList:Array = null):Array
Returns all display objects on this panel.
ILayoutHost
 Inherited
getBounds(targetCoordinateSpace:DisplayObject):Rectangle
Returns a rectangle that defines the area of the display object relative to the coordinate system of the targetCoordinateSpace object.
IFlexDisplayObject
 Inherited
Returns an Array of CSSStyleDeclaration objects for the type selector that applies to this component, or null if none exist.
IStyleClient
 Inherited
A convenience method for determining whether to use the explicit or measured height
IUIComponent
 Inherited
A convenience method for determining whether to use the explicit or measured width
IUIComponent
 Inherited
getFields(visibleFieldsOnly:Boolean = false, container:DisplayObjectContainer = null):Array
Returns the bound visible fields which are referenced in this layout.
ILayoutHost
 Inherited
Returns the first panel item in the panel layout.
ILayoutHost
  
return the item factories for a specified area index
ILayoutComponent
 Inherited
Get label corresponding to the index in the data provider.
ILayoutHost
 Inherited
Return an array of name areas or groups that this layout supports.
ILayoutHost
 Inherited
getPanelItems(visibleItemsOnly:Boolean = false, container:DisplayObjectContainer = null, itemList:Array = null):Array
Returns the panel items contained in the panel layout.
ILayoutHost
 Inherited
getRect(targetCoordinateSpace:DisplayObject):Rectangle
Returns a rectangle that defines the boundary of the display object, based on the coordinate system defined by the targetCoordinateSpace parameter, excluding any strokes on shapes.
IFlexDisplayObject
 Inherited
getStyle(styleProp:String):*
Gets a style property that has been set anywhere in this component's style lookup chain.
IStyleClient
 Inherited
Converts the point object from the Stage (global) coordinates to the display object's (local) coordinates.
IFlexDisplayObject
 Inherited
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
IEventDispatcher
 Inherited
Evaluates the bounding box of the display object to see if it overlaps or intersects with the bounding box of the obj display object.
IFlexDisplayObject
 Inherited
hitTestPoint(x:Number, y:Number, shapeFlag:Boolean = false):Boolean
Evaluates the display object to see if it overlaps or intersects with the point specified by the x and y parameters.
IFlexDisplayObject
 Inherited
Initialize the object.
IUIComponent
  
Determine if the factory that was created for design mode and is running inside the guide builder canvas.
ILayoutComponent
 Inherited
True if this is a panel containing is a document of record.
ILayoutHost
 Inherited
True if this is a panel containing a PDF rendition.
ILayoutHost
  
Return the panelItems split into arrays based on how the list has been delimited with panel breaks.
ILayoutComponent
 Inherited
Converts the point object from the display object's (local) coordinates to the Stage (global) coordinates.
IFlexDisplayObject
  
Align each child with same same child index to be the same height.
ILayoutComponent
 Inherited
Moves this object to the specified x and y coordinates.
IFlexDisplayObject
 Inherited
Propagates style changes to the children of this component.
IStyleClient
 Inherited
owns(displayObject:DisplayObject):Boolean
Returns true if the chain of owner properties points from child to this UIComponent.
IUIComponent
 Inherited
Called by Flex when a UIComponent object is added to or removed from a parent.
IUIComponent
 Inherited
Sets up the internal style cache values so that the getStyle() method functions.
IStyleClient
 Inherited
Registers the EffectManager as one of the event listeners for each effect event.
IStyleClient
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
IEventDispatcher
 Inherited
Resets the fields in a container.
ILayoutHost
  
Reset the nextTabIndex.
ILayoutComponent
 Inherited
setActualSize(newWidth:Number, newHeight:Number):void
Sets the actual size of this object.
IFlexDisplayObject
 Inherited
set the selected panel on this layout.
ILayoutHost
 Inherited
setStyle(styleProp:String, newValue:*):void
Sets a style property on this component instance.
IStyleClient
 Inherited
setVisible(value:Boolean, noEvent:Boolean = false):void
Called when the visible property changes.
IUIComponent
 Inherited
Called when the value of a style property is changed.
ISimpleStyleClient
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
IEventDispatcher
Property Detail

nextTabIndex

property
nextTabIndex:int  [write-only]

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Guides 10
Runtime Versions: AIR 1.0, Flash Player 10.2

Set the next tab index to be used by the tab index generator.



Implementation
    public function set nextTabIndex(value:int):void
Method Detail

addItem

()method
public function addItem(group:Group, itemFactory:IFactory):IPanelItem

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Guides 10
Runtime Versions: AIR 1.0, Flash Player 10.2

instantiate the itemFactory and add it to the specified group

Parameters

group:Group — the group where the item is added
 
itemFactory:IFactory — the factory to be instantiated and added

Returns
IPanelItem — the panel item that was added

addItemsToGroup

()method 
public function addItemsToGroup(group:Group, itemFactories:Array):void

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Guides 10
Runtime Versions: AIR 1.0, Flash Player 10.2

instantiate the itemFactories and add them to the specified group.

Parameters

group:Group — - group to add the instantiated items.
 
itemFactories:Array — - the item factories to be instantiated.

addItemsToGroups

()method 
public function addItemsToGroups(groups:Array, itemFactories:Array, startTabIndex:int = -1, tabIncrement:int = 0):int

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Guides 10
Runtime Versions: AIR 1.0, Flash Player 10.2

Add items alternating between the specified groups, incremented the tab indexes. The routine returns the next tab index to be used in subsequent calls.

Parameters

groups:Array — where the items are alternately added.
 
itemFactories:Array — the factories for the items to instantiated and added to the groups.
 
startTabIndex:int (default = -1) — the starting tab index (if -1) tabIndex is not set on the items.
 
tabIncrement:int (default = 0) — the amount to offset the tabIndex between each added item.

Returns
int — - the next tab index.

alignHorizontalGroupContent

()method 
public function alignHorizontalGroupContent(outerGroup:Group):void

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Guides 10
Runtime Versions: AIR 1.0, Flash Player 10.2

Aligns each row in a multi-column layout by making each item in each row the same height.

Parameters

outerGroup:Group — - the outer container of a series of HGroup containers.

getItemFactoriesForArea

()method 
public function getItemFactoriesForArea(areaIndex:int):Array

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Guides 10
Runtime Versions: AIR 1.0, Flash Player 10.2

return the item factories for a specified area index

Parameters

areaIndex:int — - index of the area or group.

Returns
Array — the array of panel item factories for the specified area.

isDesignItem

()method 
public function isDesignItem(oFactory:Object):Boolean

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Guides 10
Runtime Versions: AIR 1.0, Flash Player 10.2

Determine if the factory that was created for design mode and is running inside the guide builder canvas.

Parameters

oFactory:Object — Specifies the factory of the item to be introspected.

Returns
Boolean — A boolean value that specifies whether or not this item or item factory is a design item. A value of true is returned when the factory was created for design mode.

itemsToAreas

()method 
public function itemsToAreas():Array

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Guides 10
Runtime Versions: AIR 1.0, Flash Player 10.2

Return the panelItems split into arrays based on how the list has been delimited with panel breaks. The return is an array of arrays. For example the first element of the array is an array of items for the first area.

Returns
Array — the items broken into a series of arrays, one array for each area.

makeSameHeight

()method 
public function makeSameHeight(oContainers:Array):void

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Guides 10
Runtime Versions: AIR 1.0, Flash Player 10.2

Align each child with same same child index to be the same height.

Parameters

oContainers:Array — - make each container in the array the height of the largest container.

resetNextTabIndex

()method 
public function resetNextTabIndex():void

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Guides 10
Runtime Versions: AIR 1.0, Flash Player 10.2

Reset the nextTabIndex.