public class Link extends DocumentRange
| Constructor and Description |
|---|
Link(WebPage source)
Construct a link from the specified web page.
|
| Modifier and Type | Method and Description |
|---|---|
Address |
getTarget() |
void |
setTarget(Address theTarget)
Set the target of this link.
|
java.lang.String |
toString() |
addElement, getBegin, getClassAttribute, getElements, getEnd, getIdAttribute, getParent, getSource, getTextOnly, setBegin, setClassAttribute, setEnd, setIdAttribute, setParent, setSourcepublic Link(WebPage source)
source - The web page this link is from.public final Address getTarget()
public final void setTarget(Address theTarget)
theTarget - The link target.public final java.lang.String toString()
toString in class java.lang.Object