Pakket | mx.styles |
Klasse | public class CSSSelector |
Overerving | CSSSelector Object |
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 4 |
Runtimeversies: | Flash Player 10, AIR 1.5 |
Eigenschap | Gedefinieerd door | ||
---|---|---|---|
ancestor : CSSSelector [alleen-lezen]
If this selector is part of a descendant selector it may have a further
selector defined for an arbitrary ancestor. | CSSSelector | ||
conditions : Array [alleen-lezen]
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
Verwijzing naar het klasseobject of de constructorfunctie van een bepaalde objectinstantie. | Object | ||
specificity : int [alleen-lezen]
Calculates the specificity of a selector chain in order to determine
the precedence when applying several matching style declarations. | CSSSelector | ||
subject : String [alleen-lezen]
The subject of this selector node (only). | CSSSelector |
Methode | Gedefinieerd door | ||
---|---|---|---|
Constructor. | CSSSelector | ||
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd. | Object | ||
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven. | Object | ||
Determines whether this selector matches the given component. | CSSSelector | ||
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd. | Object | ||
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in. | Object | ||
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies. | Object | ||
Returns a String representation of this selector. | CSSSelector | ||
Retourneert de primitieve waarde van het opgegeven object. | Object |
ancestor | eigenschap |
ancestor:CSSSelector
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Flex 4 |
Runtimeversies: | 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.
Implementatie
public function get ancestor():CSSSelector
conditions | eigenschap |
conditions:Array
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Flex 4 |
Runtimeversies: | 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.
Implementatie
public function get conditions():Array
specificity | eigenschap |
specificity:int
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Flex 4 |
Runtimeversies: | 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).
Implementatie
public function get specificity():int
subject | eigenschap |
subject:String
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Flex 4 |
Runtimeversies: | 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.
Implementatie
public function get subject():String
CSSSelector | () | Constructor |
public function CSSSelector(subject:String, conditions:Array = null, ancestor:CSSSelector = null)
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 4 |
Runtimeversies: | Flash Player 10, AIR 1.5 |
Constructor.
Parameterssubject: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 | () | methode |
public function matchesStyleClient(object:IAdvancedStyleClient):Boolean
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 4 |
Runtimeversies: | Flash Player 10, AIR 1.5 |
Determines whether this selector matches the given component.
Parameters
object:IAdvancedStyleClient — The component to which the selector may apply.
|
Boolean — true if component is a match, or false if not.
|
toString | () | methode |
Wed Jun 13 2018, 11:42 AM Z