PAJES 3.0.21

org.pajes.html
Class Table.Cell

java.lang.Object
  extended by org.pajes.html.Tag
      extended by org.pajes.html.TraversableElement
          extended by org.pajes.html.Container
              extended by org.pajes.html.TableContainer
                  extended by org.pajes.html.Table.Cell
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, HTML, 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(boolean) 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, getParent, getStyle, getStyleSheetClass, getTagName, getTitle, getWritePermission, hasAttribute, init, initAttributes, isChildOf, isChildOf, 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, setParent, 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
 
Methods inherited from interface org.pajes.html.Traversable
isWritable
 
Methods inherited from interface org.pajes.html.HTML
getContainer, getDocument, getId, getParent, getWritePermission, isChildOf, isChildOf, setContainer, setParent, setWritePermission, write
 

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

getColumnSpan

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

Returns:
the column span.

getRowSpan

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

Returns:
the row span.

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.

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.

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 3.0.21

Copyright © 1998-2007 Viridian Pty Limited. All Rights Reserved.