1.  
  2. _p.getEventHandlers = function(comp, eType, e) {
  3. if (eType in comp._listeners) {
  4. var ct=0;
  5. var fromLeft = this.getLeft()+this.getWidth()-20;
  6. var fns="";
  7. if (!this.evtDialog) {
  8. this.evtDialog = new BubbleDialog();
  9. application.getWindow().add(this.evtDialog);
  10. this.evtDialog.setTop(this.getTop()-25);
  11. this.evtDialog.setLeft(fromLeft);
  12. application.getWindow().add(this.evtDialog.ptr);
  13. this.evtDialog.ptr.setLocation(fromLeft-6, e.getClientY()-21);
  14. }
  15. for (var key in comp._listeners[eType]) {
  16. this.evtDialog.setStyleProperty("display", "");
  17. this.evtDialog.ptr.setStyleProperty("display", "");
  18. fns += "<p>" + "<b>(" + ++ct + ")</b> " + comp._listeners[eType][key].handler + "<p/>"
  19. this.evtDialog.setTop(this.getTop()-25);
  20. this.evtDialog.setLeft(fromLeft);
  21. this.evtDialog.ptr.setLocation(fromLeft-6, e.getClientY()-21);
  22. }
  23. if (ct>0) {
  24. this.evtDialog.setHtml(fns);
  25. this.evtDialog.setHeader(ct + " Event Listeners");
  26. }
  27. } else if (this.evtDialog) {
  28. this.evtDialog.setStyleProperty("display", "none");
  29. this.evtDialog.ptr.setStyleProperty("display", "none");
  30. }
  31. }
  32.  
  33.