Referencia de ActionScript® 3.0 para la plataforma de Adobe® Flash®
Inicio  |  Ocultar lista de paquetes y clases |  Paquetes  |  Clases  |  Novedades  |  Índice  |  Apéndices  |  ¿Por qué hay texto en inglés?
Filtros: Recuperando datos del servidor...
Recuperando datos del servidor...
mx.styles 

CSSSelector  - AS3 Flex

Paquetemx.styles
Clasepublic class CSSSelector
HerenciaCSSSelector Inheritance Object

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 4
Versiones de motor de ejecución: Flash Player 10, AIR 1.5

Represents a selector node in a potential chain of selectors used to match CSS style declarations to components.



Propiedades públicas
 PropiedadDefinido por
  ancestor : CSSSelector
[solo lectura] If this selector is part of a descendant selector it may have a further selector defined for an arbitrary ancestor.
CSSSelector
  conditions : Array
[solo lectura] This selector may match a subset of components by specifying further conditions (for example, a matching component must have a particular id, styleName (equivalent to a 'class' condition in CSS) or state (equivalent to a 'pseudo' condition in CSS)).
CSSSelector
 Inheritedconstructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada.
Object
  specificity : int
[solo lectura] Calculates the specificity of a selector chain in order to determine the precedence when applying several matching style declarations.
CSSSelector
  subject : String
[solo lectura] The subject of this selector node (only).
CSSSelector
Métodos públicos
 MétodoDefinido por
  
CSSSelector(subject:String, conditions:Array = null, ancestor:CSSSelector = null)
Constructor.
CSSSelector
 Inherited
Indica si un objeto tiene definida una propiedad especificada.
Object
 Inherited
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro.
Object
  
Determines whether this selector matches the given component.
CSSSelector
 Inherited
Indica si existe la propiedad especificada y si es enumerable.
Object
 Inherited
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle.
Object
 Inherited
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional.
Object
  
Returns a String representation of this selector.
CSSSelector
 Inherited
Devuelve el valor simple del objeto especificado.
Object
Información sobre propiedades

ancestor

propiedad
ancestor:CSSSelector  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 4
Versiones de motor de ejecución: Flash Player 10, AIR 1.5

If this selector is part of a descendant selector it may have a further selector defined for an arbitrary ancestor.



Implementación
    public function get ancestor():CSSSelector

conditions

propiedad 
conditions:Array  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 4
Versiones de motor de ejecución: Flash Player 10, AIR 1.5

This selector may match a subset of components by specifying further conditions (for example, a matching component must have a particular id, styleName (equivalent to a 'class' condition in CSS) or state (equivalent to a 'pseudo' condition in CSS)).

If no conditions are specified, this property is null.



Implementación
    public function get conditions():Array

specificity

propiedad 
specificity:int  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 4
Versiones de motor de ejecución: Flash Player 10, AIR 1.5

Calculates the specificity of a selector chain in order to determine the precedence when applying several matching style declarations. Note that id conditions contribute 100 points, pseudo and class conditions each contribute 10 points, types (including descendants in a chain of selectors) contribute 1 point. Universal selectors (") contribute nothing. The result is the sum of these contributions. Selectors with a higher specificity override selectors of lower specificity. If selectors have equal specificity, the declaration order determines the precedence (the last one wins).



Implementación
    public function get specificity():int

subject

propiedad 
subject:String  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 4
Versiones de motor de ejecución: Flash Player 10, AIR 1.5

The subject of this selector node (only). To get a String representation of all conditions and descendants of this selector call the toString() method.

If this selector represents the root node of a potential chain of selectors, the subject also represents the subject of the entire selector expression.



Implementación
    public function get subject():String
Información sobre constructores

CSSSelector

()Información sobre
public function CSSSelector(subject:String, conditions:Array = null, ancestor:CSSSelector = null)

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 4
Versiones de motor de ejecución: Flash Player 10, AIR 1.5

Constructor.

Parámetros
subject:String — The plain representation of this selector without conditions or ancestors. This is typically a fully-qualified class name; for example, "spark.components.Button". You can use " to match all components or "global" for a global selector.
 
conditions:Array (default = null) — An optional Array of objects of type CSSCondition that is used to match a subset of component instances. Currently only a single or a pair of conditions are supported.
 
ancestor:CSSSelector (default = null) — An optional selector to match on a component that descends from an arbitrary ancestor.
Información sobre métodos

matchesStyleClient

()método
public function matchesStyleClient(object:IAdvancedStyleClient):Boolean

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 4
Versiones de motor de ejecución: Flash Player 10, AIR 1.5

Determines whether this selector matches the given component.

Parámetros

object:IAdvancedStyleClient — The component to which the selector may apply.

Valor devuelto
Boolean — true if component is a match, or false if not.

toString

()método 
public function toString():String

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 4
Versiones de motor de ejecución: Flash Player 10, AIR 1.5

Returns a String representation of this selector.

Valor devuelto
String — A String representation of this selector including all of its syntax, conditions and ancestors.




[ X ]¿Por qué hay texto en inglés?
Cierto contenido de la Referencia de ActionScript 3.0 se muestra en inglés

No todo el contenido de la Referencia de ActionScript 3.0 se traduce a todos los idiomas. Si un elemento del lenguaje no se traduce, aparecerá en inglés. Por ejemplo, la clase ga.controls.HelpBox no está traducida en ningún idioma. Por lo tanto, en la versión en español de la referencia, la clase ga.controls.HelpBox aparecerá en inglés.