public static class

Window.Navigator

extends Object
java.lang.Object
   ↳ com.google.gwt.user.client.Window.Navigator

Class Overview

This class provides access to the browser's navigator object. The mimeTypes and plugins properties are not included.

Summary

Public Methods
static String getAppCodeName()
Gets the navigator.appCodeName.
static String getAppName()
Gets the navigator.appName.
static String getAppVersion()
Gets the navigator.appVersion.
static String getPlatform()
Gets the navigator.platform.
static String getUserAgent()
Gets the navigator.userAgent.
static boolean isCookieEnabled()
Checks whether or not cookies are enabled or disabled.
static boolean isJavaEnabled()
Tests whether Java is enabled in the current browser.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static String getAppCodeName ()

Gets the navigator.appCodeName.

Returns
  • the window's navigator.appCodeName.

public static String getAppName ()

Gets the navigator.appName.

Returns
  • the window's navigator.appName.

public static String getAppVersion ()

Gets the navigator.appVersion.

Returns
  • the window's navigator.appVersion.

public static String getPlatform ()

Gets the navigator.platform.

Returns
  • the window's navigator.platform.

public static String getUserAgent ()

Gets the navigator.userAgent.

Returns
  • the window's navigator.userAgent.

public static boolean isCookieEnabled ()

Checks whether or not cookies are enabled or disabled.

Returns
  • true if a cookie can be set, false if not

public static boolean isJavaEnabled ()

Tests whether Java is enabled in the current browser.

Returns
  • the window's navigator.javaEnabled.