--- In [email protected], João <joao.sale...@...> wrote:
>
> Ok, I can get the CSSStyleDeclaration using:
> 
> var s2:CSSStyleDeclaration =
> StyleManager.getStyleDeclaration(".incomeValue");
> 
> The problem is that I need to return a simple object. Inspecting the
> content of the CSSStyleDeclaration class, I saw that the "overrides"
> property has the object I need, but that property is protected.
> I can extend this class, and expose the "overrides" property, but 
that
> sounds a bit "hackish". Isn't there a direct way to convert a
> CSSStyleDeclaration to a plain object?

Have you thought about approaching it slightly differently?  Maybe 
this:

private function styleValueLabel(item:Statement,
column:AdvancedDataGridColumn):Object
{
if (item.isIncome) 
return { styleName: incomeValue};
return null;
} 

would work?

HTH;

Amy


Reply via email to