public class GXHtmlGenericTag
extends GXHtmlTag
To create a new HTML generic tag,
use GXHtmlTagFactory.intance().newGenericTag(<TAG NAME>)
.
Use the setInnerText
method to set text to the tag.
Use setAttribute
to add an attribute to the tag.
Use getChildren().add(...)
to create child tags.
GXHtmlTagFactory.newGenericTag(String)
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContent()
Returns the inner text of the tag.
|
void |
setInnerText(java.lang.String innerText)
Sets the inner text of the tag
|
void |
setTagName(java.lang.String tagName)
Sets the concrete tag name.
|
public void setInnerText(java.lang.String innerText)
innerText
- The inner text of the tagpublic void setTagName(java.lang.String tagName)
tagName
- the concrete tag name.public java.lang.String getContent()
Copyright 2019 Software AG. All rights reserved. Use is subject to license terms.