2004.04.29


com.jdc.gui.html.tag
Class TableColumn

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

public class TableColumn
extends ComplexTag

TableColumn is used to create the HTML required to create a table column, i.e. data, in a browser, including the start tag, the column attributes, and the end tag as well as the actual table column data. It is the container for a cell in a table.

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

Nested Class Summary
static interface TableColumn.Format
          Format represents the Cascading Style Sheet (CSS) class styles for a table column.
 
Field Summary
 
Fields inherited from interface com.jdc.gui.html.MarkupLanguage
XHTML
 
Constructor Summary
TableColumn()
          Constructs a TableColumn object.
TableColumn(boolean format)
          Constructs a TableColumn object and sets the format status.
 
Method Summary
 String create(String data)
          Create and return the HTML required to create a table column in a browser.
 String endTag()
          Return a table column end tag.
 TableColumn setAlign(Align align)
          Set the table column alignment.
 TableColumn setClass(String value)
          Set the table column class.
 TableColumn setColumnSpan(int columns)
          Set the number of columns spanned.
 TableColumn setHeight(int height)
          Set the table column height.
 TableColumn setTitle(String text)
          Set the table column title.
 TableColumn setVerticalAlign(VerticalAlign verticalAlign)
          Set the table column vertical alignment.
 TableColumn setWidth(int width)
          Set the table column width.
 String startTag()
          Return a table column 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

TableColumn

public TableColumn()
Constructs a TableColumn object.


TableColumn

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

Method Detail

create

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

Overrides:
create in class ComplexTag
Returns:
String Table column.

startTag

public String startTag()
Return a table column start tag.

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

endTag

public String endTag()
Return a table column end tag.

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

setAlign

public TableColumn setAlign(Align align)
Set the table column alignment.

Returns:
TableColumn

setClass

public TableColumn setClass(String value)
Set the table column class.

Returns:
TableColumn

setColumnSpan

public TableColumn setColumnSpan(int columns)
Set the number of columns spanned.

Returns:
TableColumn

setHeight

public TableColumn setHeight(int height)
Set the table column height.

Returns:
TableColumn

setTitle

public TableColumn setTitle(String text)
Set the table column title.

Returns:
TableColumn

setVerticalAlign

public TableColumn setVerticalAlign(VerticalAlign verticalAlign)
Set the table column vertical alignment.

Returns:
TableColumn

setWidth

public TableColumn setWidth(int width)
Set the table column width.

Returns:
TableColumn

2004.04.29



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