|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.odftoolkit.simple.Component
org.odftoolkit.simple.text.TextHyperlink
public class TextHyperlink
This class represents a text hyperlink in ODF document. It provides convenient methods to get/set/remove the URI of hyperlinks.
Method Summary | |
---|---|
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 |
Methods inherited from class org.odftoolkit.simple.Component |
---|
getComponentByElement, getOwnerDocument, registerComponent, unregisterComponent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TextHyperlink getInstanceof(TextAElement aElement)
TextAElement
.
aElement
- the instance of TextAElement.
public OdfElement getOdfElement()
Component
getOdfElement
in class Component
public URI getURI() throws URISyntaxException
URISyntaxException
public 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |