|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pajes.html.Tag
org.pajes.html.TraversableElement
org.pajes.html.Container
org.pajes.html.TableContainer
public abstract class TableContainer
This class provides the common methods for the Table object and all its inner classes.
| 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 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 |
|---|
protected TableContainer(java.lang.String name)
name - the tag name.| Method Detail |
|---|
public Table getTable()
public TableContainer setAlignment(java.lang.String alignment)
alignment - Left, Center or Right
TagException - if an invalid alignment is specified.public TableContainer setAlignmentCenter()
public TableContainer setAlignmentLeft()
public TableContainer setAlignmentRight()
public TableContainer setBGColor(Color color)
color - the colour name or HTML RGB colour.
public TableContainer setHeight(int height)
height - the height value.
public TableContainer setHeight(java.lang.String height)
height - the height value.
public TableContainer setVerticalAlignment(java.lang.String alignment)
alignment - the vertical alignment of the content in the cell, such as
top, middle, bottom, etc.
public TableContainer setVerticalAlignmentBottom()
public TableContainer setVerticalAlignmentMiddle()
public TableContainer setVerticalAlignmentTop()
public TableContainer setWidth(int width)
width - the width value.
public TableContainer setWidth(java.lang.String width)
width - the width value.
protected void writeContent(Browser browser)
throws java.io.IOException
writeContent in class Containerbrowser - the browser to which the results are to be output.
java.io.IOException - if an I/O error occurs writing to the browser.Tag.setWriteEndTag(boolean)
|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||