Apache Flex 4.16.1 API Reference | All Packages | All Classes | Index | Frames No Frames |
IConstraintClient

Package | mx.core
Interface | public interface IConstraintClient
Implementors | PostScaleAdapter, UIComponent

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

The IConstraintClient interface defines the interface for components that support layout constraints. This interface is only used by implementations of constraint-based layout.

Public Methods

| Method | Defined By
--- | --- | ---
|  | getConstraintValue(constraintName:String):* Returns the specified constraint value. | IConstraintClient
|  | setConstraintValue(constraintName:String, value:*):void Sets the specified constraint value. | IConstraintClient

Method Detail

getConstraintValue | () | method

`public function getConstraintValue(constraintName:String):*`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Returns the specified constraint value.

Parameters

| `constraintName:String` — name of the constraint value. Constraint parameters are "`baseline`", "`bottom`", "`horizontalCenter`", "`left`", "`right`", "`top`", and "`verticalCenter`". For more information about these parameters, see the Canvas and Panel containers and Styles Metadata AnchorStyles.

Returns

| `*` — The constraint value, or null if it is not defined.

See also

mx.containers.Canvas
mx.containers.Panel

setConstraintValue | () | method |

`public function setConstraintValue(constraintName:String, value:*):void`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Sets the specified constraint value.

Parameters

| `constraintName:String` — name of the constraint value. Constraint parameters are "`baseline`", "`bottom`", "`horizontalCenter`", "`left`", "`right`", "`top`", and "`verticalCenter`". For more information about these parameters, see the Canvas and Panel containers and Styles Metadata AnchorStyles.
| `value:*` — The new value for the constraint.

See also

mx.containers.Canvas
mx.containers.Panel

Wed Nov 15 2017, 09:50 AM +01:00