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
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
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
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
* 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
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