public class TableRow extends FlowObjectWithElements
EMPTY_ARRAY
MAP_TYPE_FLYWEIGHT, MAP_TYPE_HASH
Constructor and Description |
---|
TableRow()
Creates a new empty TableRow.
|
TableRow(java.lang.Object[] cells)
Creates a new TableRow and adds given cells to content.
|
TableRow(TableCell[] cells)
Creates a new TableRow and adds given cells to content.
|
Modifier and Type | Method and Description |
---|---|
TableRow |
add(int idx,
TableCell cell)
Adds a cell to this row at the given index (column).
|
TableRow |
add(java.lang.Object cell)
Adds a cell to this row.
|
TableRow |
add(java.lang.Object[] cells)
Adds some cells to this row.
|
TableRow |
add(TableCell cell)
Adds a cell to this row.
|
Accessibility |
getAccessibility()
Gets the accessibilty of this fo.
|
Background |
getBackground()
Gets the background of this fo.
|
Border |
getBorder()
Gets the border of this fo.
|
Values.Break |
getBreakAfter()
Gets the break after this formatting object.
|
Values.Break |
getBreakBefore()
Gets the break before this formatting object.
|
TableCell |
getCell(int idx)
Gets TableCell of given index (column).
|
Measure |
getHeight()
Gets the height of this row.
|
int |
getNumberOfCells()
Returns the total number of cells defined by this row.
|
Padding |
getPadding()
Gets the padding of this fo.
|
RelativePosition |
getRelativePosition()
Gets the relative position of this fo.
|
Table |
getTable()
Gets the parent table of this row.
|
TableBody |
getTableBody()
Gets the parent table body of this row.
|
boolean |
hasBorder()
Returns true if at least one border attribute is set.
|
void |
setAccessibility(Accessibility access)
Sets the accessibility of this fo.
|
void |
setBackground(Background bg)
Sets the background of this fo.
|
void |
setBorder(Border border)
Sets the border of this fo.
|
void |
setBreakAfter(Values.Break type)
Sets the break before this formatting object.
|
void |
setBreakBefore(Values.Break type)
Sets the break before this formatting object.
|
void |
setHeight(Measure height)
Sets the height of this row.
|
void |
setPadding(Padding padding)
Sets the padding of this fo.
|
void |
setRelativePosition(RelativePosition pos)
Sets the relative position of this fo.
|
add, add, add, add, addAllImpl, addAllUnsafe, addAllUnsafe, addElement, addElement, addElements, addElements, addUnsafe, addUnsafe, clone, firstElement, getElements, isEmpty, lastElement, remove, remove, removeAll, removeElement, removeElement, removeLast, replaceElement, setElement
cloned, clonedList, createUniqueID, doGetAttribute, doSetAttribute, elementCount, get, getAbsolutePosition, getAttributeMap, getDefinedAttributes, getDocument, getFont, getID, getLanguage, getLogger, getMargin, getMeasureValue, getObjectValue, getObjectValue, getObjectValue, getObjectValue, getOrphans, getParentFO, getWidows, hasID, hasPadding, isHyphenation, setAbsolutePosition, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setFont, setHyphenation, setID, setLanguage, setLanguage, setMargin, setOrphans, setWidows
getDefaultMapType, setDefaultMapType
addAttributeChangeListener, clearEqualAttributes, clearInheratedAttribute, clearInheratedAttributes, clearValue, contains, contains, copyAttributes, createID, findFirstNodeWithText, findNode, findNodesWithText, fire, fireSaxEvents, getAttrAsBoolean, getAttrAsInteger, getAttrAsString, getAttrAsString, getAttribute, getAttribute, getAttributeMap, getContentText, getContentText, getDefinedAttributes, getElements, getElements, getElements, getFirstElement, getIndex, getLocalName, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getParent, getParent, getParent, getParentOrThis, getQName, getRoot, hasEqualAttrs, indexOf, liftInheritedAttribute, removeAttributeChangeListener, setAttribute, setAttributes, setAttrIfNotNull, setEnableAttributeChangeEvent, setNamespace, setParent, setQName, setUndefinedAttributes, writeTo, writeTo, writeTo, writeTo
public TableRow()
public TableRow(TableCell[] cells)
cells
- Cells.public TableRow(java.lang.Object[] cells)
cells
- Cells. Allowed Objects are TableCells, Strings,
BlockGroupMembers or InlineElements. Throws an IllegalArgumentException,
if you try to add an unsupported object.public Padding getPadding()
getPadding
in class FormattingObject
public void setPadding(Padding padding)
setPadding
in class FormattingObject
padding
- Padding.public boolean hasBorder()
hasBorder
in class FormattingObject
public Border getBorder()
getBorder
in class FormattingObject
public void setBorder(Border border)
setBorder
in class FormattingObject
border
- Border.public Background getBackground()
getBackground
in class FormattingObject
public void setBackground(Background bg)
setBackground
in class FormattingObject
bg
- Background.public Accessibility getAccessibility()
getAccessibility
in class FormattingObject
public void setAccessibility(Accessibility access)
setAccessibility
in class FormattingObject
access
- Accessibility.public RelativePosition getRelativePosition()
getRelativePosition
in class FormattingObject
public void setRelativePosition(RelativePosition pos)
setRelativePosition
in class FormattingObject
pos
- RelativePosition.public TableRow add(TableCell cell)
cell
- TableCell.public TableRow add(int idx, TableCell cell)
idx
- Index (column).cell
- TableCell.public TableCell getCell(int idx)
idx
- Index (column).public TableRow add(java.lang.Object[] cells)
cells
- Some cells. Allowed Objects are TableCells, Strings,
BlockGroupMembers or InlineElements. Throws an IllegalArgumentException, if you
try to add an unsupported object.public TableRow add(java.lang.Object cell)
cell
- A cell that can be a TableCell, String, BlockGroupMember or
InlineElement. Throws an IllegalArgumentException, if you
try adding an unsupported object. If cell is NULL, an empty cell is added.public int getNumberOfCells()
public void setHeight(Measure height)
height
- Height of row.public Measure getHeight()
public void setBreakBefore(Values.Break type)
type
- Type of break. (see Values.BREAK_*)public Values.Break getBreakBefore()
public void setBreakAfter(Values.Break type)
type
- Type of break. (see Values.BREAK_*)public Values.Break getBreakAfter()
public TableBody getTableBody()
public Table getTable()
© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.