|
||
| Home Products Purchase Downloads Demos Forums Blogs Ticket Wiki API Corporate | ||
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aspose.pdf.elements.PdfElementBase
com.aspose.pdf.elements.HyperLink
com.aspose.pdf.elements.HyperLinkToWeb
Represents a link in a Pdf document that links to web.
| Constructor Summary | |
HyperLinkToWeb(Segment segment,
java.lang.String url)
Initializes a new instance of the HyperlinkToWeb class. |
|
| Method Summary | |
java.lang.Object |
clone()
Clone an object. |
org.w3c.dom.Element |
getDOMElement()
Gets a DOM representation of the pdf element. |
java.lang.String |
getUrl()
Gets a string that indicates the link url. |
void |
setUrl(java.lang.String url)
Sets a string that indicates the link url. |
| Methods inherited from class com.aspose.pdf.elements.PdfElementBase |
getElementFactory, getID, getNameIndex, setID |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HyperLinkToWeb(Segment segment,
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);
segment - The segment that owns the hyperlink.| Method Detail |
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
PdfElementBase
clone in class HyperLinkjava.lang.CloneNotSupportedExceptionjava.lang.Object#clone()
public org.w3c.dom.Element getDOMElement()
throws AsposeBaseException
PdfElementBase
getDOMElement in class HyperLinkAsposeBaseExceptionPdfElementBase.getDOMElement()public java.lang.String getUrl()
public void setUrl(java.lang.String url)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||