2004.04.29


com.jdc.gui.html.tag
Class Table

java.lang.Object
  |
  +--com.jdc.xml.ComplexTag
        |
        +--com.jdc.gui.html.ComplexTag
              |
              +--com.jdc.gui.html.tag.Table
All Implemented Interfaces:
MarkupLanguage, Serializable

public class Table
extends ComplexTag

Table is used to create the HTML required to create a table in a browser, including the start tag, the table attributes, and the end tag as well as the actual table data.

Version:
1.0
Author:
Jay Damon
See Also:
TableRow, TableColumn, Serialized Form

Field Summary
 
Fields inherited from interface com.jdc.gui.html.MarkupLanguage
XHTML
 
Constructor Summary
Table()
          Constructs a Table.
Table(boolean format)
          Constructs a Table and sets the format status.
 
Method Summary
 String create(String table)
          Create and return the HTML required to create a table in a browser.
 String endTag()
          Return an table end tag.
 Table setAlign(Align align)
          Set the table alignment.
 Table setFrame(Frame frame)
          Set the table frame.
 Table setHeight(int height)
          Set the table height.
 Table setWidth(int width)
          Set the table width.
 String startTag()
          Return a table start tag.
 
Methods inherited from class com.jdc.gui.html.ComplexTag
addAttribute, create, create, endTag, setFormat, setIdentifier, startTag
 
Methods inherited from class com.jdc.xml.ComplexTag
addAttribute, create, getAttributes, getBody, getIdentifier, setBody, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Table

public Table()
Constructs a Table.


Table

public Table(boolean format)
Constructs a Table and sets the format status.

Method Detail

create

public String create(String table)
Create and return the HTML required to create a table in a browser.

Overrides:
create in class ComplexTag
Returns:
String Table.

startTag

public String startTag()
Return a table start tag.

Overrides:
startTag in class ComplexTag
Returns:
String Table start tag.

endTag

public String endTag()
Return an table end tag.

Overrides:
endTag in class ComplexTag
Returns:
String Table end tag.

setAlign

public Table setAlign(Align align)
Set the table alignment.

Returns:
Table

setFrame

public Table setFrame(Frame frame)
Set the table frame.

Returns:
Table

setHeight

public Table setHeight(int height)
Set the table height.

Returns:
Table

setWidth

public Table setWidth(int width)
Set the table width.

Returns:
Table

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.