Pacchetto | mx.styles |
Classe | public class CSSSelector |
Ereditarietà | CSSSelector Object |
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
Proprietà | Definito da | ||
---|---|---|---|
ancestor : CSSSelector [sola lettura]
If this selector is part of a descendant selector it may have a further
selector defined for an arbitrary ancestor. | CSSSelector | ||
conditions : Array [sola lettura]
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 | ||
constructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto. | Object | ||
specificity : int [sola lettura]
Calculates the specificity of a selector chain in order to determine
the precedence when applying several matching style declarations. | CSSSelector | ||
subject : String [sola lettura]
The subject of this selector node (only). | CSSSelector |
Metodo | Definito da | ||
---|---|---|---|
Constructor. | CSSSelector | ||
Indica se per un oggetto è definita una proprietà specifica. | Object | ||
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro. | Object | ||
Determines whether this selector matches the given component. | CSSSelector | ||
Indica se la proprietà specificata esiste ed è enumerabile. | Object | ||
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche. | Object | ||
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate. | Object | ||
Returns a String representation of this selector. | CSSSelector | ||
Restituisce il valore di base dell'oggetto specificato. | Object |
ancestor | proprietà |
ancestor:CSSSelector
[sola lettura] Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4 |
Versioni runtime: | 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.
Implementazione
public function get ancestor():CSSSelector
conditions | proprietà |
conditions:Array
[sola lettura] Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4 |
Versioni runtime: | 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.
Implementazione
public function get conditions():Array
specificity | proprietà |
specificity:int
[sola lettura] Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4 |
Versioni runtime: | 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).
Implementazione
public function get specificity():int
subject | proprietà |
subject:String
[sola lettura] Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4 |
Versioni runtime: | 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.
Implementazione
public function get subject():String
CSSSelector | () | Funzione di costruzione |
public function CSSSelector(subject:String, conditions:Array = null, ancestor:CSSSelector = null)
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
Constructor.
Parametrisubject: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.
|
matchesStyleClient | () | metodo |
public function matchesStyleClient(object:IAdvancedStyleClient):Boolean
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
Determines whether this selector matches the given component.
Parametri
object:IAdvancedStyleClient — The component to which the selector may apply.
|
Boolean — true if component is a match, or false if not.
|
toString | () | metodo |
public function toString():String
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
Returns a String representation of this selector.
RestituisceString — A String representation of this selector including all of its
syntax, conditions and ancestors.
|
Tue Jun 12 2018, 02:44 PM Z