Package com.google.gwt.user.client
Class Window.Navigator
java.lang.Object
com.google.gwt.user.client.Window.Navigator
- Enclosing class:
Window
This class provides access to the browser's navigator object. The mimeTypes
and plugins properties are not included.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Gets the navigator.appCodeName.static String
Gets the navigator.appName.static String
Gets the navigator.appVersion.static String
Gets the navigator.platform.static String
Gets the navigator.userAgent.static boolean
Checks whether or not cookies are enabled or disabled.static boolean
Tests whether Java is enabled in the current browser.
-
Method Details
-
getAppCodeName
Gets the navigator.appCodeName.- Returns:
- the window's navigator.appCodeName.
-
getAppName
Gets the navigator.appName.- Returns:
- the window's navigator.appName.
-
getAppVersion
Gets the navigator.appVersion.- Returns:
- the window's navigator.appVersion.
-
getPlatform
Gets the navigator.platform.- Returns:
- the window's navigator.platform.
-
getUserAgent
Gets the navigator.userAgent.- Returns:
- the window's navigator.userAgent.
-
isCookieEnabled
public static boolean isCookieEnabled()Checks whether or not cookies are enabled or disabled.- Returns:
- true if a cookie can be set, false if not
-
isJavaEnabled
public static boolean isJavaEnabled()Tests whether Java is enabled in the current browser.- Returns:
- the window's navigator.javaEnabled.
-