Packageorg.apache.flex.utils
Classpublic class CSSContainerUtils
InheritanceCSSContainerUtils Inheritance 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
 MethodDefined By
  
[static] Combine padding and border.
CSSContainerUtils
  
getBorderMetrics(object:Object, quick:Boolean = false):Rectangle
[static] Compute the width/thickness of the four border edges.
CSSContainerUtils
  
[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.