flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: Any idea why ListCollectionView uses different toString when sorted/filtered?
Date Thu, 16 May 2013 04:42:12 GMT
Don't know for sure.  I think that the list's string representation is
"nicer" in general, but the list doesn't know what view is on it, so it
can't give a nicer representation when sorted and/or filtered.

Is this code also used in XMLListCollection?

-Alex

On 5/15/13 9:35 PM, "Justin Mclean" <justin@classsoftware.com> wrote:

>Hi,
>
>On ListCollectionVie we have this:
>
>    public function toString():String
>    {
>        if (localIndex != null)
>        {
>            return ObjectUtil.toString(localIndex);
>        }
>        else
>        {
>            if (list && Object(list).toString)
>                return Object(list).toString();
>            else
>                return getQualifiedClassName(this);
>        }
>    }
>
>Which means it uses a different toString if the collection is filtered or
>sorted. Anyone know why this might be the case?
>
>Thanks,
>Justin


Mime
View raw message