Methods Summary |
---|
public void | appendTextChild(java.lang.String text)
if (text == null || text.length() == 0) {
return;
}
if (content == null) {
setContent(text);
} else {
setContent(content + text);
}
|
TraitAnim | createTraitAnimImpl(java.lang.String traitName)
if (SVGConstants.SVG_TEXT_PSEUDO_ATTRIBUTE == traitName) {
return new StringTraitAnim(this, NULL_NS, traitName);
} else {
return super.createTraitAnimImpl(traitName);
}
|
public java.lang.String | getContent()
return content;
|
public java.lang.String | getLocalName()
return localName;
|
public java.lang.String | getNamespaceURI()
return namespaceURI;
|
public java.lang.String | getTraitImpl(java.lang.String name)Handles #text traits.
if (SVGConstants.SVG_TEXT_PSEUDO_ATTRIBUTE == name) {
if (content == null) {
return "";
}
return getContent();
} else {
return super.getTraitImpl(name);
}
|
public ElementNode | newInstance(DocumentNode doc)Used by DocumentNode to create a new instance from
a prototype GenericElementNode .
return new GenericElementNode(namespaceURI, localName, doc);
|
public void | setContent(java.lang.String newContent)
if (equal(newContent, content)) {
return;
}
modifyingNode();
this.content = newContent;
modifiedNode();
|
public void | setTraitImpl(java.lang.String name, java.lang.String value)Handles the #text traits.
if (SVGConstants.SVG_TEXT_PSEUDO_ATTRIBUTE == name) {
if (value == null) {
throw illegalTraitValue(name, value);
}
setContent(value);
} else {
super.setTraitImpl(name, value);
}
|