PAJES 2.3.9

org.pajes.html
Class Table.Cell

java.lang.Object
  extended byorg.pajes.html.Tag
      extended byorg.pajes.html.TraversableElement
          extended byorg.pajes.html.Container
              extended byorg.pajes.html.TableContainer
                  extended byorg.pajes.html.Table.Cell
All Implemented Interfaces:
java.lang.Cloneable, HTML, java.io.Serializable, Traversable
Direct Known Subclasses:
Table.HeadingCell
Enclosing class:
Table

public class Table.Cell
extends TableContainer

Inner class representing a cell within the table.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.pajes.html.Tag
ON_CLICK_ATTRIBUTE, TAG_CLOSE, TAG_LEFT, TAG_RIGHT
 
Constructor Summary
  Table.Cell()
          Creates a table cell.
  Table.Cell(HTML cellContents, java.lang.String align, int columnsToSpan)
          Called by Table.addCell(java.lang.String) to add a cell.
protected Table.Cell(java.lang.String name)
          Creates a table cell.
 
Method Summary
 int getColumnSpan()
          Returns the number of columns that this column spans.
 int getRowSpan()
          Returns the number of rows that this column spans.
protected  void setAttribute(TagAttribute attribute)
          Adds the specified attribute.
 Table.Cell setColumnSpan(int columnsToSpan)
          Set the number of columns that this cell will span.
 Table.Cell setNoWordWrap()
          Set the no word wrap attribute of the cell to true.
 Table.Cell setRowSpan(int rowsToSpan)
          Set the number of rows that this cell will span.
 
Methods inherited from class org.pajes.html.TableContainer
getTable, setAlignment, setAlignmentCenter, setAlignmentLeft, setAlignmentRight, setBGColor, setHeight, setHeight, setVerticalAlignment, setVerticalAlignmentBottom, setVerticalAlignmentMiddle, setVerticalAlignmentTop, setWidth, setWidth, writeContent
 
Methods inherited from class org.pajes.html.Container
add, add, add, add, addContent, clear, clone, delete, delete, destroy, get, getContent, getContents, getPosition, insert, replace, set, setContent, setContent, size
 
Methods inherited from class org.pajes.html.TraversableElement
dump, dump, getAll, getFieldByName, getFirstFieldByName, getFirstTagByAttribute, getFirstTagByClass, getFirstTagByID, getFirstTagByName, getTagByAttribute, getTagByClass, getTagByID, getTagByName, setWritable
 
Methods inherited from class org.pajes.html.Tag
addAttribute, addAttributes, addAttributes, clearAttribute, clearAttributes, getAttribute, getAttributes, getAttributeSet, getContainer, getDocument, getId, getOnClickHandler, getOnDBLClickHandler, getOnKeyDownHandler, getOnKeyPressHandler, getOnKeyUpHandler, getOnMouseDownHandler, getOnMouseOutHandler, getOnMouseOverHandler, getOnMouseUpHandler, getStyle, getStyleSheetClass, getTagName, getTitle, getWritePermission, init, initAttributes, isWritable, isWritable, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributes, setAttributes, setContainer, setId, setOnClickHandler, setOnDBLClickHandler, setOnKeyDownHandler, setOnKeyPressHandler, setOnKeyUpHandler, setOnMouseDownHandler, setOnMouseOutHandler, setOnMouseOverHandler, setOnMouseUpHandler, setStyle, setStyleSheetClass, setTagName, setTitle, setWritable, setWriteAttributes, setWriteEndTag, setWritelnAfter, setWritelnAfterContent, setWritelnBefore, setWritelnBeforeContent, setWritePermission, toString, write
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Table.Cell

public Table.Cell()
Creates a table cell.


Table.Cell

public Table.Cell(HTML cellContents,
                  java.lang.String align,
                  int columnsToSpan)
Called by Table.addCell(java.lang.String) to add a cell.

Parameters:
cellContents - the content to place in the cell.
align - the horizontal alignment of the content within the cell.
columnsToSpan - the number of columns this content should span.

Table.Cell

protected Table.Cell(java.lang.String name)
Creates a table cell.

Parameters:
name - the tag name.
Method Detail

setColumnSpan

public Table.Cell setColumnSpan(int columnsToSpan)
Set the number of columns that this cell will span.

Parameters:
columnsToSpan - the number of columns this cell should span.
Returns:
the modified Cell object.

getColumnSpan

public int getColumnSpan()
Returns the number of columns that this column spans.

Returns:
the column span.

setNoWordWrap

public Table.Cell setNoWordWrap()
Set the no word wrap attribute of the cell to true.

Returns:
the modified Cell object.

setRowSpan

public Table.Cell setRowSpan(int rowsToSpan)
Set the number of rows that this cell will span.

Parameters:
rowsToSpan - the number of rows this cell should span.
Returns:
the modified Cell object.

getRowSpan

public int getRowSpan()
Returns the number of rows that this column spans.

Returns:
the row span.

setAttribute

protected void setAttribute(TagAttribute attribute)
Description copied from class: Tag
Adds the specified attribute.

Overrides:
setAttribute in class Tag
Parameters:
attribute - The attribute.
See Also:
Tag.setAttribute(org.pajes.html.TagAttribute)

PAJES 2.3.9

Copyright © 2002-2003 Viridian Pty Limited. All Rights Reserved.