The Widget class prevent the MouseOver event of cells
Only mouseover event of grid can be detected


On 4月10日, 下午2时38分, Vitali Lovich <[email protected]> wrote:
> Sorry, I didn't realize that it didn't already have them.  There's two
> things you can do -
>
> add a preview event handler which is
>
> implements Event.NativePreviewHandler
>
> & implement
> public void onPreviewNativeEvent (NativePreviewEvent preview)
>
> Event.addNativePreviewHandler(myPreviewHandler);
>
> Or when you add widgets to the cells, check if they're an instanceof
> HasMouseOverHandler/HasMouseOutHandler & add the same handler to them.
>
>
>
> On Fri, Apr 10, 2009 at 2:02 AM, ChaoS <[email protected]> wrote:
>
> > I tried like this
>
> > public class GridX extends Grid implements HasMouseOverHandlers,
> >                HasMouseOutHandlers {
>
> >        public GridX() {
> >                super();
> >        }
>
> >        public GridX(int rows, int columns) {
> >                super(rows, columns);
> >        }
>
> >        public HandlerRegistration addMouseOverHandler(MouseOverHandler
> > handler) {
> >                return addDomHandler(handler, MouseOverEvent.getType());
> >        }
>
> >        public HandlerRegistration addMouseOutHandler(MouseOutHandler
> > handler) {
> >                return addDomHandler(handler, MouseOutEvent.getType());
> >        }
>
> > }
>
> > but I found that the mouseover event doesn't occured as I wished.
> > It was fired when mouse moving into the grid but not the cells
>
> > On 4月10日, 下午1时54分, Vitali Lovich <[email protected]> wrote:
> > > There should be something like addMouseOutHandler & addMouseOverHandler.
>
> > > On Fri, Apr 10, 2009 at 12:02 AM, ChaoS <[email protected]> wrote:
>
> > > > I tried addDomHandler function but it works bad.Any one can help me?-
> > 隐藏被引用文字 -
>
> > > - 显示引用的文字 -- 隐藏被引用文字 -
>
> - 显示引用的文字 -
--~--~---------~--~----~------------~-------~--~----~
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