At first glance, repeater control looks extremely powerful, but now I have another idea.
Problems in hand: Adding Event Listener to Kids
Repeater Object is bound and for each item it is repeated through an Arrayulation to create new Vbox Kids. Now for every child, the repeater object will close a "repeat" event, where I have to add to Eventantister (mouse events). There is no problem till now, but what happens when ArrayCollection changes, how should I remove an event list for all older children? Is there an array of children with my Vbox examples which I'm skipping in Docs? Are event list workers cleaned up when the objects that are destroyed are destroyed?
I would like to avoid using them from a performance perspective, because they are often destroyed and rebuilt. You're better off using list-based controls and implementing an item renderer.
Event listeners have strong references by default, so if you do not delete your event listeners, then prevent the object from collecting garbage. You can use the optional 5th parameter in the addEventListener called "weakforrence" and you can set the value to the right to add an event listener, which will not stop GC.
To make a better deal with the event in your item, you can implement the IDropInListItemRenderer interface, it will give you access to "catalog data" which is the "owner" property which is the actual list item itself Send a custom event containing essential data through the presenter, owner in your item. If you add the list controller after making the list controller, you can handle the event in the control element. Can.
Comments
Post a Comment