All Packages Class Hierarchy This Package Previous Next Index
Class net.strandberg.html.Anchor
java.lang.Object
|
+----net.strandberg.html.Anchor
- public class Anchor
- extends Object
- implements HTMLItem
The class Anchor is used to create HTML Anchors
Author: Mats Strandberg
$Revision: 0.0 $
- Author:
- Mats Strandberg
-
Anchor(String, String)
-
-
Anchor(String, String, String)
- Constructs a new Anchor which will be representing a hyperlink
according to the arguments given to the constructor.
-
Anchor(URL, String, String)
- Constructs a new Anchor which will be representing a hyperlink
according to the arguments given to the constructor.
-
toHTML()
-
Returns HTML code representing this Anchor.
Anchor
public Anchor(String url,
String linkText,
String statusText)
- Constructs a new Anchor which will be representing a hyperlink
according to the arguments given to the constructor.
- Parameters:
- url - the URL to which the link connects
- linkText - the clickable text to be presented in a browser
- statusText - the text that will be shown in the status bar in the
browser when the mouse is over the link
Anchor
public Anchor(URL url,
String linkText,
String statusText)
- Constructs a new Anchor which will be representing a hyperlink
according to the arguments given to the constructor.
- Parameters:
- url - the URL to which the link connects
- linkText - the clickable text to be presented in a browser
- statusText - the text that will be shown in the status bar in the
browser when the mouse is over the link
Anchor
public Anchor(String url,
String linkText)
toHTML
public String toHTML()
- Returns HTML code representing this Anchor.
All Packages Class Hierarchy This Package Previous Next Index