You can add a NativePreviewHandler.  It will receive all events.

Event.addNativePreviewHandler

In the handler, you can do something like:
if (event.getTypeInt() == Event.ONMOUSEDOWN)
{

  if(Event does not target the button or the text area)
 {
    //show your alert here

    event.cancel(); //cancels the event from firing to the rest of the
app
 }
}


On Apr 18, 10:34 am, Muhammad Saifullah <[email protected]>
wrote:
> i need to register a cross platform and version independent click event to
> the document.
> that means i have a two text box and submit button but when i click outside
> of the two text box and submit button then
> alert will be displayed .how can i achive this by gwt
>
> document.get().addMouseClick ???
>
> --
> 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 
> athttp://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