com.aspose.pdf.elements
Class HyperLinkToWeb

java.lang.Object
  extended by com.aspose.pdf.elements.HyperLink
      extended by com.aspose.pdf.elements.HyperLinkToWeb

public class HyperLinkToWeb
extends HyperLink

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

HyperLinkToWeb

public HyperLinkToWeb(java.lang.String url)
Initializes a new instance of the HyperlinkToWeb class.

 [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);
 

Parameters:
url - The url of the hyperlink.
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class HyperLink
Throws:
java.lang.CloneNotSupportedException
See Also:
Object.clone()

getUrl

public java.lang.String getUrl()
Gets a string that indicates the link url.


setUrl

public void setUrl(java.lang.String url)
Sets a string that indicates the link url.

Parameters:
url - The url to set.

setHyperLinkXML

public void setHyperLinkXML(org.w3c.dom.Element element)
Description copied from class: HyperLink
Sets an Element objet as XML represents.

Overrides:
setHyperLinkXML in class HyperLink
See Also:
HyperLink.setHyperLinkXML(Element)