All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.as400.util.html.HTMLTableHeader

java.lang.Object
   |
   +----com.ibm.as400.util.html.HTMLTableCell
           |
           +----com.ibm.as400.util.html.HTMLTableHeader

public class HTMLTableHeader
extends HTMLTableCell
The HTMLTableHeader represents an HTML table header tag.

This example creates an HTMLTableHeader and displays the tag output.

  HTMLTableHeader header = new HTMLTableHeader();
  header.setHorizontalAlignment(HTMLTableHeader.CENTER);
  HTMLText headerText = new HTMLText("Customer Name");
  header.setElement(headerText);
  System.out.println(header.getTag());
  
Here is the output of the tag:
  <th align="center">Customer Name</th>
  


Constructor Index

 o HTMLTableHeader()
Constructs a default HTMLTableHeader object.
 o HTMLTableHeader(HTMLTagElement)
Constructs an HTMLTableHeader object with the specified data element.

Method Index

 o getTag()
Returns the table header tag.
 o getTag(HTMLTagElement)
Returns the table header tag with the specified data element.
 o toString()
Returns the HTML table header tag.

Constructors

 o HTMLTableHeader
 public HTMLTableHeader()
Constructs a default HTMLTableHeader object.

 o HTMLTableHeader
 public HTMLTableHeader(HTMLTagElement element)
Constructs an HTMLTableHeader object with the specified data element.

Parameters:
element - An HTMLTagElement object containing the data.

Methods

 o getTag
 public String getTag()
Returns the table header tag.

Returns:
The HTML tag.
Overrides:
getTag in class HTMLTableCell
 o getTag
 public String getTag(HTMLTagElement element)
Returns the table header tag with the specified data element.

Returns:
The HTML tag.
Overrides:
getTag in class HTMLTableCell
 o toString
 public String toString()
Returns the HTML table header tag.

Returns:
The header tag.
Overrides:
toString in class HTMLTableCell

All Packages  Class Hierarchy  This Package  Previous  Next  Index