Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
ILayoutChild

Package | org.apache.flex.core
Interface | public 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
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | alpha : Number The alpha or opacity in the range of 0 to 1. | IUIBase
|  | element : 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
|  | height : Number The height of the bounding box. | IUIBase
|  | parent : 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
|  | topMostEventDispatcher : IEventDispatcher [read-only] The top most event dispatcher. | IUIBase
|  | visible : Boolean Whether the component is visible. | IUIBase
|  | width : Number The width of the bounding box. | IUIBase
|  | x : Number The x co-ordinate or left side position of the bounding box. | IUIBase
|  | y : Number The y co-ordinate or top position of the bounding box. | IUIBase

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | addBead(bead:IBead):void Add a bead to the strand. | IStrand
|  | addedToParent():void Called by parent components when the component is added via a call to addElement or addElementAt. | IUIBase
|  | getBeadByType(classOrInterface:Class):IBead Find a bead on the strand. | IStrand
|  | isHeightSizedToContent():Boolean True if no percentHeight or explicitHeight has been assigned | ILayoutChild
|  | isWidthSizedToContent():Boolean True if no percentWidth or explicitWidth has been assigned | ILayoutChild
|  | removeBead(bead:IBead):IBead 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

explicitHeight | property

`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`

explicitWidth | property |

`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`

percentHeight | property |

`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`

percentWidth | property |

`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.

Mon Sep 5 2016, 07:19 AM -07:00