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

Package | org.apache.flex.utils
Class | public class CSSContainerUtils
Inheritance | CSSContainerUtils Object

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The CSSContainerUtils class is a utility class that computes the values containers often need to know like border widths and padding styles.

Public Methods

| Method | Defined By
--- | --- | ---
|  | getBorderAndPaddingMetrics(object:Object):Rectangle [static] Combine padding and border. | CSSContainerUtils
|  | getBorderMetrics(object:Object, quick:Boolean = false):Rectangle [static] Compute the width/thickness of the four border edges. | CSSContainerUtils
|  | getPaddingMetrics(object:Object):Rectangle [static] Compute the width/thickness of the four padding sides. | CSSContainerUtils

Method Detail

getBorderAndPaddingMetrics | () | method

`public static function getBorderAndPaddingMetrics(object:Object):Rectangle`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Combine padding and border. Often used in non-containers.

Parameters

| `object:Object` — The object with style values.

Returns

| `Rectangle` — A Rectangle representing the padding and border on each of the four sides.

getBorderMetrics | () | method |

`public static function getBorderMetrics(object:Object, quick:Boolean = false):Rectangle`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Compute the width/thickness of the four border edges.

Parameters

| `object:Object` — The object with style values.
| `quick:Boolean` (default = `false`)`` — True to assume all four edges have the same widths.

Returns

| `Rectangle` — A Rectangle representing the four sides.

getPaddingMetrics | () | method |

`public static function getPaddingMetrics(object:Object):Rectangle`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Compute the width/thickness of the four padding sides.

Parameters

| `object:Object` — The object with style values.

Returns

| `Rectangle` — A Rectangle representing the padding on each of the four sides.

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