Methods Summary |
---|
public java.lang.String | getCharset()
return getAttribute( "charset" );
|
public boolean | getDefer()
return getBinary( "defer" );
|
public java.lang.String | getEvent()
return getAttribute( "event" );
|
public java.lang.String | getHtmlFor()
return getAttribute( "for" );
|
public java.lang.String | getSrc()
return getAttribute( "src" );
|
public java.lang.String | getText()
Node child;
StringBuffer text = new StringBuffer();
// Find the Text nodes contained within this element and return their
// concatenated value. Required to go around comments, entities, etc.
child = getFirstChild();
while ( child != null )
{
if ( child instanceof Text ) {
text.append(( (Text) child ).getData());
}
child = child.getNextSibling();
}
return text.toString();
|
public java.lang.String | getType()
return getAttribute( "type" );
|
public void | setCharset(java.lang.String charset)
setAttribute( "charset", charset );
|
public void | setDefer(boolean defer)
setAttribute( "defer", defer );
|
public void | setEvent(java.lang.String event)
setAttribute( "event", event );
|
public void | setHtmlFor(java.lang.String htmlFor)
setAttribute( "for", htmlFor );
|
public void | setSrc(java.lang.String src)
setAttribute( "src", src );
|
public void | setText(java.lang.String text)
Node child;
Node next;
// Delete all the nodes and replace them with a single Text node.
// This is the only approach that can handle comments and other nodes.
child = getFirstChild();
while ( child != null )
{
next = child.getNextSibling();
removeChild( child );
child = next;
}
insertBefore( getOwnerDocument().createTextNode( text ), getFirstChild() );
|
public void | setType(java.lang.String type)
setAttribute( "type", type );
|