org.xwiki.gwt.dom.client
Class Attribute

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.dom.client.Node
          extended by org.xwiki.gwt.dom.client.Attribute

public class Attribute
extends com.google.gwt.dom.client.Node

Exposes a JavaScript DOM attribute node in Java code.

Version:
$Id: Attribute.java 27368 2010-02-28 14:45:17Z mflorea $

Field Summary
 
Fields inherited from class com.google.gwt.dom.client.Node
DOCUMENT_NODE, ELEMENT_NODE, TEXT_NODE
 
Constructor Summary
protected Attribute()
          Default constructor.
 
Method Summary
 java.lang.String getName()
           
 Element getOwnerElement()
           
 java.lang.String getValue()
           
 boolean isSpecified()
           
 void setValue(java.lang.String value)
          Sets the value of this attribute.
 
Methods inherited from class com.google.gwt.dom.client.Node
appendChild, as, cloneNode, getChild, getChildCount, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, hasChildNodes, hasParentElement, insertAfter, insertBefore, insertFirst, is, isOrHasChild, removeChild, removeFromParent, replaceChild, setNodeValue
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attribute

protected Attribute()
Default constructor. Needs to be protected because all instances are created from JavaScript.

Method Detail

getName

public final java.lang.String getName()
Returns:
the name of the attribute

isSpecified

public final boolean isSpecified()
Returns:
true if this attribute was explicitly given a value in the original document, false otherwise

getValue

public final java.lang.String getValue()
Returns:
the value of this attribute; character and general entity references are replaced with their values
See Also:
Element.getAttribute(String)

setValue

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

Parameters:
value - the new value
See Also:
Element.setAttribute(String, String)

getOwnerElement

public final Element getOwnerElement()
Returns:
the element node this attribute is attached to or null if this attribute is not in use


Copyright © 2004-2011 XWiki. All Rights Reserved.