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

Quick Search    Search Deep

com.arthurdo.parser
Class TableCell  view TableCell download TableCell.java

java.lang.Object
  extended bycom.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.

Version:
0.9 01/32/98

Field Summary
private  HtmlTag m_cellTag
           
private  int m_colspan
           
private  java.util.Vector m_content
           
private  int m_rowspan
           
private  boolean m_spanned
           
 
Constructor Summary
TableCell(int row, int col)
          Use this constructor to create a pseudo cell.
TableCell(int rowspan, int colspan, HtmlTag cellTag)
           
 
Method Summary
 void addElement(java.lang.Object obj)
           
 java.lang.Object elementAt(int index)
           
 HtmlTag getCellTag()
           
 java.lang.String getCharacterData()
           
 int getColSpan()
           
 int getRowSpan()
           
 boolean isSpanned()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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.

Method Detail

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()