Packagetwaver
Interfacepublic interface IStyle
Implementors ElementBox

This interface defines a class that carry styles. Style is user defined properties installed on TWaver Flex data and used to carry more customized information as your need.



Public Properties
 PropertyDefined By
  styleProperties : ICollection
[read-only] Get a ICollection that contians all style proerty name.
IStyle
Public Methods
 MethodDefined By
  
getStyle(styleProp:String, returnDefaultIfNull:Boolean = true):*
Get the style property value.
IStyle
  
setStyle(styleProp:String, newValue:*):IStyle
Set a style property for an element/data.
IStyle
Property Detail
stylePropertiesproperty
styleProperties:ICollection  [read-only]

Get a ICollection that contians all style proerty name.


Implementation
    public function get styleProperties():ICollection
Method Detail
getStyle()method
public function getStyle(styleProp:String, returnDefaultIfNull:Boolean = true):*

Get the style property value.

Parameters

styleProp:String — style property name.
 
returnDefaultIfNull:Boolean (default = true) — whether return default value if this property is null.

Returns
* — style property value.
setStyle()method 
public function setStyle(styleProp:String, newValue:*):IStyle

Set a style property for an element/data.

Parameters

styleProp:String — the style property name
 
newValue:* — the new value of this style property

Returns
IStyle — this IStyle itself.