org.jfor.jfor.converter
Class TableContext

java.lang.Object
  extended by org.jfor.jfor.converter.TableContext
All Implemented Interfaces:
ITableColumnsInfo

 class TableContext
extends java.lang.Object
implements ITableColumnsInfo

Used when handling fo:table to hold information common to several builders that collaborate to build the table.

Author:
Bertrand Delacretaz bdelacretaz@codeconsult.ch

Field Summary
 
Fields inherited from interface org.jfor.jfor.interfaces.ITableColumnsInfo
INVALID_COLUM_WIDTH
 
Constructor Summary
TableContext(BuilderContext ctx)
           
 
Method Summary
 void decreaseRowSpannings()
          Added by Peter Herweg on 2002-06-29 This function is called after each finished table-row.
 int getColumnIndex()
          Added by Boris Poud?rous on 07/22/2002
(package private)  RtfAttributes getColumnRowSpanningAttrs()
           
(package private)  java.lang.Integer getColumnRowSpanningNumber()
           
 float getColumnWidth()
          get current column width according to column iteration index
 int getNumberOfColumns()
          Added by Boris Poud?rous on 07/22/2002
 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
(package private)  void setCurrentColumnRowSpanning(java.lang.Integer iRowSpanning, RtfAttributes attrs)
           
 void setNextColumnRowSpanning(java.lang.Integer iRowSpanning, RtfAttributes attrs)
           
(package private)  void setNextColumnWidth(java.lang.String strWidth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableContext

TableContext(BuilderContext ctx)
Method Detail

setNextColumnWidth

void setNextColumnWidth(java.lang.String strWidth)
                  throws ValueConversionException
Throws:
ValueConversionException

getColumnRowSpanningAttrs

RtfAttributes getColumnRowSpanningAttrs()

getColumnRowSpanningNumber

java.lang.Integer getColumnRowSpanningNumber()

setCurrentColumnRowSpanning

void setCurrentColumnRowSpanning(java.lang.Integer iRowSpanning,
                                 RtfAttributes attrs)
                           throws ValueConversionException
Throws:
ValueConversionException

setNextColumnRowSpanning

public void setNextColumnRowSpanning(java.lang.Integer iRowSpanning,
                                     RtfAttributes attrs)

decreaseRowSpannings

public void decreaseRowSpannings()
Added by Peter Herweg on 2002-06-29 This function is called after each finished table-row. It decreases all values in m_colRowSpanningNumber by 1. If a value reaches 0 row-spanning is finished, and the value won't be decreased anymore.


selectFirstColumn

public 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

Specified by:
selectFirstColumn in interface ITableColumnsInfo

selectNextColumn

public void selectNextColumn()
increment the column iteration index The 'public' modifier has been added by Boris Poud?rous for 'number-columns-spanned' processing

Specified by:
selectNextColumn in interface ITableColumnsInfo

getColumnWidth

public float getColumnWidth()
get current column width according to column iteration index

Specified by:
getColumnWidth in interface ITableColumnsInfo
Returns:
INVALID_COLUMN_WIDTH if we cannot find the value The 'public' modifier has been added by Boris Poud?rous for 'number-columns-spanned' processing

getColumnIndex

public int getColumnIndex()
Added by Boris Poud?rous on 07/22/2002

Specified by:
getColumnIndex in interface ITableColumnsInfo

getNumberOfColumns

public int getNumberOfColumns()
Added by Boris Poud?rous on 07/22/2002

Specified by:
getNumberOfColumns in interface ITableColumnsInfo