On 8 juil, 10:28, Sandy <[email protected]> wrote:
> Hello,
>
> I’m writing because there's something I'm not sure about. Is there a
> high-level event mechanism available in GWT? According to GWT’s
> documentation, “Events in GWT use the event handler interface model
> similar to other user interface frameworks. To subscribe to an event,
> you pass a particular event handler interface to the appropriate
> widget”.  For example, “You'll handle the Add button's click event by
> passing it an object that implements the ClickHandler interface”. I
> like this approach, however, as far as I understood, in GWT I can only
> handle low-level events, in other words, I can only handle user
> interface events (e.g. clicks, key press and so on) which are defined
> by GWT, that is, I can handle clicks because GWT offers a ClickHandler
> interface, am I right? Can I use the same mechanism for high-level
> events? With “high-level” I mean, for example, events intended to
> allow widgets to react to actions or state changes not directly
> related to an interaction of the user with the widget. In other words,
> is there a  coordination mechanism between widgets in GWT? Maybe
> “event” is not the right word, maybe the right word is “message”. I
> wondering about this because other frameworks have such mechanism and
> I suppose GWT has one but I don’t know how to use it :(.

Search for "event bus" in this group. You'll find links to a Google I/
O session where Ray Ryan explained how they use it in AdWords and to
several projects aiming at making it easier to build new applications
using this model.
All those also talk (with sample code) about "high-level" events.

You can also just look at the code in com.google.gwt.events.logical.*;
those are UI events but are not tied to "DOM events" (i.e. events
fired by the browser); they are the exact equivalent to Y!UI, jQuery,
Prototype.js, etc. custom events.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to