com.google.gwt.gadgets.client.event
Class Event

java.lang.Object
  extended by com.google.gwt.gadgets.client.event.Event

public abstract class Event
extends java.lang.Object

Utility Class for Gadget Events. In order to give type appropriate Java interfaces, this class contains many aliases for callback interfaces.


Nested Class Summary
static interface Event.FetchContentCallback
          Provides a way to specify a JavaScript function() with a single String argument.
static interface Event.FetchXmlContentCallback
          Provides a way to specify a JavaScript function() with a single DOM Object argument and handles uncaught exceptions.
 
Constructor Summary
Event()
           
 
Method Summary
static void callbackWrapper(com.google.gwt.dom.client.ObjectElement content, Event.FetchXmlContentCallback callback)
          Wraps a FetchXmlContentCallback to handles uncaught exceptions.
static void callbackWrapper(java.lang.String content, Event.FetchContentCallback callback)
          Wraps a FetchContentCallback to handles uncaught exceptions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Event

public Event()
Method Detail

callbackWrapper

public static void callbackWrapper(com.google.gwt.dom.client.ObjectElement content,
                                   Event.FetchXmlContentCallback callback)
Wraps a FetchXmlContentCallback to handles uncaught exceptions.

Parameters:
content - The content to pass to the callback method
callback - The callback handler object

callbackWrapper

public static void callbackWrapper(java.lang.String content,
                                   Event.FetchContentCallback callback)
Wraps a FetchContentCallback to handles uncaught exceptions.

Parameters:
content - The content to pass to the callback method
callback - The callback handler object