Friday, December 28, 2012

Get widget variable name from event?


is it possible to retrieve the name of an element that triggers an event?
For example, if I have a FocusPanel which triggers a MouseOverEvent, can I get the variable name of that panel somehow from the event?

FocusPanel panel;

void mouseOver(MouseOverEvent ev) {
    Window.alert("you clicked the element named 'panel'"); //how could I use the 'ev' to get the name 'panel'?

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment