public class Attr extends Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
Attr()
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
detachFromParent()
Detaches this attribute from the parent HTML element after caching the attribute value.
|
DomAttr |
getDomNodeOrDie()
Returns the DOM node that corresponds to this JavaScript object or throw
an exception if one cannot be found.
|
boolean |
jsxGet_expando()
Returns true if arbitrary properties can be added to this attribute.
|
Node |
jsxGet_firstChild()
Gets the JavaScript property "firstChild" for the node that
contains the current node.
|
boolean |
jsxGet_isId()
Returns true if this attribute is an ID.
|
Node |
jsxGet_lastChild()
Gets the JavaScript property "lastChild" for the node that
contains the current node.
|
String |
jsxGet_name()
Returns the name of the attribute.
|
String |
jsxGet_nodeValue()
Returns the value of this attribute.
|
Object |
jsxGet_ownerElement()
Returns the owner element.
|
Node |
jsxGet_parentNode()
Gets the JavaScript property "parentNode" for the node that
contains the current node.
|
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.
|
executeEvent, fireEvent, getEventHandler, getEventHandlerProp, getJavaScriptNode, getParent, hasEventHandlers, jsxFunction_addEventListener, jsxFunction_appendChild, jsxFunction_attachEvent, jsxFunction_cloneNode, jsxFunction_compareDocumentPosition, jsxFunction_detachEvent, jsxFunction_hasChildNodes, jsxFunction_insertBefore, jsxFunction_insertBefore, jsxFunction_isSameNode, jsxFunction_normalize, jsxFunction_removeChild, jsxFunction_removeEventListener, jsxFunction_replaceChild, jsxGet_childNodes, jsxGet_innerText, jsxGet_localName, jsxGet_namespaceURI, jsxGet_nextSibling, jsxGet_nodeName, jsxGet_nodeType, jsxGet_ownerDocument, jsxGet_prefix, jsxGet_previousSibling, jsxGet_textContent, jsxGet_xml, jsxSet_innerText, jsxSet_nodeValue, jsxSet_textContent, setDomNode, setEventHandler, setEventHandlerPropclone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setHtmlElementapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, sizepublic Attr()
public void detachFromParent()
public boolean jsxGet_isId()
public boolean jsxGet_expando()
public String jsxGet_name()
public String jsxGet_nodeValue()
jsxGet_nodeValue in class Nodepublic Object jsxGet_ownerElement()
public Node jsxGet_parentNode()
jsxGet_parentNode in class Nodenullpublic boolean jsxGet_specified()
public String jsxGet_value()
public void jsxSet_value(String value)
value - the new value of this attributepublic Node jsxGet_firstChild()
jsxGet_firstChild in class Nodepublic Node jsxGet_lastChild()
jsxGet_lastChild in class Nodepublic DomAttr getDomNodeOrDie() throws IllegalStateException
getDomNodeOrDie in class SimpleScriptableIllegalStateException - If the DOM node could not be found.Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.