What exactly does "sink" mean in "sinkEvent"?

113 views
Skip to first unread message

wt

unread,
Jul 24, 2007, 1:03:42 PM7/24/07
to Google Web Toolkit
Sorry, but I am not a native English speaker. I've had a really hard
time understanding the exact meaning of "sink" in "sinkEvent". Can
someone please enlighten me on this? Thank you in advance.

Jason Essington

unread,
Jul 24, 2007, 1:14:30 PM7/24/07
to Google-We...@googlegroups.com
basically in this context it means "capture" or "report these events
to onBrowserEvent"

-jason

Ian Petersen

unread,
Jul 24, 2007, 1:18:41 PM7/24/07
to Google-We...@googlegroups.com
I'm not sure of the origins of this usage, but a "sink", in this case,
is the opposite of a "source". In the case of sinkEvents, you're
asking the widget to accept events from the browser. In other words,
the browser is a source of events and the widget becomes a sink for
them. You may already know the use of sink as part of "kitchen sink"
or "bathroom sink". In this case, the tap is the source of water and
the sink catches it. Talking about event sources and sinks is an
analogy to this physical example.

Ian

--
Tired of pop-ups, security holes, and spyware?
Try Firefox: http://www.getfirefox.com

wt

unread,
Jul 24, 2007, 1:25:07 PM7/24/07
to Google Web Toolkit
Thank you both for the great explanation. It's crystal-clear now.
Reply all
Reply to author
Forward
0 new messages