|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fo.FONode
org.apache.fop.fo.FObj
org.apache.fop.fo.flow.TableFObj
org.apache.fop.fo.flow.TableBody
public class TableBody
Class modelling the fo:table-body object.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.fop.fo.flow.TableFObj |
---|
TableFObj.PendingSpan |
Nested classes/interfaces inherited from class org.apache.fop.fo.FObj |
---|
FObj.FObjIterator |
Nested classes/interfaces inherited from class org.apache.fop.fo.FONode |
---|
FONode.FONodeIterator |
Field Summary | |
---|---|
protected boolean |
firstRow
|
protected java.util.List |
pendingSpans
used for initial values of column-number property |
protected boolean |
tableCellsFound
|
protected boolean |
tableRowsFound
used for validation |
protected java.util.BitSet |
usedColumnIndices
|
Fields inherited from class org.apache.fop.fo.FObj |
---|
firstChild |
Fields inherited from class org.apache.fop.fo.FONode |
---|
FO_URI, FOX_URI, locator, log, parent, siblings |
Constructor Summary | |
---|---|
TableBody(FONode parent)
|
Method Summary | |
---|---|
protected void |
addChildNode(FONode child)
Adds a node as a child of this node. |
void |
bind(PropertyList pList)
Bind property values from the property list to the FO node. |
protected void |
endOfNode()
Primarily used for making final content model validation checks and/or informing the FOEventHandler that the end of this FO has been reached. |
protected void |
flagColumnIndices(int start,
int end)
Flags column indices from start to end ,
and updates the current column index. |
CommonBorderPaddingBackground |
getCommonBorderPaddingBackground()
|
int |
getCurrentColumnIndex()
Returns the current column index of the TableBody |
java.lang.String |
getLocalName()
Returns the local name (i.e. without namespace prefix) of the node |
int |
getNameId()
Returns the Constants class integer value of this node |
protected void |
initPendingSpans(FONode child)
Initializes list of pending row-spans; used for correctly assigning initial value for column-number for the cells of following rows (note: not literally mentioned in the Rec, but it is assumed that, if the first cell in a given row spans two rows, then the first cell of the following row will have an initial column-number of 2, since the first column is already occupied...) |
boolean |
isColumnNumberUsed(int colNr)
Checks whether a given column-number is already in use for the current row; |
boolean |
isFirst(TableRow obj)
|
boolean |
previousCellEndedRow()
Checks whether the previous cell had 'ends-row="true"' |
void |
processNode(java.lang.String elementName,
org.xml.sax.Locator locator,
org.xml.sax.Attributes attlist,
PropertyList pList)
Initialize the node with its name, location information, and attributes The attributes must be used immediately as the sax attributes will be altered for the next element. |
void |
resetColumnIndex()
Resets the current column index for the TableBody |
void |
setCurrentColumnIndex(int newIndex)
Sets the current column index to a specific value (used by ColumnNumberPropertyMaker.make() in case the column-number was explicitly specified on the cell) |
protected void |
setNextColumnIndex()
Increases columnIndex to the next available value |
protected void |
startOfNode()
Called after processNode() is called. |
protected void |
validateChildNode(org.xml.sax.Locator loc,
java.lang.String nsURI,
java.lang.String localName)
Checks to make sure, during SAX processing of input document, that the incoming node is valid for the this (parent) node (e.g., checking to see that fo:table is not an immediate child of fo:root) called within FObj constructor |
Methods inherited from class org.apache.fop.fo.flow.TableFObj |
---|
getBorderPrecedence, getTable |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean tableRowsFound
protected boolean tableCellsFound
protected java.util.List pendingSpans
protected java.util.BitSet usedColumnIndices
protected boolean firstRow
Constructor Detail |
---|
public TableBody(FONode parent)
parent
- FONode that is the parent of the objectMethod Detail |
---|
public void bind(PropertyList pList) throws FOPException
FObj
bind
in class TableFObj
pList
- the PropertyList where the properties can be found.
FOPException
- if there is a problem binding the valuesFObj.bind(PropertyList)
public void processNode(java.lang.String elementName, org.xml.sax.Locator locator, org.xml.sax.Attributes attlist, PropertyList pList) throws FOPException
FONode
processNode
in class FObj
elementName
- element name (e.g., "fo:block")locator
- Locator object (ignored by default)attlist
- Collection of attributes passed to us from the parser.pList
- the property list of the parent node
FOPException
- for errors or inconsistencies in the attributesFONode.processNode(String, Locator, Attributes, PropertyList)
protected void startOfNode() throws FOPException
FONode
startOfNode
in class FObj
FOPException
- FOP ExceptionFONode.startOfNode()
protected void endOfNode() throws FOPException
FONode
endOfNode
in class FONode
FOPException
- if there's a problem during processingFONode.endOfNode()
protected void validateChildNode(org.xml.sax.Locator loc, java.lang.String nsURI, java.lang.String localName) throws ValidationException
FONode
validateChildNode
in class FONode
loc
- location in the FO source filensURI
- namespace of incoming nodelocalName
- (e.g. "table" for "fo:table")
ValidationException
- if incoming node not valid for parentXSL Content Model: marker* (table-row+|table-cell+)
protected void addChildNode(FONode child) throws FOPException
FONode
addChildNode
in class TableFObj
child
- child node to be added to the childNodes of this node
FOPException
- if there's a problem during processingFONode.addChildNode(FONode)
public CommonBorderPaddingBackground getCommonBorderPaddingBackground()
getCommonBorderPaddingBackground
in class TableFObj
public java.lang.String getLocalName()
FONode
getLocalName
in class FONode
FONode.getLocalName()
public int getNameId()
FONode
getNameId
in class FONode
FONode.getNameId()
public boolean isFirst(TableRow obj)
obj
- table row in question
protected void initPendingSpans(FONode child)
public int getCurrentColumnIndex()
getCurrentColumnIndex
in class TableFObj
public void setCurrentColumnIndex(int newIndex)
setCurrentColumnIndex
in class TableFObj
newIndex
- the new column indexpublic void resetColumnIndex()
protected void setNextColumnIndex()
public boolean previousCellEndedRow()
public boolean isColumnNumberUsed(int colNr)
isColumnNumberUsed
in class TableFObj
colNr
- the column-number to check
protected void flagColumnIndices(int start, int end)
TableFObj
start
to end
,
and updates the current column index.
Overridden for Table, TableBody, TableRow
flagColumnIndices
in class TableFObj
start
- start indexend
- end indexTableFObj.flagColumnIndices(int, int)
|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |