public class TextBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
Text |
build() |
static TextBuilder |
create() |
TextBuilder |
link(String text,
File file)
Create a link in the current paragraph.
|
TextBuilder |
link(String text,
String ref)
Create a link in the current paragraph.
|
TextBuilder |
link(String text,
Table table)
Create a link in the current paragraph.
|
TextBuilder |
link(String text,
URI uri)
Create a link in the current paragraph.
|
TextBuilder |
link(String text,
URL url)
Create a link in the current paragraph.
|
TextBuilder |
par()
Create a new paragraph
|
TextBuilder |
parContent(String text)
Create a new paragraph with a text content
|
TextBuilder |
parStyledContent(String text,
TextStyle ts)
Create a new paragraph with a text content
|
TextBuilder |
span(String text)
Create a span in the current paragraph.
|
TextBuilder |
styledLink(String text,
TextStyle ts,
File file)
Create a styled link in the current paragraph.
|
TextBuilder |
styledLink(String text,
TextStyle ts,
String ref)
Create a styled link in the current paragraph.
|
TextBuilder |
styledLink(String text,
TextStyle ts,
Table table)
Create a styled link in the current paragraph.
|
TextBuilder |
styledLink(String text,
TextStyle ts,
URI uri)
Create a styled link in the current paragraph.
|
TextBuilder |
styledLink(String text,
TextStyle ts,
URL url)
Create a styled link in the current paragraph.
|
TextBuilder |
styledSpan(String text,
TextStyle ts)
Adds a TextStyle and text to the footer/header region specified by
region.
|
public static TextBuilder create()
public Text build()
public TextBuilder par()
public TextBuilder parContent(String text)
text - the textpublic TextBuilder parStyledContent(String text, TextStyle ts)
text - the textts - the stylepublic TextBuilder span(String text)
text - the textpublic TextBuilder link(String text, Table table)
text - the texttable - the destinationpublic TextBuilder styledLink(String text, TextStyle ts, Table table)
text - the textts - the styletable - the destinationpublic TextBuilder link(String text, File file)
text - the textfile - the destinationpublic TextBuilder styledLink(String text, TextStyle ts, File file)
text - the textts - the stylefile - the destinationpublic TextBuilder link(String text, URL url)
text - the texturl - the destinationpublic TextBuilder styledLink(String text, TextStyle ts, URL url)
text - the textts - the styleurl - the destinationpublic TextBuilder link(String text, URI uri)
text - the texturi - the destinationpublic TextBuilder styledLink(String text, TextStyle ts, URI uri)
text - the textts - the styleuri - the destinationpublic TextBuilder link(String text, String ref)
text - the textref - the destinationpublic TextBuilder styledLink(String text, TextStyle ts, String ref)
text - the textts - the styleref - the destinationpublic TextBuilder styledSpan(String text, TextStyle ts)
text - The string with the textts - The text style to be usedCopyright © 2016–2021. All rights reserved.