public interface ElementFactory
Element
instances.Modifier and Type | Method and Description |
---|---|
static Element |
createAnchor()
Creates an
<a> element. |
static Element |
createAnchor(String href)
Creates an
<a> with the given href attribute. |
static Element |
createAnchor(String href,
String textContent)
Creates an
<a> element with the given href attribute
and text content. |
static Element |
createBr()
Creates a
<br> element. |
static Element |
createButton()
Creates a
<button> element. |
static Element |
createButton(String textContent)
Creates a
<button> with the given text content. |
static Element |
createDiv()
Creates a
<div> element. |
static Element |
createDiv(String textContent)
Creates a
<div> with the given text content. |
static Element |
createEmphasis()
Creates an
<em> element. |
static Element |
createEmphasis(String textContent)
Creates an
<em> element with the given text content. |
static Element |
createHeading1()
Creates an
<h1> element. |
static Element |
createHeading1(String textContent)
Creates a
<h1> element with the given text content. |
static Element |
createHeading2()
Creates an
<h2> element. |
static Element |
createHeading2(String textContent)
Creates a
<h2> element with the given text content. |
static Element |
createHeading3()
Creates an
<h3> element. |
static Element |
createHeading3(String textContent)
Creates a
<h3> element with the given text content. |
static Element |
createHeading4()
Creates an
<h4> element. |
static Element |
createHeading4(String textContent)
Creates a
<h4> element with the given text content. |
static Element |
createHeading5()
Creates an
<h5> element. |
static Element |
createHeading5(String textContent)
Creates a
<h5> element with the given text content. |
static Element |
createHeading6()
Creates an
<h6> element. |
static Element |
createHeading6(String textContent)
Creates a
<h6> element with the given text content. |
static Element |
createHr()
Creates an
<hr> element. |
static Element |
createInput()
Creates an
<input> element. |
static Element |
createInput(String type)
Creates an
<input> element with the given type. |
static Element |
createLabel()
Creates an
<label> element. |
static Element |
createLabel(String textContent)
Creates an
<label> element with the given text content. |
static Element |
createListItem()
Creates an
<li> element. |
static Element |
createListItem(String textContent)
Creates an
<li> element with the given text content. |
static Element |
createOption()
Creates an
<option> element. |
static Element |
createOption(String textContent)
Creates an
<option> element with the given text content. |
static Element |
createParagraph()
Creates a
<p> element. |
static Element |
createParagraph(String textContent)
Creates a
<p> element with the given text content. |
static Element |
createPreformatted()
Creates a
<pre> element. |
static Element |
createPreformatted(String textContent)
Creates a
<pre> element with the given text content. |
static Element |
createRouterLink(String href,
String textContent)
Creates an
<a> element with the given href attribute,
text content and the router link attribute. |
static Element |
createSelect()
Creates a
<select> element. |
static Element |
createSpan()
Creates a
<span> element. |
static Element |
createSpan(String textContent)
Creates a
<span> element with the given text content. |
static Element |
createStrong()
Creates a
<strong> element. |
static Element |
createStrong(String textContent)
Creates a
<strong> element with the given text content. |
static Element |
createTextarea()
Creates a
<textarea> element. |
static Element |
createUnorderedList()
Creates a
<ul> element. |
static Element createAnchor()
<a>
element.<a>
element.static Element createAnchor(String href)
<a>
with the given href
attribute.href
- the href attribute for the link<a>
element.static Element createAnchor(String href, String textContent)
<a>
element with the given href
attribute
and text content.href
- the href parameter for the elementtextContent
- the text content of the element<a>
element.static Element createRouterLink(String href, String textContent)
<a>
element with the given href
attribute,
text content and the router link attribute. Router links are handled by
the framework to perform view navigation without a page reload.href
- the href parameter for the elementtextContent
- the text content of the element<a>
element.static Element createBr()
<br>
element.<br>
element.static Element createButton()
<button>
element.<button>
element.static Element createButton(String textContent)
<button>
with the given text content.textContent
- the text content of the element<button>
element.static Element createDiv()
<div>
element.<div>
element.static Element createDiv(String textContent)
<div>
with the given text content.textContent
- the text content of the element<div>
element.static Element createHeading1()
<h1>
element.<h1>
element.static Element createHeading2()
<h2>
element.<h2>
element.static Element createHeading3()
<h3>
element.<h3>
element.static Element createHeading4()
<h4>
element.<h4>
element.static Element createHeading5()
<h5>
element.<h5>
element.static Element createHeading6()
<h6>
element.<h6>
element.static Element createHeading1(String textContent)
<h1>
element with the given text content.textContent
- the text content of the element<h1>
element.static Element createHeading2(String textContent)
<h2>
element with the given text content.textContent
- the text content of the element<h2>
element.static Element createHeading3(String textContent)
<h3>
element with the given text content.textContent
- the text content of the element<h3>
element.static Element createHeading4(String textContent)
<h4>
element with the given text content.textContent
- the text content of the element<h4>
element.static Element createHeading5(String textContent)
<h5>
element with the given text content.textContent
- the text content of the element<h5>
element.static Element createHeading6(String textContent)
<h6>
element with the given text content.textContent
- the text content of the element<h6>
element.static Element createHr()
<hr>
element.<hr>
element.static Element createInput()
<input>
element.<input>
element.static Element createInput(String type)
<input>
element with the given type.type
- the type attribute for the element<input>
elementstatic Element createLabel()
<label>
element.<label>
element.static Element createLabel(String textContent)
<label>
element with the given text content.textContent
- the text content of the element<label>
element.static Element createListItem()
<li>
element.<li>
element.static Element createListItem(String textContent)
<li>
element with the given text content.textContent
- the text content of the element<li>
element.static Element createOption()
<option>
element.<option>
element.static Element createOption(String textContent)
<option>
element with the given text content.textContent
- the text content of the element<option>
element.static Element createParagraph()
<p>
element.<p>
element.static Element createParagraph(String textContent)
<p>
element with the given text content.textContent
- the text content of the element<p>
element.static Element createPreformatted()
<pre>
element.<pre>
element.static Element createPreformatted(String textContent)
<pre>
element with the given text content.textContent
- the text content of the element<pre>
element.static Element createSelect()
<select>
element.<select>
element.static Element createSpan()
<span>
element.<span>
element.static Element createSpan(String textContent)
<span>
element with the given text content.textContent
- the text content of the element<span>
element.static Element createTextarea()
<textarea>
element.<textarea>
element.static Element createUnorderedList()
<ul>
element.<ul>
element.static Element createStrong()
<strong>
element.<strong>
element.static Element createStrong(String textContent)
<strong>
element with the given text content.textContent
- the text content of the element<strong>
elementstatic Element createEmphasis()
<em>
element.<em>
element.Copyright © 2019. All rights reserved.