FileDocCategorySizeDatePackage
HTMLTable.javaAPI DocAndroid 1.5 API3649Wed May 06 22:41:16 BST 2009com.vladium.emma.report.html.doc

HTMLTable

public final class HTMLTable extends IElement.Factory.ElementImpl
author
Vlad Roubtsov, (C) 2003

Fields Summary
private IElement
m_caption
Constructors Summary
public HTMLTable(String width, String border, String cellpadding, String cellspacing)

        super (Tag.TABLE, AttributeSet.create ());
        
        final AttributeSet attrs = getAttributes ();
        
        if (width != null) attrs.set (Attribute.WIDTH, width);
        if (border != null) attrs.set (Attribute.BORDER, border);
        if (cellpadding != null) attrs.set (Attribute.CELLPADDING, cellpadding);
        if (cellspacing != null) attrs.set (Attribute.CELLSPACING, cellspacing);
        
        //m_rows = new LinkedList (); 
    
Methods Summary
public voidemit(HTMLWriter out)

        if (m_caption != null)
        {
            add (0, m_caption);
        }
        
        super.emit(out);
    
public com.vladium.emma.report.html.doc.HTMLTable$IRownewRow()

        final Row row = new Row (false);
        add (row);
        
        return row;
    
public com.vladium.emma.report.html.doc.HTMLTable$IRownewTitleRow()

        final Row row = new Row (true);
        add (row);
        
        return row;
    
public voidsetCaption(java.lang.String align, java.lang.String text, boolean nbsp)

        m_caption = IElement.Factory.create (Tag.CAPTION);
        
        m_caption.getAttributes ().set (Attribute.ALIGN, align);
        m_caption.setText (text, nbsp);