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 <vlov...@gmail.com> wrote:
> There should be something like addMouseOutHandler & addMouseOverHandler.
>
>
>
> On Fri, Apr 10, 2009 at 12:02 AM, ChaoS <edo...@gmail.com> 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 Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to