All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vnet.markup.html.A

java.lang.Object
   |
   +----vnet.markup.Element
           |
           +----vnet.markup.html.A

public class A
extends Element
The anchor Element for an HTML document.


Variable Index

 o ATTR_HREF
The HREF Attribute.
 o NAME
The element's name.

Constructor Index

 o A()
Constructs a new, empty anchor element.
 o A(String, String)
Constructs a new, empty anchor element with the given href and text.

Method Index

 o addText(char[])
Adds text to the anchor.
 o addText(char[], int, int)
Adds text to the anchor from a subarray of a character array.
 o addText(String)
Adds text to the anchor.

Variables

 o NAME
 public static final String NAME
The element's name.

 o ATTR_HREF
 public static final String ATTR_HREF
The HREF Attribute.

Constructors

 o A
 public A()
Constructs a new, empty anchor element.

 o A
 public A(String text,
          String href)
Constructs a new, empty anchor element with the given href and text.

Parameters:
text - anchor text
href - the URI the anchor links to

Methods

 o addText
 public void addText(String text)
Adds text to the anchor.

Parameters:
text - the String to be added.
 o addText
 public void addText(char text[])
Adds text to the anchor.

Parameters:
text - the character array to be added.
 o addText
 public void addText(char text[],
                     int offset,
                     int count)
Adds text to the anchor from a subarray of a character array.

Parameters:
text - the source character array.
offset - the initial offset
count - the length

All Packages  Class Hierarchy  This Package  Previous  Next  Index