Packageorg.apache.flex.core
Interfacepublic interface ILayoutChild extends IChild, IUIBase, IStrand, IEventDispatcher, flash.events.IEventDispatcher
Implementors UIBase, UIButtonBase

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The IChild interface is the basic interface for a component that is parented by another component.



Public Properties
 PropertyDefined By
 Inheritedalpha : Number
The alpha or opacity in the range of 0 to 1.
IUIBase
 Inheritedelement : IFlexJSElement
[read-only] Each IUIBase has an element that is actually added to the platform's display list DOM.
IUIBase
  explicitHeight : Number
[read-only] The height of this component if set by the height property
ILayoutChild
  explicitWidth : Number
[read-only] The width of this component if set by the width property
ILayoutChild
 Inheritedheight : Number
The height of the bounding box.
IUIBase
 Inheritedparent : DisplayObjectContainer
[read-only] The parent.
IChild
  percentHeight : Number
The requested percentage height of this component in its container.
ILayoutChild
  percentWidth : Number
The requested percentage width of this component in its container.
ILayoutChild
 InheritedtopMostEventDispatcher : IEventDispatcher
[read-only] The top most event dispatcher.
IUIBase
 Inheritedvisible : Boolean
Whether the component is visible.
IUIBase
 Inheritedwidth : Number
The width of the bounding box.
IUIBase
 Inheritedx : Number
The x co-ordinate or left side position of the bounding box.
IUIBase
 Inheritedy : Number
The y co-ordinate or top position of the bounding box.
IUIBase
Public Methods
 MethodDefined By
 Inherited
addBead(bead:IBead):void
Add a bead to the strand.
IStrand
 Inherited
Called by parent components when the component is added via a call to addElement or addElementAt.
IUIBase
 Inherited
getBeadByType(classOrInterface:Class):IBead
Find a bead on the strand.
IStrand
  
True if no percentHeight or explicitHeight has been assigned
ILayoutChild
  
True if no percentWidth or explicitWidth has been assigned
ILayoutChild
 Inherited
Remove a bead from the strand.
IStrand
  
setHeight(value:Number, noEvent:Boolean = false):void
Sets the height of the component without setting explicitHeight.
ILayoutChild
  
setWidth(value:Number, noEvent:Boolean = false):void
Sets the width of the component without setting explicitWidth.
ILayoutChild
  
setWidthAndHeight(newWidth:Number, newHeight:Number, noEvent:Boolean = false):void
Sets the width and height of the component without setting explicitWidth or explicitHeight.
ILayoutChild
  
setX(value:Number):void
Sets the X value of the component without setting the 'left' style
ILayoutChild
  
setY(value:Number):void
Sets the Y value of the component without setting the 'top' style
ILayoutChild
Property Detail
explicitHeightproperty
explicitHeight:Number  [read-only]

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The height of this component if set by the height property


Implementation
    public function get explicitHeight():Number
explicitWidthproperty 
explicitWidth:Number  [read-only]

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The width of this component if set by the width property


Implementation
    public function get explicitWidth():Number
percentHeightproperty 
percentHeight:Number

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The requested percentage height of this component in its container.


Implementation
    public function get percentHeight():Number
    public function set percentHeight(value:Number):void
percentWidthproperty 
percentWidth:Number

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The requested percentage width of this component in its container.


Implementation
    public function get percentWidth():Number
    public function set percentWidth(value:Number):void
Method Detail
isHeightSizedToContent()method
public function isHeightSizedToContent():Boolean

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

True if no percentHeight or explicitHeight has been assigned

Returns
Boolean
isWidthSizedToContent()method 
public function isWidthSizedToContent():Boolean

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

True if no percentWidth or explicitWidth has been assigned

Returns
Boolean
setHeight()method 
public function setHeight(value:Number, noEvent:Boolean = false):void

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Sets the height of the component without setting explicitHeight.

Parameters

value:Number — The new height.
 
noEvent:Boolean (default = false) — True if no change event should be sent.

setWidth()method 
public function setWidth(value:Number, noEvent:Boolean = false):void

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Sets the width of the component without setting explicitWidth.

Parameters

value:Number — The new width.
 
noEvent:Boolean (default = false) — True if no change event should be sent.

setWidthAndHeight()method 
public function setWidthAndHeight(newWidth:Number, newHeight:Number, noEvent:Boolean = false):void

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Sets the width and height of the component without setting explicitWidth or explicitHeight. It also sends one change event. If both values change it only sends heightCHange event.

Parameters

newWidth:Number — The new width.
 
newHeight:Number — The new height.
 
noEvent:Boolean (default = false) — True if no change event should be sent.

setX()method 
public function setX(value:Number):void

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Sets the X value of the component without setting the 'left' style

Parameters

value:Number — The new x value.

setY()method 
public function setY(value:Number):void

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Sets the Y value of the component without setting the 'top' style

Parameters

value:Number — The new y value.