com.vladium.emma.report.html.doc
Class HTMLTable

java.lang.Object
  extended bycom.vladium.emma.report.html.doc.ISimpleElement.Factory.SimpleElementImpl
      extended bycom.vladium.emma.report.html.doc.IElement.Factory.ElementImpl
          extended bycom.vladium.emma.report.html.doc.HTMLTable
All Implemented Interfaces:
IContent, IElement, IElementList, ISimpleElement

public final class HTMLTable
extends IElement.Factory.ElementImpl

Author:
Vlad Roubtsov, (C) 2003

Nested Class Summary
private static class HTMLTable.Cell
           
static interface HTMLTable.ICell
           
static interface HTMLTable.IRow
           
private static class HTMLTable.Row
           
 
Nested classes inherited from class com.vladium.emma.report.html.doc.IElement
IElement.Factory
 
Field Summary
protected  AttributeSet m_attrs
           
private  IElement m_caption
           
protected  java.util.List m_contents
           
protected  Tag m_tag
           
 
Constructor Summary
HTMLTable(java.lang.String width, java.lang.String border, java.lang.String cellpadding, java.lang.String cellspacing)
           
 
Method Summary
 IElementList add(IContent content)
           
 IElementList add(int index, IContent content)
           
 void emit(HTMLWriter out)
           
 AttributeSet getAttributes()
           
 Tag getTag()
           
 HTMLTable.IRow newRow()
           
 HTMLTable.IRow newTitleRow()
           
 void setCaption(java.lang.String align, java.lang.String text, boolean nbsp)
           
 ISimpleElement setClass(java.lang.String classID)
           
 IElement setText(java.lang.String text, boolean nbsp)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.vladium.emma.report.html.doc.ISimpleElement
getAttributes, getTag, setClass
 

Field Detail

m_caption

private IElement m_caption

m_contents

protected final java.util.List m_contents

m_tag

protected final Tag m_tag

m_attrs

protected final AttributeSet m_attrs
Constructor Detail

HTMLTable

public HTMLTable(java.lang.String width,
                 java.lang.String border,
                 java.lang.String cellpadding,
                 java.lang.String cellspacing)
Method Detail

setCaption

public void setCaption(java.lang.String align,
                       java.lang.String text,
                       boolean nbsp)

newTitleRow

public HTMLTable.IRow newTitleRow()

newRow

public HTMLTable.IRow newRow()

emit

public void emit(HTMLWriter out)
Specified by:
emit in interface IContent
Overrides:
emit in class IElement.Factory.ElementImpl

toString

public java.lang.String toString()
Overrides:
toString in class ISimpleElement.Factory.SimpleElementImpl

add

public IElementList add(IContent content)
Specified by:
add in interface IElementList

add

public IElementList add(int index,
                        IContent content)
Specified by:
add in interface IElementList

size

public int size()
Specified by:
size in interface IElementList

setText

public IElement setText(java.lang.String text,
                        boolean nbsp)
Specified by:
setText in interface IElement

getTag

public Tag getTag()
Specified by:
getTag in interface ISimpleElement

setClass

public ISimpleElement setClass(java.lang.String classID)
Specified by:
setClass in interface ISimpleElement

getAttributes

public AttributeSet getAttributes()
Specified by:
getAttributes in interface ISimpleElement