A mouseover event fires for each element that the mouse moves over, so if
your Cell has nested elements, it can fire multiple times.  Widgets check
the element and only fire a GWT MouseOverEvent when you enter/exit the
outermost element, but for Cells, you may want to know exactly which element
was moused over.  For example, you may reveal some text when mousing over an
icon, but not when mousing over other parts of the cell.

Thanks,
John LaBanca
[email protected]


On Sat, Apr 9, 2011 at 7:20 AM, Javier <[email protected]> wrote:

> The cell is composed of different HTML elements (div, span, label,
> etc). I suppose different elements are firing a onMouseOver. Can you
> try debugging the event target element?
>
> On 9 abr, 01:40, Christian Goudreau <[email protected]>
> wrote:
> > It's not even for that... lol Anyway, even with a deffered it happen.
> >
> > On Fri, Apr 8, 2011 at 7:35 PM, Christian Goudreau <
> >
> >
> >
> > [email protected]> wrote:
> > > Ok no, it's not because of the text... it's fired the first time when
> the
> > > cell is white... then a second time when the cell is turning "blue".
> >
> > > On Fri, Apr 8, 2011 at 7:33 PM, Christian Goudreau <
> > > [email protected]> wrote:
> >
> > >> Here's a little snippet of the code:
> >
> > >>     if ("click".equals(event.getType())) {
> > >>       onEnterKeyDown(context, parent, value, event, valueUpdater);
> > >>     } else if ("mouseover".equals(event.getType())) {
> > >>       onMouseOver(context.getIndex(), event);
> > >>     } else if ("mouseout".equals(event.getType())) {
> > >>       onMouseOut(context.getIndex(), event);
> > >>     }
> >
> > >> Well, when I first enter the cell with my mouse, onMouseOver is
> called,
> > >> then when I move inside the same cell and mouse over  the texte,
> onmouseover
> > >> is called a second time.
> >
> > >> Someone have an idea how to fix this ?
> >
> > >> --
> > >> Christian Goudreau
> > >>www.arcbees.com
> >
> > > --
> > > Christian Goudreau
> > >www.arcbees.com
> >
> > --
> > Christian Goudreauwww.arcbees.com
>
> --
> 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.
>
>

-- 
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