royale-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Mclean <jus...@classsoftware.com>
Subject Re: [Royale - ASJS] PAYG list beads
Date Fri, 01 Dec 2017 00:33:10 GMT
Hi,

>  thinking that when you add DataProviderItemsChangeNotifier to a List strand, you could
also replace the itemRenderer factory that is more "capable":
> 
> DataItemRendererFactoryForArrayListSupportsItemsAdded
> DataItemRendererFactoryForArrayListSupportsItemsRemoved
> DataItemRendererFactoryForArrayListSupportsItemsAddedAndRemoved
> DataItemRendererFactoryForArrayListSupportsItemsChanged
> DataItemRendererFactoryForArrayListSupportsItemsAddedChangedAndRemoved

A suggestion would be looking into using the decorator design pattern [1] that way you would
only need three beads (and less code duplication).

Thanks,
Justin

1. https://sourcemaking.com/design_patterns/decorator
Mime
View raw message