com.gargoylesoftware.htmlunit.javascript.host
Class Navigator

java.lang.Object
  extended by net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
      extended by com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
          extended by com.gargoylesoftware.htmlunit.javascript.host.Navigator
All Implemented Interfaces:
Serializable, Cloneable, Map, net.sourceforge.htmlunit.corejs.javascript.ConstProperties, net.sourceforge.htmlunit.corejs.javascript.debug.DebuggableObject, net.sourceforge.htmlunit.corejs.javascript.Scriptable

public final class Navigator
extends SimpleScriptable

A JavaScript object for a Navigator.

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
 
Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
Navigator()
          Creates an instance.
 
Method Summary
 boolean jsxFunction_javaEnabled()
          Indicates if Java is enabled.
 boolean jsxFunction_taintEnabled()
          Returns false always as data tainting support is not enabled in HtmlUnit.
 String jsxGet_appCodeName()
          Returns the property "appCodeName".
 String jsxGet_appMinorVersion()
          Returns the property "appMinorVersion".
 String jsxGet_appName()
          Returns the property "appName".
 String jsxGet_appVersion()
          Returns the property "appVersion".
 String jsxGet_browserLanguage()
          Returns the language of the browser (for IE).
 boolean jsxGet_cookieEnabled()
          Returns the property "cookieEnabled".
 String jsxGet_cpuClass()
          Returns the property "cpuClass".
 String jsxGet_language()
          Returns the language of the browser (for Mozilla).
 Object jsxGet_mimeTypes()
          Returns an empty array because HtmlUnit does not support embedded objects.
 boolean jsxGet_onLine()
          Returns the property "onLine".
 String jsxGet_platform()
          Returns the property "platform".
 Object jsxGet_plugins()
          Returns an empty array because HtmlUnit does not support embedded objects.
 String jsxGet_product()
          Returns the property "product".
 String jsxGet_productSub()
          Returns the build number of the current browser.
 String jsxGet_systemLanguage()
          Returns the property "systemLanguage".
 String jsxGet_userAgent()
          Returns the property "userAgent".
 String jsxGet_userLanguage()
          Returns the property "userLanguage".
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement
 
Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, clear, containsKey, containsValue, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, entrySet, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, keySet, preventExtensions, put, put, put, putAll, putConst, putConstProperty, putProperty, putProperty, redefineProperty, remove, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size, values
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

Navigator

public Navigator()
Creates an instance. JavaScript objects must have a default constructor.

Method Detail

jsxGet_appCodeName

public String jsxGet_appCodeName()
Returns the property "appCodeName".

Returns:
the property "appCodeName"

jsxGet_appMinorVersion

public String jsxGet_appMinorVersion()
Returns the property "appMinorVersion".

Returns:
the property "appMinorVersion"

jsxGet_appName

public String jsxGet_appName()
Returns the property "appName".

Returns:
the property "appName"

jsxGet_appVersion

public String jsxGet_appVersion()
Returns the property "appVersion".

Returns:
the property "appVersion"

jsxGet_browserLanguage

public String jsxGet_browserLanguage()
Returns the language of the browser (for IE).

Returns:
the language

jsxGet_language

public String jsxGet_language()
Returns the language of the browser (for Mozilla).

Returns:
the language

jsxGet_cookieEnabled

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

Returns:
the property "cookieEnabled"

jsxGet_cpuClass

public String jsxGet_cpuClass()
Returns the property "cpuClass".

Returns:
the property "cpuClass"

jsxGet_onLine

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

Returns:
the property "onLine"

jsxGet_platform

public String jsxGet_platform()
Returns the property "platform".

Returns:
the property "platform"

jsxGet_product

public String jsxGet_product()
Returns the property "product".

Returns:
the property "product"

jsxGet_productSub

public String jsxGet_productSub()
Returns the build number of the current browser.

Returns:
false
See Also:
Mozilla Doc

jsxGet_systemLanguage

public String jsxGet_systemLanguage()
Returns the property "systemLanguage".

Returns:
the property "systemLanguage"

jsxGet_userAgent

public String jsxGet_userAgent()
Returns the property "userAgent".

Returns:
the property "userAgent"

jsxGet_userLanguage

public String jsxGet_userLanguage()
Returns the property "userLanguage".

Returns:
the property "userLanguage"

jsxGet_plugins

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

Returns:
an empty array

jsxGet_mimeTypes

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

Returns:
an empty array

jsxFunction_javaEnabled

public boolean jsxFunction_javaEnabled()
Indicates if Java is enabled.

Returns:
true/false (see WebClient.isAppletEnabled()

jsxFunction_taintEnabled

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

Returns:
false


Copyright © 2002-2011 Gargoyle Software Inc.. All Rights Reserved.