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

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

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The UIUtils class is a collection of static functions that provide utility features to UIBase objects.

Public Methods

| Method | Defined By
--- | --- | ---
|  | center(item:IUIBase, relativeTo:IUIBase):void [static] Centers the given item relative to another item. | UIUtils
|  | findPopUpHost(start:IUIBase):IPopUpHost [static] Given a component starting point, this function walks up the parent chain looking for a component that implements the IPopUpHost interface. | UIUtils
|  | removePopUp(popUp:IChild):void [static] Removes the given component from the IPopUpHost. | UIUtils

Method Detail

center | () | method

`public static function center(item:IUIBase, relativeTo:IUIBase):void`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Centers the given item relative to another item. Typically the item being centered is a child or sibling of the second item.

Parameters

| `item:IUIBase` — The component item being centered.
| `relativeTo:IUIBase` — The component used as reference for the centering.

findPopUpHost | () | method |

`public static function findPopUpHost(start:IUIBase):IPopUpHost`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Given a component starting point, this function walks up the parent chain looking for a component that implements the IPopUpHost interface. The function either returns that component or null if no IPopUpHost can be found.

Parameters

| `start:IUIBase` — A component to start the search.

Returns

| `IPopUpHost` — A component that implements IPopUpHost or null.

removePopUp | () | method |

`public static function removePopUp(popUp:IChild):void`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Removes the given component from the IPopUpHost.

Parameters

| `popUp:IChild` — A component to start the search.

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