Constructor and Description |
---|
Anchor(String text,
String href)
Default constructor with text and a href.
|
Modifier and Type | Method and Description |
---|---|
String |
getHref() |
String |
getText() |
void |
setAnchorText(String anchorText)
Set the anchor text
|
void |
setHref(String href)
Set the href
|
String |
toString() |
public void setAnchorText(String anchorText)
anchorText
- The text to set