Packageorg.apache.flex.utils
Classpublic class UIUtils
InheritanceUIUtils Inheritance 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
 MethodDefined By
  
center(item:UIBase, relativeTo:UIBase):void
[static] Centers the given item relative to another item.
UIUtils
  
[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:UIBase):void
[static] Removes the given component from the IPopUpHost.
UIUtils
Method Detail
center()method
public static function center(item:UIBase, relativeTo:UIBase):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:UIBase — The component item being centered.
 
relativeTo:UIBase — The component used as reference for the centering.

findPopUpHost()method 
public static function findPopUpHost(start:UIBase):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:UIBase — A component to start the search.

Returns
IPopUpHost — A component that implements IPopUpHost or null.
removePopUp()method 
public static function removePopUp(popUp:UIBase):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:UIBase — A component to start the search.