public class TableContext extends java.lang.Object implements ITableColumnsInfo
Used when handling fo:table to hold information to build the table.
This work was authored by Bertrand Delacretaz (bdelacretaz@codeconsult.ch), Ed Trembicki-Guy (guye@dnb.com), Boris Poud??rous (boris.pouderous@eads-telecom.com), and Peter Herweg (pherweg@web.de).
This class was originally developed for the JFOR project and is now integrated into FOP.INVALID_COLUMN_WIDTH
Constructor and Description |
---|
TableContext(BuilderContext ctx) |
Modifier and Type | Method and Description |
---|---|
void |
decreaseRowSpannings()
Added by Peter Herweg on 2002-06-29
This function is called after each finished table-row.
|
int |
getColumnIndex() |
RtfAttributes |
getColumnRowSpanningAttrs() |
java.lang.Integer |
getColumnRowSpanningNumber() |
float |
getColumnWidth()
Get current column width according to column iteration index
|
boolean |
getFirstSpanningCol() |
boolean |
getNextRowBelongsToHeader() |
int |
getNumberOfColumns() |
void |
selectFirstColumn()
Reset the column iteration index, meant to be called when creating a new row
The 'public' modifier has been added by Boris Poud??rous for
'number-columns-spanned' processing
|
void |
selectNextColumn()
Increment the column iteration index
The 'public' modifier has been added by Boris Poud??rous for
'number-columns-spanned' processing
|
void |
setColumnIndex(int index)
Set current column index.
|
void |
setCurrentColumnRowSpanning(java.lang.Integer iRowSpanning,
RtfAttributes attrs) |
void |
setCurrentFirstSpanningCol(boolean bFirstSpanningCol) |
void |
setNextColumnRowSpanning(java.lang.Integer iRowSpanning,
RtfAttributes attrs) |
void |
setNextColumnWidth(java.lang.Float width)
Adds a column and sets its width.
|
void |
setNextFirstSpanningCol(boolean bFirstSpanningCol) |
void |
setNextRowBelongsToHeader(boolean value) |
public TableContext(BuilderContext ctx)
ctx
- BuilderContextpublic void setNextRowBelongsToHeader(boolean value)
value
- Specifies, if next row belongs to headerpublic boolean getNextRowBelongsToHeader()
public void setNextColumnWidth(java.lang.Float width)
width
- Width of next columnpublic RtfAttributes getColumnRowSpanningAttrs()
public java.lang.Integer getColumnRowSpanningNumber()
public boolean getFirstSpanningCol()
getFirstSpanningCol
in interface ITableColumnsInfo
public void setCurrentColumnRowSpanning(java.lang.Integer iRowSpanning, RtfAttributes attrs)
iRowSpanning
- number of rows to spanattrs
- RtfAttributes of row-spanning cellpublic void setNextColumnRowSpanning(java.lang.Integer iRowSpanning, RtfAttributes attrs)
iRowSpanning
- number of rows to span in next columnattrs
- RtfAttributes of row-spanning cellpublic void setCurrentFirstSpanningCol(boolean bFirstSpanningCol)
bFirstSpanningCol
- specifies, if it's the first of
multiple spanned columnspublic void setNextFirstSpanningCol(boolean bFirstSpanningCol)
bFirstSpanningCol
- specifies, if it's the first of
multiple spanned columnspublic void decreaseRowSpannings()
public void selectFirstColumn()
selectFirstColumn
in interface ITableColumnsInfo
public void selectNextColumn()
selectNextColumn
in interface ITableColumnsInfo
public float getColumnWidth()
getColumnWidth
in interface ITableColumnsInfo
public void setColumnIndex(int index)
index
- New column indexpublic int getColumnIndex()
getColumnIndex
in interface ITableColumnsInfo
public int getNumberOfColumns()
getNumberOfColumns
in interface ITableColumnsInfo
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.