Google Web Toolkit (Beta)
Search this site:

# Package com.google.gwt.user.client

Fundamental user-interface classes used in client-side GWT code. This package contains classes representing fundamental concepts, such as browser history, the browser window, DOM manipulation, and event handling. It also contains convenience classes such as Timer and Random.

## Classes

CommandCanceledException | Exception reported to the current UncaughtExceptionHandler when a deferred Command is canceled as a result of a slow script warning.
Cookies | Provides access to browser cookies stored on the client.
DeferredCommand | This class allows you to execute code after all currently pending event handlers have completed, using the addCommand(Command) or addCommand(IncrementalCommand) methods.
DOM | This class provides a set of static methods that allow you to manipulate the browser's Document Object Model (DOM).
Element | An opaque handle to a native DOM Element.
Event | An opaque handle to a native DOM Event.
History | This class allows you to interact with the browser's history stack.
HTTPRequest | This class allows you to make asynchronous HTTP requests to the originating server.
IncrementalCommandCanceledException | Exception reported to the current UncaughtExceptionHandler when a deferred IncrementalCommand is canceled as a result of a slow script warning.
Random | This class can be used as a substitute for Random.
Timer | A simplified, browser-safe timer class.
Window | This class provides access to the browser window's methods, properties, and events.

## Interfaces

Command | Encapsulates an action for later execution, often from a different context.
EventListener | Receives low-level browser events.
EventPreview | A listener interface for previewing browser events.
HistoryListener | Implement this interface to receive notification of changes to the browser history state.
IncrementalCommand | An `IncrementalCommand` is a command that is broken into one or more substeps, each substep brings the whole command nearer to completion.
ResponseTextHandler | Implement this interface to receive HTTP completion events.
WindowCloseListener | Implement this interface to receive closing events from the browser window.
WindowResizeListener | Implement this interface to receive resize events from the browser window.