FileDocCategorySizeDatePackage
Table.javaAPI DocApache Poi 3.0.11778Mon Jan 01 18:55:30 GMT 2007org.apache.poi.hwpf.usermodel

Table

public class Table extends Range

Fields Summary
ArrayList
_rows
Constructors Summary
Table(int startIdx, int endIdx, Range parent, int levelNum)

    super(startIdx, endIdx, Range.TYPE_PARAGRAPH, parent);
    _rows = new ArrayList();
    int numParagraphs = numParagraphs();

    int rowStart = 0;
    int rowEnd = 0;

    while (rowEnd < numParagraphs)
    {
      Paragraph p = getParagraph(rowEnd);
      rowEnd++;
      if (p.isTableRowEnd() && p.getTableLevel() == levelNum)
      {
        _rows.add(new TableRow(rowStart, rowEnd, this, levelNum));
        rowStart = rowEnd;
      }
    }
  
Methods Summary
public org.apache.poi.hwpf.usermodel.TableRowgetRow(int index)

    return (TableRow)_rows.get(index);
  
public intnumRows()

    return _rows.size();
  
public inttype()

    return TYPE_TABLE;