If a class implements MouseOutHandler, it means it is *capable* of dealing with MouseOut events. You may be able to catch a ball, but no-one is going to throw a ball to you unless you tell them you want them to. addMouseOutHandler arranges that a certain widget will tell another widget (a mouseouthandler) when that event occurs. You may have any number of handlers for a widget and one handler may handle events for any number of mouse-out-event-throwing widgets.
In addition, a throwing widget may throw the event to itself. I was going to use sex as an analogy, but I didn't think my example for this last case would pass the censors :-) Ian http://examples.roughian.com 2009/6/24 Eduardo Nunes <[email protected]> > That is something I don't understand yet (I'm new to GWT). If the class has > a method "onMouseOut" doesn't it means that this class already expect mouse > out events? What is the reason to have this method? > > On Wed, Jun 24, 2009 at 1:20 PM, Bonor <[email protected]> wrote: > >> >> Well, I tell myself...first you read the manual... >> than you know you need to add addMouseOutHandler().... >> >> >> On 24 jun, 00:57, Rey <[email protected]> wrote: >> > I want to controle the hiding of my PopupPanel >> > >> > PopupPanel implements MouseOutHandler...... >> > . >> > . >> > @Override >> > public void onMouseOut(MouseOutEvent event) { >> > hide(); >> > } >> > >> > This wont work. Is there another way? >> > >> > If I use >> > sinkEvents(Event.ONMOUSEOUT ); >> > it also goes off when i enter widgets on the popup....:-( >> >> > > > -- > Eduardo S. Nunes > http://e-nunes.com.br > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
