com.inet.html.views
Class TableView.TableCellInfo

java.lang.Object
  extended by com.inet.html.views.TableView.TableCellInfo
Enclosing class:
TableView

public class TableView.TableCellInfo
extends java.lang.Object

Contains informations about a table cell. Represents "TD" / "TH" / "table-cell"


Constructor Summary
TableView.TableCellInfo(javax.swing.text.Element elem, TableView.TableRowInfo parent)
          Creates a table cell.
 
Method Summary
 int getColspan()
          Returns the number of columns spanned by this cell, usually 1
 BoxView getContent()
          Returns the view which displays the content of this cell
 int getRowspan()
          Returns the number of rows spanned by this cell, usually 1
 void setColspan(int span)
          Sets the number of columns spanned by this cell.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TableView.TableCellInfo

public TableView.TableCellInfo(javax.swing.text.Element elem,
                               TableView.TableRowInfo parent)
Creates a table cell. A table cell info requires a row as parent

Parameters:
elem - the element, which defines this table cell
parent - the parent structure element
Method Detail

getColspan

public int getColspan()
Returns the number of columns spanned by this cell, usually 1

Returns:
the number of columns spanned by this cell, usually 1

setColspan

public void setColspan(int span)
Sets the number of columns spanned by this cell.
WARNING: This should only be used, if there are errors in the table model! Normal cell should get their original span to maintain the layout

Parameters:
span - the number of columns spanned by this cell

getRowspan

public int getRowspan()
Returns the number of rows spanned by this cell, usually 1

Returns:
the number of rows spanned by this cell, usually 1

getContent

public BoxView getContent()
Returns the view which displays the content of this cell

Returns:
the view which displays the content of this cell

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object