public class TableCell extends FlowObjectWithElements
The "starts-row" and "ends-row" properties can be used when the input data does not have elements containing the cells in each row, but instead, for example, each row starts at elements of a particular type.
EMPTY_ARRAY
MAP_TYPE_FLYWEIGHT, MAP_TYPE_HASH
Constructor and Description |
---|
TableCell()
Creates a new empty TableCell.
|
TableCell(BlockElement element)
Creates a new TableCell and adds the given element to content.
|
TableCell(BlockElement element,
int spanColumns)
Creates a new TableCell and adds the given element to content.
|
TableCell(BlockElement element,
int spanColumns,
int spanRows)
Creates a new TableCell and adds the given element to content.
|
TableCell(InlineElement element)
Creates a new TableCell and adds an element..
|
TableCell(java.lang.String text)
Creates a new TableCell and adds some text.
|
TableCell(java.lang.String text,
boolean whiteSpaceCollapse)
Creates a new TableCell and adds some text.
|
TableCell(java.lang.String text,
int spanColumns)
Creates a new TableCell and adds some text.
|
TableCell(java.lang.String text,
int spanColumns,
int spanRows)
Creates a new TableCell and adds some text.
|
Modifier and Type | Method and Description |
---|---|
TableCell |
add(BlockElement element)
Adds an formatting object (that is a block-group-member) to this FO.
|
TableCell |
add(InlineElement element)
Adds an formatting object (that is an inline-group-member) to this FO
at end.
|
TableCell |
add(int idx,
BlockElement element)
Adds an formatting object (that is a block-group-member) to this FO.
|
TableCell |
add(java.lang.String text)
Adds some text to this table cell.
|
Accessibility |
getAccessibility()
Gets the accessibilty of this fo.
|
Background |
getBackground()
Gets the background of this fo.
|
Border |
getBorder()
Gets the border of this fo.
|
int |
getColumnsSpanned() |
Values.DisplayAlignment |
getDisplayAlign()
Gets the display-alignment.
|
Padding |
getPadding()
Gets the padding of this fo.
|
RelativePosition |
getRelativePosition()
Gets the relative position of this fo.
|
int |
getRowsSpanned() |
TableRow |
getTableRow()
Gets the parent table 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 |
setColumnsSpanned(int columns) |
void |
setDisplayAlign(Values.DisplayAlignment align)
Sets the display-alignment.
|
void |
setPadding(Padding padding)
Sets the padding of this fo.
|
void |
setRelativePosition(RelativePosition pos)
Sets the relative position of this fo.
|
void |
setRowsSpanned(int rows) |
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 TableCell()
public TableCell(BlockElement element)
element
- Element.public TableCell(java.lang.String text)
text
- Some text.public TableCell(java.lang.String text, boolean whiteSpaceCollapse)
text
- Some text.whiteSpaceCollapse
- Disable or enable white space collapse.public TableCell(BlockElement element, int spanColumns)
element
- Element.spanColumns
- Number of columns this cell is spanned.public TableCell(BlockElement element, int spanColumns, int spanRows)
element
- Element.spanColumns
- Number of columns this cell is spanned.spanRows
- Number of rows this cell is spanned.public TableCell(java.lang.String text, int spanColumns, int spanRows)
text
- Some text.spanColumns
- Number of columns this cell is spanned.spanRows
- Number of rows this cell is spanned.public TableCell(java.lang.String text, int spanColumns)
text
- Some text.spanColumns
- Number of columns this cell is spanned.public TableCell(InlineElement element)
element
- An InlineElement.public TableCell add(BlockElement element)
element
- FormattingObject.public TableCell add(int idx, BlockElement element)
idx
- Index.element
- FormattingObject.public TableCell add(InlineElement element)
element
- FormattingObject.public TableCell add(java.lang.String text)
text
- text.public TableRow getTableRow()
public void setColumnsSpanned(int columns)
public int getColumnsSpanned()
public void setRowsSpanned(int rows)
public int getRowsSpanned()
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 void setDisplayAlign(Values.DisplayAlignment align)
align
- Alignment.public Values.DisplayAlignment getDisplayAlign()
© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.