# 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.

- Interface Summary
  Interface | Description
  --- | ---
  Command | Encapsulates an action for later execution, often from a different context.
  DocumentModeAsserter.DocumentModeProperty | Interface to provide "document.compatMode" configuration property value.
  Event.NativePreviewHandler | Handler interface for `Event.NativePreviewEvent` events.
  EventListener | Receives low-level browser events.
  EventPreview | Deprecated. replaced by `Event.NativePreviewHandler`
  HistoryListener | Deprecated. use `History.addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler)` instead
  IncrementalCommand | Deprecated. Replaced by `Scheduler.RepeatingCommand` and `Scheduler.scheduleIncremental()`
  ResponseTextHandler | Implement this interface to receive HTTP completion events.
  TakesValue<V> | Implemented by objects that hold a value.
  Window.ClosingHandler | Handler for `Window.ClosingEvent` events.
  Window.ScrollHandler | Handler for `Window.ScrollEvent` events.
  WindowCloseListener | Deprecated. use `Window.ClosingHandler` and `CloseHandler` instead
  WindowResizeListener | Deprecated. use `ResizeHandler` instead
  WindowScrollListener | Deprecated. use `Window.addWindowScrollHandler(com.google.gwt.user.client.Window.ScrollHandler)` instead instead

- Class Summary
  Class | Description
  --- | ---
  BaseListenerWrapper<T> | Deprecated. will be removed in GWT 2.7 with the handler listeners themselves
  BaseListenerWrapper.WrapWindowClose |
  BaseListenerWrapper.WrapWindowResize |
  BaseListenerWrapper.WrapWindowScroll |
  CommandExecutor | Class which executes `Command`s and `IncrementalCommand`s after all currently pending event handlers have completed.
  Cookies | Provides access to browser cookies stored on the client.
  DeferredCommand | Deprecated. Replaced by `Scheduler.scheduleDeferred()` because the static nature of this API prevents effective mocking for JRE-only tests.
  DocumentModeAsserter | Helper class, which, during startup, asserts that the browser's current rendering mode is one of the values allowed by the "document.compatMode".
  DOM | This class provides a set of static methods that allow you to manipulate the browser's Document Object Model (DOM).
  Element | Deprecated.
  Event | An opaque handle to a native DOM Event.
  Event.NativePreviewEvent | Represents a preview of a native `Event`.
  History | This class allows you to interact with the browser's history stack.
  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.
  Window.ClosingEvent | Fired just before the browser window closes or navigates to a different site.
  Window.Location | This class provides access to the browser's location's object.
  Window.Navigator | This class provides access to the browser's navigator object.
  Window.ScrollEvent | Fired when the browser window is scrolled.

- Enum Summary
  Enum | Description
  --- | ---
  DocumentModeAsserter.Severity | Determine the severity of the runtime $doc.compatMode check:

- Exception Summary
  Exception | Description
  --- | ---
  CommandCanceledException | Exception reported to the current `GWT.UncaughtExceptionHandler` when a deferred `Command` is canceled as a result of a slow script warning.
  IncrementalCommandCanceledException | Exception reported to the current `GWT.UncaughtExceptionHandler` when a deferred `IncrementalCommand` is canceled as a result of a slow script warning.