public class TextHyperlink extends Component
| Modifier and Type | Method and Description |
|---|---|
static TextHyperlink |
getInstanceof(TextAElement aElement)
Gets a TextHyperlink instance by an instance of
TextAElement . |
OdfElement |
getOdfElement()
Return the instance of OdfElement which presents this structure.
|
String |
getTextContent()
Get the text content of this hyperlink
|
URI |
getURI()
Return the URI of this hyperlink
|
void |
removeTextContent()
Remove the text content of this hyperlink.
|
void |
setTextContent(String text)
Set the text content of this hyperlink
|
void |
setURI(URI linkto)
Set the value of URI for this hyperlink
|
getComponentByElement, getOwnerDocument, registerComponent, unregisterComponentpublic static TextHyperlink getInstanceof(TextAElement aElement)
TextAElement .aElement - the instance of TextAElement.public OdfElement getOdfElement()
ComponentgetOdfElement in class Componentpublic URI getURI() throws URISyntaxException
URISyntaxExceptionpublic void setURI(URI linkto)
linkto - - the URI of this hyperlinkpublic String getTextContent()
public void setTextContent(String text)
text - - the text content to be setpublic void removeTextContent()
The other child elements except text content will not be removed.
Copyright © 2010–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.