Apache Flex 4.16.1 API Reference | All Packages | All Classes | Index | Frames No Frames |
IStyleModule

Package | mx.styles
Interface | public interface IStyleModule

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Simple interface to manipulate style modules. You can cast an object to an IStyleModule type so that there is no dependency on the StyleModule type in the loading application.

Public Methods

| Method | Defined By
--- | --- | ---
|  | setStyleDeclarations(styleManager:IStyleManager2):void Creates and sets style declarations from the styles modules into the given style manager. | IStyleModule
|  | unload():void Unloads the style module. | IStyleModule

Method Detail

setStyleDeclarations | () | method

`public function setStyleDeclarations(styleManager:IStyleManager2):void`

Language Version : | ActionScript 3.0

Product Version : | Flex 4

Runtime Versions : | Flash Player 9, AIR 1.1

Creates and sets style declarations from the styles modules into the given style manager. This should be called after the style modules is created.

Parameters

| `styleManager:IStyleManager2` — The style manager where the style declarations will be loaded into. The style declarations will be created relative to the this style manager. The unload() function will unload styles from this style manager. If null is passed the top-level style manager is used.

unload | () | method |

`public function unload():void`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Unloads the style module.

Wed Nov 15 2017, 09:50 AM +01:00