PAJES 3.0.21

org.pajes.html
Class Table.RowContainer

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.RowContainer
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, HTML, Traversable
Direct Known Subclasses:
Table.Body, Table.Foot, Table.Head
Enclosing class:
Table

protected abstract class Table.RowContainer
extends TableContainer

Abstract super-class of all body sections that contain rows.

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.RowContainer(java.lang.String name)
          Creates a table body body sections that contain rows.
 
Method Summary
 Traversable add(HTML html)
          Adds an HTML object to the current container
 Container add(java.lang.String htmlCodeOrString)
          Adds a string or piece of HTML code to the current container.
 Container add(java.lang.String htmlCodeOrString, boolean suppressNewLine)
          Adds a string or piece of HTML code to the current container
 Container add(java.lang.String htmlCodeOrString, boolean suppressNewLine, boolean encode)
          Adds a string or piece of HTML code to the current container
 void addContent(java.lang.String content)
          Adds the specified String to this container.
 Table.Row addRow()
          Adds a row into this table section.
 Table.Cell getCell(int row, int col)
          Returns the reference to the cell at the specified row and column position.
 void setContent(HTML html)
          Clears the contents of this container, and then adds the specified HTML as the only content.
 void setContent(java.lang.String content)
          Clears the contents of this container, and then adds the specified String as the only content.
 
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
clear, clone, delete, delete, destroy, get, getContent, getContents, getPosition, insert, replace, set, 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, 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.RowContainer

public Table.RowContainer(java.lang.String name)
Creates a table body body sections that contain rows.

Parameters:
name - the tag name (TBODY, THEAD or TFOOT).
Method Detail

add

public Traversable add(HTML html)
Description copied from class: Container
Adds an HTML object to the current container

Specified by:
add in interface Traversable
Overrides:
add in class Container
Parameters:
html - - the Object to add (eg. doc.add(new htmlBody);)
Returns:
the modified Container object;
See Also:
Container.add(org.pajes.html.HTML)

add

public Container add(java.lang.String htmlCodeOrString)
Description copied from class: Container
Adds a string or piece of HTML code to the current container.

Overrides:
add in class Container
Returns:
the modified Container object.
See Also:
Container.add(java.lang.String)

add

public Container add(java.lang.String htmlCodeOrString,
                     boolean suppressNewLine)
Description copied from class: Container
Adds a string or piece of HTML code to the current container

Overrides:
add in class Container
suppressNewLine - suppresses a new line after the text.
Returns:
the modified Container object.
See Also:
Container.add(java.lang.String, boolean)

add

public Container add(java.lang.String htmlCodeOrString,
                     boolean suppressNewLine,
                     boolean encode)
Description copied from class: Container
Adds a string or piece of HTML code to the current container

Overrides:
add in class Container
suppressNewLine - suppresses a new line after the text.
encode - true if any special HTML characters in the text are to be converted to their equivalent HTML named character entity, or false if no changes are to be made to the text.
Returns:
the modified Container object.
See Also:
Container.add(java.lang.String, boolean, boolean)

addContent

public void addContent(java.lang.String content)
Description copied from class: Container
Adds the specified String to this container.

Specified by:
addContent in interface HTML
Overrides:
addContent in class Container
Parameters:
content - the additonal content for this Container.
See Also:
HTML.addContent(java.lang.String)

addRow

public Table.Row addRow()
Adds a row into this table section.

Returns:
the new Row object.

getCell

public Table.Cell getCell(int row,
                          int col)
Returns the reference to the cell at the specified row and column position.

Parameters:
row - the zero-based index of the row to access.
col - the zero-based index of the column to access on the specified row.
Returns:
the Cell.

setContent

public void setContent(HTML html)
Description copied from class: Container
Clears the contents of this container, and then adds the specified HTML as the only content.

Overrides:
setContent in class Container
Parameters:
html - the content of this Container.
See Also:
Tag.setContent(org.pajes.html.HTML)

setContent

public void setContent(java.lang.String content)
Description copied from class: Container
Clears the contents of this container, and then adds the specified String as the only content.

Specified by:
setContent in interface HTML
Overrides:
setContent in class Container
Parameters:
content - the content of this Container.
See Also:
HTML.setContent(java.lang.String)

PAJES 3.0.21

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