public class Attribute extends SimpleScriptable
Constructor and Description |
---|
Attribute()
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
detachFromParent()
Detaches this attribute from the parent HTML element after caching the attribute value.
|
void |
init(String name,
HtmlElement parent)
Initializes this attribute.
|
boolean |
jsxGet_expando()
Returns true if arbitrary properties can be added to this attribute.
|
Object |
jsxGet_firstChild()
Returns
null |
Object |
jsxGet_lastChild()
Returns
null |
String |
jsxGet_name()
Returns the name of the attribute.
|
Object |
jsxGet_nextSibling()
Returns
null |
String |
jsxGet_nodeName()
Returns the name of this attribute.
|
int |
jsxGet_nodeType()
Returns the type of DOM node this attribute represents.
|
String |
jsxGet_nodeValue()
Returns the value of this attribute.
|
Object |
jsxGet_ownerDocument()
Returns the containing document.
|
Object |
jsxGet_parentNode()
Returns
null |
Object |
jsxGet_previousSibling()
Returns
null |
boolean |
jsxGet_specified()
Returns true if this attribute has been specified.
|
String |
jsxGet_value()
Returns the value of this attribute.
|
void |
jsxSet_value(String value)
Sets the value of this attribute.
|
protected void |
setDomNode(DomNode domNode,
boolean assignScriptObject)
Ensures that all attributes are initialized correctly via
init(String, HtmlElement) . |
get, getBooleanArg, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getIntArg, getLog, getObjectArg, getPrototype, getScriptableFor, getStartingScope, getStringArg, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, makeScriptableFor, setDomNode, setHtmlElement
associateValue, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, 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
public Attribute()
public void init(String name, HtmlElement parent)
name
- the name of the attribute.parent
- the parent html element.protected void setDomNode(DomNode domNode, boolean assignScriptObject)
init(String, HtmlElement)
.
Set the DOM node that corresponds to this javascript objectsetDomNode
in class SimpleScriptable
domNode
- The DOM nodeassignScriptObject
- If true, call setScriptObject
on domNodepublic void detachFromParent()
public boolean jsxGet_expando()
public Object jsxGet_firstChild()
null
null
public Object jsxGet_lastChild()
null
null
public String jsxGet_name()
public Object jsxGet_nextSibling()
null
null
public String jsxGet_nodeName()
public int jsxGet_nodeType()
public String jsxGet_nodeValue()
public Object jsxGet_ownerDocument()
public Object jsxGet_parentNode()
null
null
public Object jsxGet_previousSibling()
null
null
public boolean jsxGet_specified()
public String jsxGet_value()
public void jsxSet_value(String value)
value
- the new value of this attribute.Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.