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(); //ca
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 ???
--