Guida di riferimento di ActionScript® 3.0 per la piattaforma Adobe® Flash®
Home  |  Nascondi elenco pacchetti e classi |  Pacchetti  |  Classi  |  Novità  |  Indice  |  Appendici  |  Perché in inglese?
Filtri: Recupero dati dal server...
Recupero dati dal server...
mx.styles 

IStyleManager2  - AS3 Flex

Pacchettomx.styles
Interfacciapublic interface IStyleManager2 extends IStyleManager

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

The IStyleManager2 class manages the following:
  • Which CSS style properties the class inherits
  • Which style properties are colors, and therefore get special handling
  • A list of strings that are aliases for color values

Elementi API correlati



Proprietà pubbliche
 ProprietàDefinito da
  parent : IStyleManager2
[sola lettura] The style manager that is the parent of this StyleManager.
IStyleManager2
  selectors : Array
[sola lettura] Returns an Array of all the CSS selectors that are registered with the StyleManager.
IStyleManager2
Metodi pubblici
 MetodoDefinito da
 Inherited
Clears the CSSStyleDeclaration object that stores the rules for the specified CSS selector.
IStyleManager
 Inherited
Returns the numeric RGB color value that corresponds to the specified color string.
IStyleManager
 Inherited
Converts each element of the colors Array from a color name to a numeric RGB color value.
IStyleManager
  
Gets a CSSStyleDeclaration object that stores the rules for the specified CSS selector.
IStyleManager2
 Inherited
Gets the CSSStyleDeclaration object that stores the rules for the specified CSS selector.
IStyleManager
 Inherited
Tests to see if the given String is an alias for a color value.
IStyleManager
 Inherited
Tests to see if a style is inheriting.
IStyleManager
 Inherited
Test to see if a TextFormat style is inheriting.
IStyleManager
 Inherited
Tests to see if this style affects the component's parent container in such a way as to require that the parent container redraws itself when this style changes.
IStyleManager
 Inherited
Tests to see if the style changes the size of the component's parent container.
IStyleManager
 Inherited
Tests to see if a style changes the size of a component.
IStyleManager
 Inherited
Determines if a specified parameter is a valid style property.
IStyleManager
 Inherited
loadStyleDeclarations(url:String, update:Boolean = true, trustContent:Boolean = false, applicationDomain:ApplicationDomain = null, securityDomain:SecurityDomain = null):IEventDispatcher
Loads a style SWF.
IStyleManager
 Inherited
registerColorName(colorName:String, colorValue:uint):void
Adds a color name to the list of aliases for colors.
IStyleManager
 Inherited
Adds to the list of styles that can inherit values from their parents.
IStyleManager
 Inherited
Adds to the list of styles which may affect the appearance or layout of the component's parent container.
IStyleManager
 Inherited
Adds to the list of styles which may affect the measured size of the component's parent container.
IStyleManager
 Inherited
Adds to the list of styles which may affect the measured size of the component.
IStyleManager
 Inherited
setStyleDeclaration(selector:String, styleDeclaration:CSSStyleDeclaration, update:Boolean):void
Sets the CSSStyleDeclaration object that stores the rules for the specified CSS selector.
IStyleManager
 Inherited
Unloads a style SWF.
IStyleManager
Descrizione delle proprietà

parent

proprietà
parent:IStyleManager2  [sola lettura]

The style manager that is the parent of this StyleManager.



Implementazione
    public function get parent():IStyleManager2

selectors

proprietà 
selectors:Array  [sola lettura]

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns an Array of all the CSS selectors that are registered with the StyleManager. You can pass items in this Array to the getStyleDeclaration() method to get the corresponding CSSStyleDeclaration object. Class selectors are prepended with a period.



Implementazione
    public function get selectors():Array
Descrizione dei metodi

getMergedStyleDeclaration

()metodo
public function getMergedStyleDeclaration(selector:String):CSSStyleDeclaration

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 4
Versioni runtime: Flash Player 10, AIR 1.5

Gets a CSSStyleDeclaration object that stores the rules for the specified CSS selector. The CSSStyleDeclaration object is created by merging the properties of the specified CSS selector in this style manager with the properties of any parent style managers.

If the selector parameter starts with a period (.), the returned CSSStyleDeclaration is a class selector and applies only to those instances whose styleName property specifies that selector (not including the period). For example, the class selector ".bigMargins" applies to any UIComponent whose styleName is "bigMargins".

If the selector parameter does not start with a period, the returned CSSStyleDeclaration is a type selector and applies to all instances of that type. For example, the type selector "Button" applies to all instances of Button and its subclasses.

The global selector is similar to a type selector and does not start with a period.

Parametri

selector:String — The name of the CSS selector.

Restituisce
CSSStyleDeclaration — The style declaration whose name matches the selector property.




[ X ]Perché in inglese?
Il contenuto della Guida di riferimento di ActionScript 3.0 appare in inglese

Non tutte le parti della Guida di riferimento di ActionScript 3.0 sono tradotte in tutte le lingue. Quando un elemento del linguaggio non è tradotto, viene riportato in inglese. Ad esempio, la classe ga.controls.HelpBox non è tradotta in nessuna lingua. Pertanto, nella versione italiana della guida di riferimento, la descrizione della classe ga.controls.HelpBox è riportata in inglese.