Apache Flex 4.16.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
ConstraintColumn

Package | mx.containers.utilityClasses
Class | public class ConstraintColumn
Inheritance | ConstraintColumn flash.events.EventDispatcher
Implements | IMXMLObject

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

The ConstraintColumn class partitions an absolutely positioned container in the vertical plane. ConstraintColumn instances have 3 sizing options: fixed, percentage, and content. These options dictate the position of the constraint column, the amount of space the constraint column takes in the container, and how the constraint column deals with changes in the size of the container.

Public Properties

| Property | Defined By
--- | --- | ---
|  | explicitWidth : Number Number that specifies the explicit width of the ConstraintColumn instance, in pixels, in the ConstraintColumn instance's coordinates. | ConstraintColumn
|  | id : String ID of the ConstraintColumn instance. | ConstraintColumn
|  | maxWidth : Number Number that specifies the maximum width of the ConstraintColumn instance, in pixels, in the ConstraintColumn instance's coordinates. | ConstraintColumn
|  | minWidth : Number Number that specifies the minimum width of the ConstraintColumn instance, in pixels, in the ConstraintColumn instance's coordinates. | ConstraintColumn
|  | percentWidth : Number Number that specifies the width of a component as a percentage of its parent container's size. | ConstraintColumn
|  | width : Number Number that specifies the width of the ConstraintColumn instance, in pixels, in the parent container's coordinates. | ConstraintColumn

Public Methods

| Method | Defined By
--- | --- | ---
|  | ConstraintColumn() Constructor. | ConstraintColumn
|  | initialized(document:Object, id:String):void Called automatically by the MXML compiler when the ConstraintColumn instance is created using an MXML tag. | ConstraintColumn
|  | setActualWidth(w:Number):void Sizes the constraint column. | ConstraintColumn

Property Detail

explicitWidth | property

`explicitWidth:Number`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Number that specifies the explicit width of the ConstraintColumn instance, in pixels, in the ConstraintColumn instance's coordinates.

This property can be used as the source for data binding.

Implementation
`public function get explicitWidth():Number`
`public function set explicitWidth(value:Number):void`

id | property |

`id:String`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

ID of the ConstraintColumn instance. This value becomes the instance name of the ConstraintColumn instance and should not contain white space or special characters.

Implementation
`public function get id():String`
`public function set id(value:String):void`

maxWidth | property |

`maxWidth:Number`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Number that specifies the maximum width of the ConstraintColumn instance, in pixels, in the ConstraintColumn instance's coordinates.

This property can be used as the source for data binding.

Implementation
`public function get maxWidth():Number`
`public function set maxWidth(value:Number):void`

minWidth | property |

`minWidth:Number`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Number that specifies the minimum width of the ConstraintColumn instance, in pixels, in the ConstraintColumn instance's coordinates.

This property can be used as the source for data binding.

Implementation
`public function get minWidth():Number`
`public function set minWidth(value:Number):void`

percentWidth | property |

`percentWidth:Number`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Number that specifies the width of a component as a percentage of its parent container's size. Allowed values are 0-100. The default value is NaN. Setting the `width` property resets this property to NaN.

This property can be used as the source for data binding.

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

width | property |

`width:Number`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Number that specifies the width of the ConstraintColumn instance, in pixels, in the parent container's coordinates.

This property can be used as the source for data binding.

Implementation
`public function get width():Number`
`public function set width(value:Number):void`
Constructor Detail

ConstraintColumn | () | Constructor

`public function ConstraintColumn()`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Constructor.

Method Detail

initialized | () | method

`public function initialized(document:Object, id:String):void`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Called automatically by the MXML compiler when the ConstraintColumn instance is created using an MXML tag. If you create the ConstraintColumn instance through ActionScript, you must call this method passing in the MXML document and `null` for the `id`.

Parameters

| `document:Object` — The MXML document containing this ConstraintColumn.
| `id:String` — Ignored.

setActualWidth | () | method |

`public function setActualWidth(w:Number):void`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Sizes the constraint column.

Parameters

| `w:Number` — Width of constaint column computed during parent container processing.

Sun Mar 5 2017, 03:42 PM +11:00