Re: how to sink a custom defined event class ?

2011-12-06 Thread Thomas Broyer
As I said: addHandlerhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/Widget.html#addHandler(H, com.google.gwt.event.shared.GwtEvent.Type)(myHandler, PageEvent.TYPE); -- You received this message because you are subscribed to the Google Groups Google

Re: how to sink a custom defined event class ?

2011-12-06 Thread Thomas Broyer
Cell widgets are special, because they have to listen to any event their Cell(s) want to be notified about, and they process (almost) all of these events the same: 1) find the relevant value and Cell, 2) dispatch the event to the CellPreviewEvent.Handlers if any, then 3) pass the event down to

how to sink a custom defined event class ?

2011-12-05 Thread wahaha
we use the method sinkEvents(Event.ONCLICK) to tell widget that it should capture the mouse-click event on this widget. but if the event is a custom defined event called MyEvent,then what is the property of method sinkEvents(int eventBitsToAdd)? -- You received this message because you are

Re: how to sink a custom defined event class ?

2011-12-05 Thread Thomas Broyer
sinkEvents is only for DOM events (ones that are dispatched by the browser itself). In modern GWT development you shouldn't have to ever call sinkEvents (use addDomHandler). For custom events, use addHandler. -- You received this message because you are subscribed to the Google Groups Google

Re: how to sink a custom defined event class ?

2011-12-05 Thread Karthik Reddy
* In modern GWT development you shouldn't have to ever call sinkEvents (use addDomHandler).* * * CellTable and other Cell based widgets use the sinkEvents approach. Am I missing something? Is that just an anomaly because of the ultra-high-performance expected off of huge-data-rendering Cell

Re: how to sink a custom defined event class ?

2011-12-05 Thread wahaha
but if i need define a event called onPage(fired by logical,not DOM event) for my widget,how should i register this event and bind handler for it? On Dec 5, 7:53 pm, Thomas Broyer t.bro...@gmail.com wrote: sinkEvents is only for DOM events (ones that are dispatched by the browser itself). In