Re: HanlderManager

2010-03-08 Thread Ice13ill
Regarding the source of HandlerManager, if i have a custom event and handler (CellClickEvent and CellClickHandler with onCustomCellClicked() let's say...) when i instantiate HandlerManager handlerList = new HandlerManager(flexTable) , fire the event with handlerList.fire(new CellClickEvent(...)) ,

Re: HanlderManager

2010-01-29 Thread Alexander
It is normal behaviour On 29 January 2010 19:46, Bolletta Mathieu wrote: > Hi there, > > Can someone tell me *Why* when an event is fired, the source is > changed? > public void fireEvent(GwtEvent event) { >// If it not live we should revive it. >if (!event.isLive()) { > event.reviv

Re: HanlderManager

2010-01-29 Thread Thomas Broyer
On Jan 29, 2:46 pm, Bolletta Mathieu wrote: > Hi there, > > Can someone tell me *Why* when an event is fired, the source is > changed? If I register an event handler on one widget, I expect the source to be that widget, even if it's re-firing an event originally fired by an inner widget (this wo

HanlderManager

2010-01-29 Thread Bolletta Mathieu
Hi there, Can someone tell me *Why* when an event is fired, the source is changed? public void fireEvent(GwtEvent event) { // If it not live we should revive it. if (!event.isLive()) { event.revive(); } Object oldSource = event.getSource(); // why? event.setSourc