public abstract class TableContent extends FlowObjectWithElements
EMPTY_ARRAY
MAP_TYPE_FLYWEIGHT, MAP_TYPE_HASH
Modifier | Constructor and Description |
---|---|
|
TableContent(java.lang.String tag) |
protected |
TableContent(java.lang.String tag,
FormattingObject parent) |
Modifier and Type | Method and Description |
---|---|
TableContent |
add(int idx,
TableRow row)
Adds a table row at given index (row) to content.
|
TableContent |
add(java.lang.Object[][] cells)
Adds some rows to content.
|
TableContent |
add(TableRow row)
Adds a table row to content.
|
TableContent |
add(TableRow[] rows)
Adds some rows to content.
|
Accessibility |
getAccessibility()
Gets the accessibilty of this fo.
|
Background |
getBackground()
Gets the background of this fo.
|
Border |
getBorder()
Gets the border of this fo.
|
TableCell |
getCell(int row,
int column)
Gets a cell.
|
Padding |
getPadding()
Gets the padding of this fo.
|
RelativePosition |
getRelativePosition()
Gets the relative position of this fo.
|
TableRow |
getRow(int idx)
Gets the table-row at given index (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 |
setCellBorders(int width)
Sets borders of table cells.
|
void |
setCellBorders(Measure width)
Sets borders of table cells.
|
void |
setCellBorders(Measure width,
Border.Style style)
Sets borders of table cells.
|
void |
setCellBorders(Measure width,
java.awt.Color color,
Border.Style style)
Sets borders of table cells.
|
void |
setHorizontalPadding(Measure size)
The the left and right padding of all contained table-cells.
|
void |
setPadding(Padding padding)
Sets the padding of this fo.
|
void |
setRelativePosition(RelativePosition pos)
Sets the relative position of this fo.
|
void |
setSpaceAroundCells(Measure size)
Deprecated.
Use setHorizontalPadding instead.
|
void |
setVerticalPadding(Measure size)
The the top and bottom padding of all contained table-cells.
|
add, add, add, add, addAllImpl, addAllUnsafe, addAllUnsafe, addElement, addElement, addElements, addElements, addUnsafe, addUnsafe, clone, firstElement, getElementCount, getElements, isEmpty, lastElement, remove, remove, removeAll, removeElement, removeElement, removeLast, replaceElement, setElement
cloned, clonedList, createUniqueID, 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 TableContent(java.lang.String tag)
protected TableContent(java.lang.String tag, FormattingObject parent)
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 TableCell getCell(int row, int column)
row
- Row.column
- Column.public TableContent add(TableRow row)
row
- TableRow.public TableContent add(int idx, TableRow row)
idx
- Index (row).row
- TableRowpublic TableContent add(TableRow[] rows)
rows
- Rows.public TableContent add(java.lang.Object[][] cells)
cells
- Cells as a matrix of objects. Allowed Objects are TableCells,
Strings, BlockGroupMembers or InlineElements.java.lang.IllegalArgumentException
- is thrown if you try to add an unsupported object.public TableRow getRow(int idx)
idx
- Index (row)public void setCellBorders(Measure width)
width
- Width of border.public void setCellBorders(int width)
width
- Width of border in points.public void setCellBorders(Measure width, Border.Style style)
width
- Width of border.style
- Style of border.public void setCellBorders(Measure width, java.awt.Color color, Border.Style style)
width
- Width of border.color
- Color of border.style
- Style of border.public void setSpaceAroundCells(Measure size)
size
- Left and right padding size.public void setHorizontalPadding(Measure size)
size
- Left and right padding size.public void setVerticalPadding(Measure size)
size
- Top and bottom padding size.© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.