|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.google.gwt.core.client.GWT
Supports core functionality that in some cases requires direct support from the compiler and runtime systems such as runtime type information and deferred binding.
| Nested Class Summary | |
static interface |
GWT.UncaughtExceptionHandler
This interface is used to catch exceptions at the "top level" just before they escape to the browser. |
| Field Summary |
| Fields inherited from class java.lang.Object |
typeId, typeName |
| Constructor Summary | |
GWT()
|
|
| Method Summary | |
static Object |
create(Class classLiteral)
Instantiates a class via deferred binding. |
static String |
getModuleBaseURL()
Gets the url prefix of the module, which can be prefixed to URLs that are known to be part of the module's public path. |
static String |
getModuleName()
Gets the name of the running module. |
static String |
getTypeName(Object o)
Gets the class name of the specified object, as would be returned by o.getClass().getName(). |
static GWT.UncaughtExceptionHandler |
getUncaughtExceptionHandler()
Returns the currently active uncaughtExceptionHandler. |
static boolean |
isScript()
Determines whether or not the running program is script or bytecode. |
static void |
log(String message,
Throwable e)
Logs a message to the development shell logger in hosted mode. |
static void |
setUncaughtExceptionHandler(GWT.UncaughtExceptionHandler handler)
Sets a custom uncaught exception handler. |
| Methods inherited from class java.lang.Object |
equals, finalize, hashCode, toString |
| Constructor Detail |
public GWT()
| Method Detail |
public static GWT.UncaughtExceptionHandler getUncaughtExceptionHandler()
com.google.gwt.user.client.DOM#dispatchEvent(Event, Element, EventListener)
for an example of how to handle this correctly.
public static void setUncaughtExceptionHandler(GWT.UncaughtExceptionHandler handler)
getUncaughtExceptionHandler() for details.
handler - the handler that should be called when an exception is about
to escape to the browser, or null to clear the handler and
allow exceptions to escape.public static Object create(Class classLiteral)
create(Class) must be a class literal because
the web mode compiler must be able to statically determine the requested
type at compile-time. This can be tricky because using a Class
may appear to work correctly in hosted mode.
classLiteral - a class literal specifying the base class to be
instantiated
public static String getTypeName(Object o)
o.getClass().getName().
o - the object whose class name is being sought, or null
null if
o is nullpublic static boolean isScript()
public static String getModuleName()
public static String getModuleBaseURL()
public static void log(String message,
Throwable e)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||