Package | Description |
---|---|
org.ujorm.tools.dom |
Modifier and Type | Class and Description |
---|---|
class |
HtmlElement
XML element model to rendering a HTML file
How to use the class:
final HtmlElement html = new HtmlElement("Test"); html.getBody().addElement("div") .addText("Hello word!") |
class |
XmlElement
XML element model to rendering a XML file.
|
Modifier and Type | Method and Description |
---|---|
<T extends Element> |
XmlElement.addAttrib(CharSequence name,
Object value)
Add an attribute
|
<T extends Element> |
Element.addAttrib(CharSequence name,
Object value)
Add an attribute
|
<T extends Element> |
XmlElement.addCDATA(CharSequence charData)
Add a character data in
CDATA format to XML only. |
<T extends Element> |
Element.addCDATA(CharSequence charData)
Add a character data in
CDATA format to XML only. |
<T extends Element> |
XmlElement.addComment(CharSequence comment)
Add a comment text.
|
<T extends Element> |
Element.addComment(CharSequence comment)
Add a comment text.
|
<T extends Element> |
HtmlElement.addCssBody(String css)
Create a new CSS element and return it
|
<T extends Element> |
HtmlElement.addCssLink(String css)
Create a new CSS element and return it
|
<T extends Element> |
XmlElement.addElement(CharSequence name)
Create a new
XmlElement for a required name and add it to children. |
<T extends Element> |
Element.addElement(CharSequence name)
Create a new
XmlElement for a required name and add it to children. |
<T extends Element> |
XmlElement.addElement(T element)
Add a child element
|
<T extends Element> |
Element.addElement(T element)
Add a child element
|
<T extends Element> |
HtmlElement.addElementToBody(CharSequence name)
A shortcut for
HtmlList.getBody().addElement(CharSequence) |
<T extends Element> |
HtmlElement.addElementToHead(CharSequence name)
A shortcut for
HtmlList.getHead().addElement(CharSequence) |
<T extends Element> |
XmlElement.addRawText(CharSequence rawText)
Add an native text with no escaped characters, for example: XML code, JavaScript, CSS styles
|
<T extends Element> |
Element.addRawText(CharSequence rawText)
Add an native text with no escaped characters, for example: XML code, JavaScript, CSS styles
|
<T extends Element> |
XmlElement.addText(CharSequence text)
Add a text and escape special character
|
<T extends Element> |
Element.addText(CharSequence text)
Add a text and escape special character
|
<T extends Element> |
XmlElement.addTextWithSpace(CharSequence text)
Add a text including a space (before and after the text)
|
<T extends Element> |
Element.addTextWithSpace(CharSequence text)
Add a text including a space (before and after the text)
|
<T extends Element> |
HtmlElement.getBody()
Returns body element
|
<T extends Element> |
HtmlElement.getHead()
Returns header element
|
Copyright 2019-2022, Pavel Ponec