PAJES 3.0.21

org.pajes.html
Class Table.Row

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.Row
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, HTML, Traversable
Enclosing class:
Table

public class Table.Row
extends TableContainer

Inner class representing a row 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.Row()
          Default constructor
 
Method Summary
 Traversable add(HTML htmlObject)
          Adds an HTML object to the current container
 Table.Cell addCell(HTML content)
          Adds a cell to the row.
 Table.Cell addCell(java.lang.String content)
          Adds a cell to the row.
 Container delete(int position)
          Deletes the HTML object at a specified position in the container.
 Table.Cell getCell(int index)
          Returns the specified cell within the row.
 Table.Cell getCell(java.lang.String id)
          Returns the specified cell within the row.
 Table.Cell[] getCells()
          Returns the cells that this row contains.
 Table.Cell getLogicalCell(int index)
          Returns the specified logical cell, based on the column span of each cell, within the row.
 int getLogicalCellCount()
          Returns the number of cells in this row, based on the column span of the cells added to it.
 int getMaxRowSpan()
          Returns the maximum number of rows any cell in this row will span.
 Container insert(HTML htmlObject, int position)
          Inserts an HTML object at a specified position in the container.
 Container replace(Container container)
          Deletes all the objects in this container, and replaces them with the cloned objects from another container.
 
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, addContent, clear, clone, delete, destroy, get, getContent, getContents, getPosition, 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, 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.Row

public Table.Row()
Default constructor

Method Detail

add

public Traversable add(HTML htmlObject)
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:
htmlObject - - the Object to add (eg. doc.add(new htmlBody);)
Returns:
the modified Container object;
See Also:
Container.add(org.pajes.html.HTML)

addCell

public Table.Cell addCell(HTML content)
Adds a cell to the row.

Parameters:
content - the content to place in the cell.
Returns:
the new Cell object.

addCell

public Table.Cell addCell(java.lang.String content)
Adds a cell to the row.

Parameters:
content - the content to place in the cell.
Returns:
the new Cell object.

delete

public Container delete(int position)
Description copied from class: Container
Deletes the HTML object at a specified position in the container.

Overrides:
delete in class Container
Parameters:
position - the position in the container of the object to be deleted.
Returns:
the modified Container object.
See Also:
Container.delete(int)

getCell

public Table.Cell getCell(int index)
Returns the specified cell within the row.

Parameters:
index - the zero-based index number of the cell within the row.
Returns:
the requested cell.

getCell

public Table.Cell getCell(java.lang.String id)
Returns the specified cell within the row.

Parameters:
id - the id attribute of the required cell.
Returns:
the requested cell, or null if the requested cell is not in the row.

getCells

public Table.Cell[] getCells()
Returns the cells that this row contains.

Returns:
an array of Cells.

getLogicalCell

public Table.Cell getLogicalCell(int index)
Returns the specified logical cell, based on the column span of each cell, within the row. It does not, however, take into consideration the impact of row spans in previous rows in the table.

Parameters:
index - the zero-based index number of the logical cell within the row.
Returns:
the requested cell.

getLogicalCellCount

public int getLogicalCellCount()
Returns the number of cells in this row, based on the column span of the cells added to it. This number may not be the same as that returned by Container.size(), if one or more cells span more than one physical column.

Returns:
the number of cells in the row.

getMaxRowSpan

public int getMaxRowSpan()
Returns the maximum number of rows any cell in this row will span.

Returns:
the maximum rowspan in this row.

insert

public Container insert(HTML htmlObject,
                        int position)
Description copied from class: Container
Inserts an HTML object at a specified position in the container.

Overrides:
insert in class Container
Parameters:
htmlObject - - the Object to add (eg. doc.add(new htmlBody);)
position - - the position to place the html object
Returns:
the modified Container object.
See Also:
Container.insert(org.pajes.html.HTML, int)

replace

public Container replace(Container container)
Description copied from class: Container
Deletes all the objects in this container, and replaces them with the cloned objects from another container.

Overrides:
replace in class Container
Parameters:
container - the Container from which objects are to be copied.
Returns:
the modified Container object.
See Also:
Container.replace(org.pajes.html.Container)

PAJES 3.0.21

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