PAJES 3.0.21

org.pajes.html
Class TableContainer

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
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, HTML, Traversable
Direct Known Subclasses:
Table, Table.Cell, Table.ColumnGroup, Table.Row, Table.RowContainer

public abstract class TableContainer
extends Container

This class provides the common methods for the Table object and all its inner classes.

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
protected TableContainer(java.lang.String name)
          Creates a new TableContainer object.
 
Method Summary
 Table getTable()
          Returns the table within which this container exists.
 TableContainer setAlignment(java.lang.String alignment)
          Sets the alignment of the object within the next outermost container.
 TableContainer setAlignmentCenter()
          Centres the object within the next outermost container.
 TableContainer setAlignmentLeft()
          Left aligns the object within the next outermost container.
 TableContainer setAlignmentRight()
          Right aligns the object within the next outermost container.
 TableContainer setBGColor(Color color)
          Sets the background color of the table object.
 TableContainer setHeight(int height)
          Sets the height of the table object.
 TableContainer setHeight(java.lang.String height)
          Sets the height of the table object.
 TableContainer setVerticalAlignment(java.lang.String alignment)
          Set the vertical alignment of the content in the cell.
 TableContainer setVerticalAlignmentBottom()
          Aligns the content vertically at the bottom of the cell.
 TableContainer setVerticalAlignmentMiddle()
          Aligns the content vertically in middle of the cell.
 TableContainer setVerticalAlignmentTop()
          Aligns the content vertically at the top of the cell.
 TableContainer setWidth(int width)
          Sets the width of the table object.
 TableContainer setWidth(java.lang.String width)
          Sets the width of the table object.
protected  void writeContent(Browser browser)
          Loops through the container and gets each object contained within it and invokes that objects write method if this object is writable.
 
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, 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

TableContainer

protected TableContainer(java.lang.String name)
Creates a new TableContainer object.

Parameters:
name - the tag name.
Method Detail

getTable

public Table getTable()
Returns the table within which this container exists.

Returns:
the table.

setAlignment

public TableContainer setAlignment(java.lang.String alignment)
Sets the alignment of the object within the next outermost container.

Parameters:
alignment - Left, Center or Right
Returns:
the modified TableContainer object.
Throws:
TagException - if an invalid alignment is specified.

setAlignmentCenter

public TableContainer setAlignmentCenter()
Centres the object within the next outermost container.

Returns:
the modified TableContainer object.

setAlignmentLeft

public TableContainer setAlignmentLeft()
Left aligns the object within the next outermost container.

Returns:
the modified TableContainer object.

setAlignmentRight

public TableContainer setAlignmentRight()
Right aligns the object within the next outermost container.

Returns:
the modified TableContainer object.

setBGColor

public TableContainer setBGColor(Color color)
Sets the background color of the table object.

Parameters:
color - the colour name or HTML RGB colour.
Returns:
the modified TableContainer object.

setHeight

public TableContainer setHeight(int height)
Sets the height of the table object.

Parameters:
height - the height value.
Returns:
the modified TableContainer object.

setHeight

public TableContainer setHeight(java.lang.String height)
Sets the height of the table object.

Parameters:
height - the height value.
Returns:
the modified TableContainer object.

setVerticalAlignment

public TableContainer setVerticalAlignment(java.lang.String alignment)
Set the vertical alignment of the content in the cell.

Parameters:
alignment - the vertical alignment of the content in the cell, such as top, middle, bottom, etc.
Returns:
the modified TableContainer object.

setVerticalAlignmentBottom

public TableContainer setVerticalAlignmentBottom()
Aligns the content vertically at the bottom of the cell.

Returns:
the modified TableContainer object.

setVerticalAlignmentMiddle

public TableContainer setVerticalAlignmentMiddle()
Aligns the content vertically in middle of the cell.

Returns:
the modified TableContainer object.

setVerticalAlignmentTop

public TableContainer setVerticalAlignmentTop()
Aligns the content vertically at the top of the cell.

Returns:
the modified TableContainer object.

setWidth

public TableContainer setWidth(int width)
Sets the width of the table object.

Parameters:
width - the width value.
Returns:
the modified TableContainer object.

setWidth

public TableContainer setWidth(java.lang.String width)
Sets the width of the table object.

Parameters:
width - the width value.
Returns:
the modified TableContainer object.

writeContent

protected void writeContent(Browser browser)
                     throws java.io.IOException
Loops through the container and gets each object contained within it and invokes that objects write method if this object is writable.

Overrides:
writeContent in class Container
Parameters:
browser - the browser to which the results are to be output.
Throws:
java.io.IOException - if an I/O error occurs writing to the browser.
See Also:
Tag.setWriteEndTag(boolean)

PAJES 3.0.21

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