java.lang.Object
com.arthurdo.parser.TableCell
- public class TableCell
- extends java.lang.Object
TableCell repesents a table cell. Normally its elements are
a collection of markup and text data. However, if isSpanned()
is true, then it is a pseudo cell, a place holder cell that
contains the location of the actual cell. Pseudo cells
have no elements, i.e. size() returns zero. An example
of a pseudo cell would be:
<table>
<tr><td colspan=2>abc
</table>
In this case, the cell at coordinate [0,0] is a real cell
while [0,1] is a pseudo cell.
- 02/09/98 Dr. Jaron Collis, added getCharacterData() which
returns only the cell's character data, without any markup.
- Version:
- 0.9 01/32/98
|
Constructor Summary |
TableCell(int row,
int col)
Use this constructor to create a pseudo cell. |
TableCell(int rowspan,
int colspan,
HtmlTag cellTag)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_rowspan
private int m_rowspan
m_colspan
private int m_colspan
m_content
private java.util.Vector m_content
m_cellTag
private HtmlTag m_cellTag
m_spanned
private boolean m_spanned
TableCell
public TableCell(int rowspan,
int colspan,
HtmlTag cellTag)
TableCell
public TableCell(int row,
int col)
- Use this constructor to create a pseudo cell. This is a
placeholder for a cell that has been spanned.
Call getRowSpan() and getColumnSpan() to locate
the coordinate of the actual cell.
isSpanned
public boolean isSpanned()
getRowSpan
public int getRowSpan()
getColSpan
public int getColSpan()
getCellTag
public HtmlTag getCellTag()
size
public int size()
addElement
public void addElement(java.lang.Object obj)
elementAt
public java.lang.Object elementAt(int index)
getCharacterData
public java.lang.String getCharacterData()