public final class Link extends Object implements ParagraphElement
See: https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#anyURI and https://www.ietf .org/rfc/rfc2396.txt
Represents a link to a table, an URI, an URL or a custom ref.
| Modifier and Type | Method and Description |
|---|---|
void |
addEmbeddedStylesFromCell(StylesContainer stylesContainer)
Add the styles contained in this paragraph element to the styles container.
|
void |
addEmbeddedStylesFromFooterHeader(StylesContainer stylesContainer)
Add the styles contained in this paragraph element to the styles container.
|
void |
appendXMLContent(XMLUtil util,
Appendable appendable)
Write the XML format for this object.
|
static LinkBuilder |
builder(String text) |
static Link |
create(String text,
File file)
Deprecated.
|
static Link |
create(String text,
String relativeRef)
Deprecated.
|
static Link |
create(String text,
Table table)
Deprecated.
|
static Link |
create(String text,
TableRef tableRef)
Deprecated.
|
static Link |
create(String text,
TextStyle ts,
File file)
Deprecated.
|
static Link |
create(String text,
TextStyle ts,
String relativeRef)
Deprecated.
|
static Link |
create(String text,
TextStyle ts,
Table table)
Deprecated.
|
static Link |
create(String text,
TextStyle ts,
TableRef tableRef)
Deprecated.
|
static Link |
create(String text,
TextStyle ts,
URI uri)
Deprecated.
|
static Link |
create(String text,
TextStyle ts,
URL url)
Deprecated.
|
static Link |
create(String text,
URI uri)
Deprecated.
|
static Link |
create(String text,
URL url)
Deprecated.
|
boolean |
equals(Object o) |
int |
hashCode() |
public static LinkBuilder builder(String text)
text - the text content@Deprecated public static Link create(String text, TextStyle ts, Table table)
text - the text contentts - the styletable - the destination@Deprecated public static Link create(String text, Table table)
text - the text contenttable - the destination@Deprecated public static Link create(String text, TextStyle ts, String relativeRef)
text - the text contentts - the stylerelativeRef - the ref@Deprecated public static Link create(String text, String relativeRef)
text - the text contentrelativeRef - the ref@Deprecated public static Link create(String text, TextStyle ts, File file)
text - the text contentts - the stylefile - the file@Deprecated public static Link create(String text, File file)
text - the text contentfile - the file@Deprecated public static Link create(String text, TextStyle ts, URL url)
text - the text contentts - the styleurl - the url@Deprecated public static Link create(String text, URL url)
text - the text contenturl - the url@Deprecated public static Link create(String text, TextStyle ts, URI uri)
text - the text contentts - the styleuri - the uri@Deprecated public static Link create(String text, URI uri)
text - the text contenturi - the file@Deprecated public static Link create(String text, TableRef tableRef)
text - the text contenttableRef - the table ref@Deprecated public static Link create(String text, TextStyle ts, TableRef tableRef)
text - the text contentts - the styletableRef - the table refpublic void appendXMLContent(XMLUtil util, Appendable appendable) throws IOException
XMLConvertibleappendXMLContent in interface XMLConvertibleutil - a helper objectappendable - the appendable to append data toIOException - if the style can't be addedpublic void addEmbeddedStylesFromFooterHeader(StylesContainer stylesContainer)
ParagraphElementaddEmbeddedStylesFromFooterHeader in interface ParagraphElementstylesContainer - the styles containerpublic void addEmbeddedStylesFromCell(StylesContainer stylesContainer)
ParagraphElementaddEmbeddedStylesFromCell in interface ParagraphElementstylesContainer - the styles containerCopyright © 2016–2021. All rights reserved.