YUI Flash Component Documentation | All Packages | All Classes | Index | Frames No Frames |
Class UIComponentUtil

Package | com.yahoo.astra.fl.utils
Class | public class UIComponentUtil

Utility functions for use with UIComponents.

Public Methods

| Method | Defined by
--- | --- | ---
|  | getDisplayObjectInstance(target:DisplayObject, input:Object):DisplayObject [static] Using an input, such as a component style, tries to convert the input to a DisplayObject. | UIComponentUtil

Method detail

getDisplayObjectInstance | () | method

`public static function getDisplayObjectInstance(target:DisplayObject, input:Object):DisplayObject`

Using an input, such as a component style, tries to convert the input to a DisplayObject.

Possible inputs include Class, a String representatation of a fully-qualified class name, Function, any existing instance of a DisplayObject, or InstanceFactory.

Parameters

| `target:DisplayObject` — the parent of the new instance
| `input:Object` — the object to convert to a DisplayObject instance

Returns

| `DisplayObject`

See also

com.yahoo.astra.utils.InstanceFactory