When you have a large no of listeners, as in your case Pankaj
or
When no listeners are available.

Use EventPreview class. It will detect any event occurring anywhere in your
page.



Event.addNativePreviewHandler(new Event.NativePreviewHandler()
{
     public void onPreviewNativeEvent(NativePreviewEvent foEvent)
     {
        switch(foEvent.getTypeInt())
        {
           case Event.ONCLICK: handleClick(foEvent); break;
           case Event.ONMOUSEOVER: handleMouseOver(foEvent); break;
        }// end switch
     }
});

On Sat, Jan 16, 2010 at 7:27 PM, Pankaj Goyal <[email protected]> wrote:

> Hi,
> How do i call an listener when i click on html text. i want to show
> dailouge message when user click on specific column of any row.
> for ex i have 10 column and i want to show dialouge message box when
> click on selected column.
> it is working fine for button but not working with text.
> Thanks
>
>
> Regards,
> Pankaj Goyal
> +91 96636 42808
> www.linkedin.com/in/pankaj28
>
>
>
>
> On Sat, Jan 16, 2010 at 5:07 PM, Abdullah Shaikh <
> [email protected]> wrote:
>
>> To support mouse events on panels you need to create a subclass of panel
>> and implement mousehandlers.
>>
>> Example for mouse out :
>>
>> class MyPanel extends VerticalPanel implements MouseOutHandler,
>> HasMouseOutHandlers
>>
>> Thanks,
>> Abdullah
>>
>> On Fri, Jan 15, 2010 at 8:20 PM, Viliam Durina 
>> <[email protected]>wrote:
>>
>>> I need a Panel, on which I need to add mouse events. The only match
>>> seems to be the FocusPanel, which has a focus features which I don't
>>> need. But all other panels, surprisingly for me, don't support mouse
>>> events. Is there any specific reason for this or is it just an
>>> incomplete API?
>>>
>>> Thanks,
>>> Viliam
>>>
>>> --
>>> 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]<google-web-toolkit%[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]<google-web-toolkit%[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]<google-web-toolkit%[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