패키지 | mx.styles |
클래스 | public class CSSSelector |
상속 | CSSSelector Object |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
속성 | 정의 주체 | ||
---|---|---|---|
ancestor : CSSSelector [읽기 전용]
If this selector is part of a descendant selector it may have a further
selector defined for an arbitrary ancestor. | CSSSelector | ||
conditions : Array [읽기 전용]
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
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | ||
specificity : int [읽기 전용]
Calculates the specificity of a selector chain in order to determine
the precedence when applying several matching style declarations. | CSSSelector | ||
subject : String [읽기 전용]
The subject of this selector node (only). | CSSSelector |
메서드 | 정의 주체 | ||
---|---|---|---|
Constructor. | CSSSelector | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
Determines whether this selector matches the given component. | CSSSelector | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
Returns a String representation of this selector. | CSSSelector | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object |
ancestor | 속성 |
ancestor:CSSSelector
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | 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.
구현
public function get ancestor():CSSSelector
conditions | 속성 |
conditions:Array
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | 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.
구현
public function get conditions():Array
specificity | 속성 |
specificity:int
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | 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).
구현
public function get specificity():int
subject | 속성 |
subject:String
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | 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.
구현
public function get subject():String
CSSSelector | () | 생성자 |
public function CSSSelector(subject:String, conditions:Array = null, ancestor:CSSSelector = null)
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
Constructor.
매개 변수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.
|
matchesStyleClient | () | 메서드 |
public function matchesStyleClient(object:IAdvancedStyleClient):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
Determines whether this selector matches the given component.
매개 변수
object:IAdvancedStyleClient — The component to which the selector may apply.
|
Boolean — true if component is a match, or false if not.
|
toString | () | 메서드 |
Tue Jun 12 2018, 03:17 PM Z