tags:

views:

186

answers:

1

I have:

  1. created a Composite,
  2. initWidget-ed with an AbsolutePanel
  3. added some Widgets to the Composite
  4. in the Composite constructor attached a MouseOut handler

What I wanted to reach is detecting when the mouse is out of the Composite (or AbsolutePanel), but the MouseOut handler is fired whenever the mouse is out of any wideget in the AbsolutePanel.

Is there any clean way I can reach detecting the AbsolutePanel out?

The GWT I'm using is 2.0, with no add-ons (and I don't want to use any).

A: 

OK, I've found a solution.

I extended the AbsolutePanel class, so that implements HasMouseoutHandlers. Now, instead of adding MouseHandler to the Composite, I add it to the MyAbsolutePanel only. This works fine.

halish
Then you might want to mark this question as answered...
Sudhir Jonathan