Referenshandbok för ActionScript® 3.0 i Adobe® Flash®-plattformen
Hem  |  Dölj paket och klasslista |  Paket  |  Klasser  |  Nyheter  |  Index  |  Bilagor  |  Varför på engelska?
Filter: Hämtar data från servern ...
Hämtar data från servern ...
mx.styles 

IAdvancedStyleClient  - AS3 Flex

Paketmx.styles
Gränssnittpublic interface IAdvancedStyleClient extends IStyleClient , ISimpleStyleClient
Implementorer AdvancedStyleClient, StyleProxy, UIComponent

Språkversion: ActionScript 3.0
Produktversion: Flex 4
Körningsmiljöversioner: Flash Player 10, AIR 1.5

This interface describes the advanced properties that a component must implement to fully participate in the advanced style subsystem.



Publika egenskaper
 EgenskapDefinieras med
 InheritedclassName : String
[skrivskyddad] The name of the component class.
IStyleClient
  id : String
[skrivskyddad] The identity of the component.
IAdvancedStyleClient
 InheritedinheritingStyles : Object
An object containing the inheritable styles for this component.
IStyleClient
 InheritednonInheritingStyles : Object
An object containing the noninheritable styles for this component.
IStyleClient
 InheritedstyleDeclaration : CSSStyleDeclaration
The style declaration that holds the inline styles declared by this object.
IStyleClient
 InheritedstyleName : Object
The source of this object's style values.
ISimpleStyleClient
  styleParent : IAdvancedStyleClient
The parent of this IAdvancedStyleClient..
IAdvancedStyleClient
Publika metoder
 MetodDefinieras med
 Inherited
Deletes a style property from this component instance.
IStyleClient
 Inherited
Returns an Array of CSSStyleDeclaration objects for the type selector that applies to this component, or null if none exist.
IStyleClient
 Inherited
getStyle(styleProp:String):*
Gets a style property that has been set anywhere in this component's style lookup chain.
IStyleClient
  
Returns true if currentCSSState is not null.
IAdvancedStyleClient
  
Returns true if cssState matches currentCSSState.
IAdvancedStyleClient
  
Determines whether this instance is the same as, or is a subclass of, the given type.
IAdvancedStyleClient
 Inherited
Propagates style changes to the children of this component.
IStyleClient
 Inherited
Sets up the internal style cache values so that the getStyle() method functions.
IStyleClient
 Inherited
Registers the EffectManager as one of the event listeners for each effect event.
IStyleClient
 Inherited
setStyle(styleProp:String, newValue:*):void
Sets a style property on this component instance.
IStyleClient
 Inherited
Called when the value of a style property is changed.
ISimpleStyleClient
  
Flex calls the stylesInitialized() method when the styles for a component are first initialized.
IAdvancedStyleClient
Egenskapsdetaljer

id

egenskap
id:String  [skrivskyddad]

Språkversion: ActionScript 3.0
Produktversion: Flex 4
Körningsmiljöversioner: Flash Player 10, AIR 1.5

The identity of the component.



Implementering
    public function get id():String

styleParent

egenskap 
styleParent:IAdvancedStyleClient

Språkversion: ActionScript 3.0
Produktversion: Flex 4
Körningsmiljöversioner: Flash Player 10, AIR 1.5

The parent of this IAdvancedStyleClient.. Typically, you do not assign this property directly. It is set by the addChild, addChildAt, removeChild, and removeChildAt methods of the flash.display.DisplayObjectContainer and the mx.core.UIComponent.addStyleClient() and the mx.core.UIComponent.removeStyleClient() methods. If it is assigned a value directly, without calling one of the above mentioned methods the instance of the class that implements this interface will not inherit styles from the UIComponent or DisplayObject. Also if assigned a value directly without, first removing the object from the current parent with the remove methods listed above, a memory leak could occur.



Implementering
    public function get styleParent():IAdvancedStyleClient
    public function set styleParent(value:IAdvancedStyleClient):void
Metoddetaljer

hasCSSState

()metod
public function hasCSSState():Boolean

Språkversion: ActionScript 3.0
Produktversion: Flex 4.6
Körningsmiljöversioner: Flash Player 10, AIR 2.5

Returns true if currentCSSState is not null. Typically, you do not call this method directly. It is called by the mx.styles.CSSCondition.matchesStyleClient() method.

Note Spark components use their skin state as the pseudo state. Halo components use the currentState property.

Returnerar
Booleantrue if currentCSSState is not null. By default, currentCSSState is the same as currentState. If no state exists, return false.

matchesCSSState

()metod 
public function matchesCSSState(cssState:String):Boolean

Språkversion: ActionScript 3.0
Produktversion: Flex 4
Körningsmiljöversioner: Flash Player 10, AIR 1.5

Returns true if cssState matches currentCSSState. Typically, you do not call this method directly. It is called by the mx.styles.CSSCondition.matchesStyleClient() method.

Note Spark components use their skin state as the pseudo state. Halo components use the currentState property.

Parametrar

cssState:String — A possible value of CSSCondition.value. It represents the current state of this component used to match CSS pseudo-selectors.

Returnerar
Booleantrue if cssState matches currentCSSState. By default, currentCSSState is the same as currentState. If no state exists, return null.

matchesCSSType

()metod 
public function matchesCSSType(cssType:String):Boolean

Språkversion: ActionScript 3.0
Produktversion: Flex 4
Körningsmiljöversioner: Flash Player 10, AIR 1.5

Determines whether this instance is the same as, or is a subclass of, the given type. Typically, you do not call this method directly. It is called by the mx.styles.CSSCondition.matchesStyleClient() method.

Parametrar

cssType:String — A CSSSelector object.

Returnerar
Booleantrue if cssType is in the hierarchy of qualified type selectors.

stylesInitialized

()metod 
public function stylesInitialized():void

Språkversion: ActionScript 3.0
Produktversion: Flex 4
Körningsmiljöversioner: Flash Player 10, AIR 1.5

Flex calls the stylesInitialized() method when the styles for a component are first initialized.





[ X ]Varför på engelska?
Innehåll i Referenshandbok för ActionScript 3.0 i Adobe Flash-plattformen är på engelska

Det är inte alla delar av Referenshandbok för ActionScript 3.0 i Adobe Flash-plattformen som översätts till alla språk. Om ett språkelement inte översätts visas det på engelska. Klassen ga.controls.HelpBox översätts till exempel inte till något språk. I den svenska versionen av referenshandboken visas därför klassen ga.controls.HelpBox på engelska.