PAJES 2.3.9

org.pajes.html
Class Table.Row

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

public Table.Row()
Default constructor

Method Detail

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.

add

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

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)

PAJES 2.3.9

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