incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Costa <igorco...@gmail.com>
Subject Re: Spark datagrid (GridLayout) bug
Date Mon, 12 Mar 2012 17:20:09 GMT
Hi there João

Can you add this to the bug base, so we can keep track on it?

The datagrid will be donated too, and when we get it, we may address we
will investigate on that.

Best Regards
----------------------------
Igor Costa



2012/3/12 João Fernandes <joaopedromartinsfernandes@gmail.com>

> Hi everyone,
>
> I've came across a bug (at least I consider as one) and I'm wondering if
> the new enhanced Spark Datagrid (to be donated by Adobe) does fix this or
> should I log a patch for the current implementation.
>
> The bug is that GridColumns are supposed to accept an ItemRenderer of type
> IFactory but it seems that GridLayout is using
> the GridItemRendererClassFactory and initializing from scratch the
> ClassFactory [1] which defeats the purpose of using a IFactory. In my case
> I do want to use a different ClassFactory (extends ClassFactory but does
> some additional work) but unable to.
>
>
> [1]
> const factoryGenerator:Class = factory.generator;
> const moduleFactory:IFlexModuleFactory = grid.moduleFactory;
> const instance:Object =
>            (moduleFactory) ?
> moduleFactory.create(getQualifiedClassName(factoryGenerator)) : new
> factoryGenerator();
>
> const factoryProperties:Object = factory.properties;
> if (factoryProperties)
>  {
>      for (var p:String in factoryProperties)
>           instance[p] = factoryProperties[p];
>  }
> --
>
> João Fernandes
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message