com.arctorus.documents
Class Hyperlink

java.lang.Object
  extended by com.arctorus.documents.Hyperlink

public final class Hyperlink
extends java.lang.Object

Links to external sources or to another page in a document.


Field Summary
static Hyperlink NULL
           
 
Constructor Summary
Hyperlink(Page page)
          Create new link to another page of a document.
Hyperlink(java.lang.String target)
          Create new hyperlink with URL.
 
Method Summary
 HyperlinkType getHyperlinkType()
          Get hyperlink type.
 void setTarget(Page page)
          Set hyperlink to another page in a document.
 void setTarget(java.lang.String target)
          Set hyperlink with URL.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL

public static final Hyperlink NULL
Constructor Detail

Hyperlink

public Hyperlink(java.lang.String target)
Create new hyperlink with URL.

Parameters:
target - URL, e.g. "http://www.arctorus.com"

Hyperlink

public Hyperlink(Page page)
Create new link to another page of a document.

Parameters:
page - page of a document.
Method Detail

getHyperlinkType

public HyperlinkType getHyperlinkType()
Get hyperlink type.


setTarget

public void setTarget(java.lang.String target)
Set hyperlink with URL.

Parameters:
target - URL, e.g. "http://www.arctorus.com"

setTarget

public void setTarget(Page page)
Set hyperlink to another page in a document.

Parameters:
page - page of a document.