flexlib :: library Documentation | All Packages | All Classes | Index | Frames No Frames |
StyleDeclarationHelper

Package | flexlib.styles
Class | public class StyleDeclarationHelper
Inheritance | StyleDeclarationHelper Object

Public Methods

| Method | Defined By
--- | --- | ---
|  | getStyleSelectorForClass(c:Class):String [static] Gets the style selector for the specified class. | StyleDeclarationHelper
|  | getStyleSelectorForClassName(fullyQualifiedName:String):String [static] Gets the style selector for the specified class name. | StyleDeclarationHelper

Method Detail

getStyleSelectorForClass | () | method

`public static function getStyleSelectorForClass(c:Class):String`

Gets the style selector for the specified class.

Parameters

| `c:Class` — The component class to get the style selector for

Returns

| `String` — style selector string for given class

See also

getStyleSelectorForClassName

getStyleSelectorForClassName | () | method |

`public static function getStyleSelectorForClassName(fullyQualifiedName:String):String`

Gets the style selector for the specified class name. Starting in Flex 4, component selectors passed to StyleManager.getStyleDeclaration and StyleManager.setStyleDeclaration must be fully qualified class names. In versions of Flex < 4, the class name itself was used.

Parameters

| `fullyQualifiedName:String` — The fully qualified name of the class to get the selector for

Returns

| `String` — style selector string

See also

http://flexdevtips.blogspot.com/2009/03/setting-default-styles-for-custom.html

Mercredi Juillet 4 2012, 09:36 PM +02:00