Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.lutris.html
Class HtmlTable  view HtmlTable download HtmlTable.java

java.lang.Object
  extended bycom.lutris.html.HtmlTable

public class HtmlTable
extends java.lang.Object

This utility class is used to compose an HTML table.

Version:
1.0 (File $Revision: 1.8.12.1 $)

Field Summary
private  java.lang.String bgColor
           
private  int borderWidth
           
private  java.lang.String caption
           
private  int cellPadding
           
private  int cellSpacing
           
private  java.lang.String frame
           
private  int percentWidth
           
private  java.util.Vector rows
           
private  java.lang.String rules
           
private  java.lang.Object thead
           
 
Constructor Summary
HtmlTable()
           
HtmlTable(java.lang.String caption)
           
 
Method Summary
 void addRow(HtmlTableRow row)
           
 void addRow(java.lang.String row)
           
 void setBackgroundColor(java.lang.String bgColor)
           
 void setBorderWidth(int pixels)
           
 void setCaption(java.lang.String caption)
           
 void setCellPadding(int size)
           
 void setCellSpacing(int size)
           
 void setFrame(java.lang.String frame)
           
 void setHeader(java.lang.Object row)
           
 void setPercentWidth(int percent)
           
 void setRules(java.lang.String rules)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

caption

private java.lang.String caption

percentWidth

private int percentWidth

borderWidth

private int borderWidth

cellPadding

private int cellPadding

cellSpacing

private int cellSpacing

bgColor

private java.lang.String bgColor

rules

private java.lang.String rules

frame

private java.lang.String frame

rows

private java.util.Vector rows

thead

private java.lang.Object thead
Constructor Detail

HtmlTable

public HtmlTable()

HtmlTable

public HtmlTable(java.lang.String caption)
Method Detail

setBorderWidth

public void setBorderWidth(int pixels)

addRow

public void addRow(HtmlTableRow row)

addRow

public void addRow(java.lang.String row)

setHeader

public void setHeader(java.lang.Object row)

setPercentWidth

public void setPercentWidth(int percent)

setCaption

public void setCaption(java.lang.String caption)

setCellSpacing

public void setCellSpacing(int size)

setCellPadding

public void setCellPadding(int size)

setBackgroundColor

public void setBackgroundColor(java.lang.String bgColor)

setFrame

public void setFrame(java.lang.String frame)

setRules

public void setRules(java.lang.String rules)

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).