org.jfor.jfor.rtflib.testdocs
Class DummyTableColumnsInfo

java.lang.Object
  extended byorg.jfor.jfor.rtflib.testdocs.DummyTableColumnsInfo
All Implemented Interfaces:
ITableColumnsInfo

class DummyTableColumnsInfo
extends java.lang.Object
implements ITableColumnsInfo

ITableColumnsInfo that does nothing, used in testodcs package to create documents without worrying about nested tables handling. Might need to be replaced by more complete version in some sample documents created by this package.

Author:
bdelacretaz@codeconsult.ch

Field Summary
 
Fields inherited from interface org.jfor.jfor.interfaces.ITableColumnsInfo
INVALID_COLUM_WIDTH
 
Constructor Summary
(package private) DummyTableColumnsInfo()
           
 
Method Summary
 int getColumnIndex()
          return current column iteration index
 float getColumnWidth()
          get current column width according to column iteration index
 int getNumberOfColumns()
          return number of columns
 void selectFirstColumn()
          reset the column iteration index, meant to be called when creating a new row
 void selectNextColumn()
          increment the column iteration index
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyTableColumnsInfo

DummyTableColumnsInfo()
Method Detail

getColumnWidth

public float getColumnWidth()
Description copied from interface: ITableColumnsInfo
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

selectFirstColumn

public void selectFirstColumn()
Description copied from interface: ITableColumnsInfo
reset the column iteration index, meant to be called when creating a new row

Specified by:
selectFirstColumn in interface ITableColumnsInfo

getNumberOfColumns

public int getNumberOfColumns()
Description copied from interface: ITableColumnsInfo
return number of columns

Specified by:
getNumberOfColumns in interface ITableColumnsInfo

getColumnIndex

public int getColumnIndex()
Description copied from interface: ITableColumnsInfo
return current column iteration index

Specified by:
getColumnIndex in interface ITableColumnsInfo

selectNextColumn

public void selectNextColumn()
Description copied from interface: ITableColumnsInfo
increment the column iteration index

Specified by:
selectNextColumn in interface ITableColumnsInfo