com.gargoylesoftware.htmlunit.javascript.host
Class Navigator

java.lang.Object
  extended by org.mozilla.javascript.ScriptableObject
      extended by com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
          extended by com.gargoylesoftware.htmlunit.javascript.host.Navigator
All Implemented Interfaces:
java.io.Serializable, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.Scriptable

public final class Navigator
extends SimpleScriptable

A javascript object for a Navigator.

Version:
$Revision: 1.3 $
Author:
Mike Bowler, Daniel Gredler, Chris Erskine, Ahmed Ashour
See Also:
MSDN documentation, Serialized Form

Field Summary
 
Fields inherited from class org.mozilla.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
 
Fields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
Navigator()
 Create an instance.
 
Method Summary
 boolean jsxFunction_javaEnabled()
 Return false always as Java support is not enabled in HtmlUnit.
 boolean jsxFunction_taintEnabled()
 Return false always as data tainting support is not enabled in HtmlUnit.
 java.lang.String jsxGet_appCodeName()
 Return the property "appCodeName".
 java.lang.String jsxGet_appMinorVersion()
 Return the property "appMinorVersion".
 java.lang.String jsxGet_appName()
 Return the property "appName".
 java.lang.String jsxGet_appVersion()
 Return the property "appVersion".
 java.lang.String jsxGet_browserLanguage()
 Return the language of the browser (for IE).
 boolean jsxGet_cookieEnabled()
 Return the property "cookieEnabled".
 java.lang.String jsxGet_cpuClass()
 Return the property "cpuClass".
 java.lang.String jsxGet_language()
 Return the language of the browser (for Mozilla).
 java.lang.Object jsxGet_mimeTypes()
 Return an empty array because HtmlUnit does not support embedded objects.
 boolean jsxGet_onLine()
 Return the property "onLine".
 java.lang.String jsxGet_platform()
 Return the property "platform".
 java.lang.Object jsxGet_plugins()
 Return an empty array because HtmlUnit does not support embedded objects.
 java.lang.String jsxGet_systemLanguage()
 Return the property "systemLanguage".
 java.lang.String jsxGet_userAgent()
 Return the property "userAgent".
 java.lang.String jsxGet_userLanguage()
 Return the property "userLanguage".
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
get, getBooleanArg, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getHtmlElementOrDie, getHtmlElementOrNull, getIntArg, getObjectArg, getStringArg, makeScriptableFor, setDomNode, setHtmlElement
 
Methods inherited from class org.mozilla.javascript.ScriptableObject
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Navigator

public Navigator()
Create an instance. Javascript objects must have a default constructor.

Method Detail

jsxFunction_javaEnabled

public boolean jsxFunction_javaEnabled()
Return false always as Java support is not enabled in HtmlUnit.

Returns:
false.

jsxFunction_taintEnabled

public boolean jsxFunction_taintEnabled()
Return false always as data tainting support is not enabled in HtmlUnit.

Returns:
false.

jsxGet_appCodeName

public java.lang.String jsxGet_appCodeName()
Return the property "appCodeName".

Returns:
the property "appCodeName".

jsxGet_appMinorVersion

public java.lang.String jsxGet_appMinorVersion()
Return the property "appMinorVersion".

Returns:
the property "appMinorVersion".

jsxGet_appName

public java.lang.String jsxGet_appName()
Return the property "appName".

Returns:
the property "appName".

jsxGet_appVersion

public java.lang.String jsxGet_appVersion()
Return the property "appVersion".

Returns:
the property "appVersion".

jsxGet_browserLanguage

public java.lang.String jsxGet_browserLanguage()
Return the language of the browser (for IE).

Returns:
the language.

jsxGet_cookieEnabled

public boolean jsxGet_cookieEnabled()
Return the property "cookieEnabled".

Returns:
the property "cookieEnabled".

jsxGet_cpuClass

public java.lang.String jsxGet_cpuClass()
Return the property "cpuClass".

Returns:
the property "cpuClass".

jsxGet_language

public java.lang.String jsxGet_language()
Return the language of the browser (for Mozilla).

Returns:
the language.

jsxGet_mimeTypes

public java.lang.Object jsxGet_mimeTypes()
Return an empty array because HtmlUnit does not support embedded objects.

Returns:
an empty array.

jsxGet_onLine

public boolean jsxGet_onLine()
Return the property "onLine".

Returns:
the property "onLine".

jsxGet_platform

public java.lang.String jsxGet_platform()
Return the property "platform".

Returns:
the property "platform".

jsxGet_plugins

public java.lang.Object jsxGet_plugins()
Return an empty array because HtmlUnit does not support embedded objects.

Returns:
an empty array.

jsxGet_systemLanguage

public java.lang.String jsxGet_systemLanguage()
Return the property "systemLanguage".

Returns:
the property "systemLanguage".

jsxGet_userAgent

public java.lang.String jsxGet_userAgent()
Return the property "userAgent".

Returns:
The property "userAgent".

jsxGet_userLanguage

public java.lang.String jsxGet_userLanguage()
Return the property "userLanguage".

Returns:
the property "userLanguage".


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.