| Paquete | mx.styles |
| Interfaz | public interface IStyleClient extends ISimpleStyleClient |
| Implementadores | AdvancedDataGridItemRenderer, DataGridItemRenderer, DefaultGridItemRenderer, FTEAdvancedDataGridItemRenderer, FTEDataGridItemRenderer, HaloFocusRect, UITextFieldGridItemRenderer |
| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
If the object does not need to store style values locally, it can
implement the ISimpleStyleClient interface instead.
Elementos de API relacionados
| Propiedad | Definido por | ||
|---|---|---|---|
| className : String [solo lectura]
The name of the component class. | IStyleClient | ||
| inheritingStyles : Object
An object containing the inheritable styles for this component. | IStyleClient | ||
| nonInheritingStyles : Object
An object containing the noninheritable styles for this component. | IStyleClient | ||
| styleDeclaration : CSSStyleDeclaration
The style declaration that holds the inline styles declared by this
object. | IStyleClient | ||
![]() | styleName : Object
The source of this object's style values. | ISimpleStyleClient | |
| Método | Definido por | ||
|---|---|---|---|
Deletes a style property from this component instance. | IStyleClient | ||
Returns an Array of CSSStyleDeclaration objects for the type selector
that applies to this component, or null if none exist. | IStyleClient | ||
Gets a style property that has been set anywhere in this
component's style lookup chain. | IStyleClient | ||
Propagates style changes to the children of this component. | IStyleClient | ||
Sets up the internal style cache values so that the getStyle()
method functions. | IStyleClient | ||
Registers the EffectManager as one of the event listeners for each effect event. | IStyleClient | ||
Sets a style property on this component instance. | IStyleClient | ||
![]() |
Called when the value of a style property is changed. | ISimpleStyleClient | |
className | propiedad |
inheritingStyles | propiedad |
inheritingStyles:Object| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
An object containing the inheritable styles for this component.
Implementación
public function get inheritingStyles():Object public function set inheritingStyles(value:Object):voidnonInheritingStyles | propiedad |
nonInheritingStyles:Object| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
An object containing the noninheritable styles for this component.
Implementación
public function get nonInheritingStyles():Object public function set nonInheritingStyles(value:Object):voidstyleDeclaration | propiedad |
styleDeclaration:CSSStyleDeclaration| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
The style declaration that holds the inline styles declared by this object.
Implementación
public function get styleDeclaration():CSSStyleDeclaration public function set styleDeclaration(value:CSSStyleDeclaration):voidElementos de API relacionados
clearStyle | () | método |
public function clearStyle(styleProp:String):void| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Deletes a style property from this component instance.
This does not necessarily cause the getStyle() method to return
undefined.
Parámetros
styleProp:String — Name of the style property.
|
getClassStyleDeclarations | () | método |
public function getClassStyleDeclarations():Array| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Returns an Array of CSSStyleDeclaration objects for the type selector
that applies to this component, or null if none exist.
For example, suppose that component MyButton extends Button. This method first looks for a MyButton selector; then, it looks for a Button type selector; finally, it looks for a UIComponent type selector.
Valor devueltoArray — Array of CSSStyleDeclaration objects.
|
getStyle | () | método |
public function getStyle(styleProp:String):*| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Gets a style property that has been set anywhere in this component's style lookup chain.
This same method is used to get any kind of style property, so the value returned may be a Boolean, String, Number, int, uint (for an RGB color), Class (for a skin), or any kind of object. Therefore the return type is specified as *.
If you are getting a particular style property, you will
know its type and will often want to store the result in a
variable of that type. You can use either the as
operator or coercion to do this. For example:
var backgroundColor:uint = getStyle("backgroundColor") as int;
or
var backgroundColor:uint = int(getStyle("backgroundColor"));
If the style property has not been set anywhere in the
style lookup chain, the value returned by the getStyle() method
is undefined.
Note that undefined is a special value that is
not the same as false, the empty String (""),
NaN, 0, or null.
No valid style value is ever undefined.
You can use the static method
StyleManager.isValidStyleValue()
to test whether the value was set.
Parámetros
styleProp:String — Name of the style property.
|
* — Style value.
|
notifyStyleChangeInChildren | () | método |
public function notifyStyleChangeInChildren(styleProp:String, recursive:Boolean):void| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Propagates style changes to the children of this component.
Parámetros
styleProp:String — Name of the style property.
| |
recursive:Boolean — Whether to propagate the style changes to the children's children.
|
regenerateStyleCache | () | método |
public function regenerateStyleCache(recursive:Boolean):void| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Sets up the internal style cache values so that the getStyle()
method functions.
If this object already has children, then reinitialize the children's
style caches.
Parámetros
recursive:Boolean — Regenerate the proto chains of the children.
|
registerEffects | () | método |
public function registerEffects(effects:Array):void| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Registers the EffectManager as one of the event listeners for each effect event.
Parámetros
effects:Array — An Array of Strings of effect names.
|
setStyle | () | método |
public function setStyle(styleProp:String, newValue:*):void| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Sets a style property on this component instance.
This may override a style that was set globally.
Calling the setStyle() method can result in decreased performance.
Use it only when necessary.
Parámetros
styleProp:String — Name of the style property.
| |
newValue:* — New value for the style.
|
Tue Jun 12 2018, 02:12 PM Z
Ocultar propiedades públicas heredadas
Mostrar propiedades públicas heredadas