vendredi 6 juin 2014

Events from an object to another object (Ed Spencer Exporter)

The context: An object (obj1) call within it self an another object (obj2) that for your time call other object (obj3). This last object fires an event. How do i do to obj1 to listen the event from obj1 ?

This is the case of Ed Spencer´s Exporter. The cell object fires a event. How can i do to the main object to listen the cell object.


I want to implement a code in the cell object that fires a event with a record count as a parameter and the ExporterButton object listen to this event, or the Workbook Object listen to same event.


Workbook obj -> worksheet obj -> row obj -> cell obj (fires event) and the first object must to listen.


I've tried but dont get it. With enableBubble, but this components are not containers (ownerCt property).


OBS: the WorkBook and the WorkSheet objects from Exporter are in my code kind of Ext.util.Observable.


Thanks.


Marcus





Aucun commentaire:

Enregistrer un commentaire