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
-
HtmlDefinitionList()
- Create an empty Definition List.
-
add(String, HtmlElement)
- Adds a String term and an HtmlElement definition to container.
-
add(String, String)
- Adds definition pair (Term and Definition) to container.
-
toString()
-
-
wrap(String)
-
-
write(OutputStream)
-
HtmlDefinitionList
public HtmlDefinitionList()
- Create an empty Definition List.
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
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
wrap
public void wrap(String tags)
write
public void write(OutputStream out) throws IOException
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index