Class java.servlet.html.HtmlDefinitionList
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.servlet.html.HtmlDefinitionList

java.lang.Object
   |
   +----java.servlet.html.HtmlDefinitionList

public class HtmlDefinitionList
extends Object
implements HtmlElement
This class facilitates the creation of an Html Definition List.

Use an HtmlDefinitionList for Definition Lists


Constructor Index

 o HtmlDefinitionList()
Create an empty Definition List.

Method Index

 o add(String, HtmlElement)
Adds a String term and an HtmlElement definition to container.
 o add(String, String)
Adds definition pair (Term and Definition) to container.
 o toString()
 o wrap(String)
 o write(OutputStream)

Constructors

 o HtmlDefinitionList
  public HtmlDefinitionList()
Create an empty Definition List.

Methods

 o add
  public void add(String term,
                  HtmlElement def)
Adds a String term and an HtmlElement definition to container. If HtmlElement is an HtmlList add embeds the new list in this list.
Parameters:
term - the term of this definition
def - the definition of this term
 o add
  public void add(String term,
                  String def)
Adds definition pair (Term and Definition) to container. If HtmlElement is an HtmlList add embeds the new list in this list.
Parameters:
term - the term of this definition
def - the definition of this term
 o wrap
  public void wrap(String tags)
 o write
  public void write(OutputStream out) throws IOException
 o toString
  public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index