com.gargoylesoftware.htmlunit.javascript.host
Class Attribute

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

public class Attribute
extends SimpleScriptable

A JavaScript object for an Attribute.

Version:
$Revision: 1.3 $
Author:
Daniel Gredler, Chris Erskine, Ahmed Ashour
See Also:
W3C DOM Level 2, 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
Attribute()
 Create an instance.
 
Method Summary
 void detachFromParent()
 Detaches this attribute from the parent HTML element after caching the attribute value.
 void init(java.lang.String name, HtmlElement parent)
 Initializes this attribute.
 boolean jsxGet_expando()
 Returns true if arbitrary properties can be added to this attribute.
 java.lang.Object jsxGet_firstChild()
 Returns null
 java.lang.Object jsxGet_lastChild()
 Returns null
 java.lang.String jsxGet_name()
 Returns the name of the attribute.
 java.lang.Object jsxGet_nextSibling()
 Returns null
 java.lang.String jsxGet_nodeName()
 Returns the name of this attribute.
 int jsxGet_nodeType()
 Returns the type of DOM node this attribute represents.
 java.lang.String jsxGet_nodeValue()
 Returns the value of this attribute.
 java.lang.Object jsxGet_ownerDocument()
 Returns the containing document.
 java.lang.Object jsxGet_parentNode()
 Returns null
 java.lang.Object jsxGet_previousSibling()
 Returns null
 boolean jsxGet_specified()
 Returns true if this attribute has been specified.
 java.lang.String jsxGet_value()
 Returns the value of this attribute.
 void jsxSet_value(java.lang.String value)
 Sets the value of this attribute.
 
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

Attribute

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

Method Detail

detachFromParent

public void detachFromParent()
Detaches this attribute from the parent HTML element after caching the attribute value.


init

public void init(java.lang.String name,
                 HtmlElement parent)
Initializes this attribute.

Parameters:
name - the name of the attribute.
parent - the parent html element.

jsxGet_expando

public boolean jsxGet_expando()
Returns true if arbitrary properties can be added to this attribute.

Returns:
true if arbitrary properties can be added to this attribute.

jsxGet_firstChild

public java.lang.Object jsxGet_firstChild()
Returns null

Returns:
null

jsxGet_lastChild

public java.lang.Object jsxGet_lastChild()
Returns null

Returns:
null

jsxGet_name

public java.lang.String jsxGet_name()
Returns the name of the attribute.

Returns:
the name of the attribute.

jsxGet_nextSibling

public java.lang.Object jsxGet_nextSibling()
Returns null

Returns:
null

jsxGet_nodeName

public java.lang.String jsxGet_nodeName()
Returns the name of this attribute.

Returns:
the name of this attribute.

jsxGet_nodeType

public int jsxGet_nodeType()
Returns the type of DOM node this attribute represents.

Returns:
the type of DOM node this attribute represents.

jsxGet_nodeValue

public java.lang.String jsxGet_nodeValue()
Returns the value of this attribute.

Returns:
the value of this attribute.

jsxGet_ownerDocument

public java.lang.Object jsxGet_ownerDocument()
Returns the containing document.

Returns:
the containing document.

jsxGet_parentNode

public java.lang.Object jsxGet_parentNode()
Returns null

Returns:
null

jsxGet_previousSibling

public java.lang.Object jsxGet_previousSibling()
Returns null

Returns:
null

jsxGet_specified

public boolean jsxGet_specified()
Returns true if this attribute has been specified.

Returns:
true if this attribute has been specified.

jsxGet_value

public java.lang.String jsxGet_value()
Returns the value of this attribute.

Returns:
the value of this attribute.

jsxSet_value

public void jsxSet_value(java.lang.String value)
Sets the value of this attribute.

Parameters:
value - the new value of this attribute.


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