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

Constructor Index

 o Anchor(String, String)
 o Anchor(String, String, String)
Constructs a new Anchor which will be representing a hyperlink according to the arguments given to the constructor.
 o Anchor(URL, String, String)
Constructs a new Anchor which will be representing a hyperlink according to the arguments given to the constructor.

Method Index

 o toHTML()
Returns HTML code representing this Anchor.

Constructors

 o 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
 o 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
 o Anchor
 public Anchor(String url,
               String linkText)

Methods

 o toHTML
 public String toHTML()
Returns HTML code representing this Anchor.


All Packages  Class Hierarchy  This Package  Previous  Next  Index