org.foray.mif
Class MifTbl

java.lang.Object
  extended by org.foray.mif.MifToken
      extended by org.foray.mif.MifFlow
          extended by org.foray.mif.MifTbl

public class MifTbl
extends MifFlow

A MIF Table.


Constructor Summary
MifTbl(int id)
          Constructor.
 
Method Summary
 void addColumn(int colWidth)
          Adds a column to this table.
 MifPgf curPara()
          Returns the last paragraph of the current cell.
 int getID()
          Returns the id of this table.
 String mifContent()
          Returns the content of this token as a String.
 void setCurrent(String current)
          Sets the current set of rows.
 void startCell(int rowSpan, int colSpan)
          Creates a new cell in the current row.
 void startPara()
          Starts a new paragraph in the current cell.
 void startRow()
          Creates a new row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MifTbl

public MifTbl(int id)
Constructor.

Parameters:
id - The id for this table.
Method Detail

addColumn

public void addColumn(int colWidth)
Adds a column to this table.

Parameters:
colWidth - The width, in millipoints (??), of the column to be added.

setCurrent

public void setCurrent(String current)
Sets the current set of rows.

Parameters:
current - The description of the current set of rows.

startRow

public void startRow()
Creates a new row.


startCell

public void startCell(int rowSpan,
                      int colSpan)
Creates a new cell in the current row.

Parameters:
rowSpan - The number of rows spanned by the new cell.
colSpan - The number of columns spanned by the new cell.

getID

public int getID()
Returns the id of this table.

Returns:
The id of this table.

curPara

public MifPgf curPara()
Returns the last paragraph of the current cell.

Specified by:
curPara in class MifFlow
Returns:
The last paragraph of the current cell.

startPara

public void startPara()
Starts a new paragraph in the current cell.

Specified by:
startPara in class MifFlow

mifContent

public String mifContent()
Description copied from class: MifToken
Returns the content of this token as a String.

Returns:
The content of this token as a String.


Copyright © 2017. All rights reserved.