onBrowserEvent to override. So, how would you do that then?
Thanks,
Yaakov.
On Jul 1, 3:20 am, rudolf michael <roud...@gmail.com> wrote:
> hello,
> you need to override the default behavior of the browser event on the
> treeitem
> @Override
> public void onBrowserEvent(Event event) {
> super.onBrowserEvent(event);
> if(DOM.eventGetType(event)==Event.ONMOUSEDOWN){
> if (DOM.eventGetButton(event) == Event.BUTTON_RIGHT){
> TreeHandler.onRightClick(this);
> }else if (DOM.eventGetButton(event) == Event.BUTTON_LEFT){
> TreeHandler.onLeftClick(this);
> }}else if(DOM.eventGetType(event)==Event.ONMOUSEOVER){
>
> TreeHandler.onMouseOver(this);}else if(DOM.eventGetType(event)==Event.ONMOUSEOUT){
>
> TreeHandler.onMouseOut(this);
>
> }
> }
>
> On Thu, Jul 1, 2010 at 8:19 AM, ganesh.shirsat <ganesh.shir...@gmail.com>wrote:
>
> > hi,
>
> > How to get TreeItem on right click in GWT 2.0.3
>
> > please help me
>
> > thanks,
> > Ganesh Shirsat
>
> > --
> > 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+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubscribe@googlegroups.com>
> > .
> > 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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment