|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aspose.pdf.elements.HyperLink com.aspose.pdf.elements.HyperLinkToWeb
public class HyperLinkToWeb
Represents a link in a Pdf document that links to web.
Constructor Summary | |
---|---|
HyperLinkToWeb(java.lang.String url)
Initializes a new instance of the HyperlinkToWeb class. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
java.lang.String |
getUrl()
Gets a string that indicates the link url. |
void |
setHyperLinkXML(org.w3c.dom.Element element)
Sets an Element objet as XML represents. |
void |
setUrl(java.lang.String url)
Sets a string that indicates the link url. |
Methods inherited from class com.aspose.pdf.elements.HyperLink |
---|
getLinkType |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HyperLinkToWeb(java.lang.String url)
[SampleCode] Pdf pdf = new Pdf(); Section sec1 = pdf.getSections().add(); Text text3 = new Text(sec1); Segment seg3 = text3.getSegments().add("a link to homepage of aspose pdf."); seg3.getTextInfo().setTextColor(Color.Blue); seg3.getTextInfo().setUnderLine(true); HyperLink linkToInternet = new HyperLinkToWeb(seg3,"http://www.aspose.com/Products/Aspose.Pdf/default.aspx"); seg3.setHyperLink(linkToInternet); sec1.getParagraphs().add(text3);
url
- The url of the hyperlink.Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class HyperLink
java.lang.CloneNotSupportedException
Object.clone()
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- The url to set.public void setHyperLinkXML(org.w3c.dom.Element element)
HyperLink
setHyperLinkXML
in class HyperLink
HyperLink.setHyperLinkXML(Element)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |