Packagemx.containers.utilityClasses
Classpublic class ConstraintRow
InheritanceConstraintRow Inheritance flash.events.EventDispatcher
ImplementsIMXMLObject

ConstraintRow class partitions an absolutely positioned container in the horizontal plane. ConstraintRow instances have 3 sizing options: fixed, percentage, and content. These options dictate the position of the constraint row, the amount of space the constraint row takes in the container, and how the constraint row deals with a change in the size of the container.



Public Properties
 PropertyDefined by
  explicitHeight : Number
Number that specifies the explicit height of the ConstraintRow instance, in pixels, in the ConstraintRow instance's coordinates.
ConstraintRow
  height : Number
Number that specifies the height of the ConstraintRow instance, in pixels, in the parent's coordinates.
ConstraintRow
  id : String
ID of the ConstraintRow instance.
ConstraintRow
  maxHeight : Number
Number that specifies the maximum height of the ConstraintRow instance, in pixels, in the ConstraintRow instance's coordinates.
ConstraintRow
  minHeight : Number
Number that specifies the minimum height of the ConstraintRow instance, in pixels, in the ConstraintRow instance's coordinates.
ConstraintRow
  percentHeight : Number
Number that specifies the height of a component as a percentage of its parent's size.
ConstraintRow
Public Methods
 MethodDefined by
  
Constructor.
ConstraintRow
  
initialized(document:Object, id:String):void
Called automatically by the MXML compiler when the ConstraintRow instance is created using an MXML tag.
ConstraintRow
  
setActualHeight(h:Number):void
Sizes the ConstraintRow
ConstraintRow
Property detail
explicitHeightproperty
explicitHeight:Number  [read-write]

Number that specifies the explicit height of the ConstraintRow instance, in pixels, in the ConstraintRow instance's coordinates.

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

Implementation
    public function get explicitHeight():Number
    public function set explicitHeight(value:Number):void
heightproperty 
height:Number  [read-write]

Number that specifies the height of the ConstraintRow instance, in pixels, in the parent's coordinates.

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

Implementation
    public function get height():Number
    public function set height(value:Number):void
idproperty 
id:String  [read-write]

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

Implementation
    public function get id():String
    public function set id(value:String):void
maxHeightproperty 
maxHeight:Number  [read-write]

Number that specifies the maximum height of the ConstraintRow instance, in pixels, in the ConstraintRow instance's coordinates.

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

Implementation
    public function get maxHeight():Number
    public function set maxHeight(value:Number):void
minHeightproperty 
minHeight:Number  [read-write]

Number that specifies the minimum height of the ConstraintRow instance, in pixels, in the ConstraintRow instance's coordinates.

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

Implementation
    public function get minHeight():Number
    public function set minHeight(value:Number):void
percentHeightproperty 
percentHeight:Number  [read-write]

Number that specifies the height of a component as a percentage of its parent'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 percentHeight():Number
    public function set percentHeight(value:Number):void
Constructor detail
ConstraintRow()constructor
public function ConstraintRow()

Constructor.

Method detail
initialized()method
public function initialized(document:Object, id:String):void

Called automatically by the MXML compiler when the ConstraintRow instance is created using an MXML tag. If you create the constraint row 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 ConstraintRow.
 
id:String — Ignored.
setActualHeight()method 
public function setActualHeight(h:Number):void

Sizes the ConstraintRow

Parameters
h:Number — Height of constaint row computed during parent container processing.