|
OpenOffice.org XMerge API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openoffice.xmerge.converter.xml.sxc.SpreadsheetEncoder
This class is a abstract class for encoding an SXC into an alternative spreadsheet format.
TODO - Add appropriate exceptions to each of the methods.
Constructor Summary | |
SpreadsheetEncoder(java.lang.String name,
java.lang.String password)
Creates new SpreadsheetEncoder. |
Method Summary | |
abstract void |
addCell(int row,
int column,
Format fmt,
java.lang.String cellContents)
Add a cell to the current WorkSheet. |
abstract void |
createWorksheet(java.lang.String sheetName)
Create a new WorkSheet within the WorkBook. |
abstract int |
getNumberOfSheets()
Get the number of sheets in the WorkBook. |
abstract java.lang.String |
getSheetName(int sheet)
Get the names of the sheets in the WorkBook. |
abstract void |
setCellFormat(int row,
int column,
Format fmt)
Set a cell's formatting options via a separately create Format object. |
abstract void |
setColumnWidths(IntArrayList columnWidths)
Set the width of the columns in the WorkBook. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SpreadsheetEncoder(java.lang.String name, java.lang.String password) throws java.io.IOException
name
- The name of the WorkBook to be created.password
- An optional password for the WorkBook.java.io.IOException
- If any I/O error occurs.Method Detail |
public abstract void addCell(int row, int column, Format fmt, java.lang.String cellContents) throws java.io.IOException
row
- The row number of the cellcolumn
- The column number of the cellfmt
- The Format
object describing the
appearance of this cell.cellContents
- The text or formula of the cell's contents.public abstract void createWorksheet(java.lang.String sheetName) throws java.io.IOException
sheetName
- The name of the WorkSheet.java.io.IOException
- If any I/O error occurs.public abstract int getNumberOfSheets()
public abstract java.lang.String getSheetName(int sheet)
sheet
- The required sheet.public abstract void setCellFormat(int row, int column, Format fmt)
Format
object.row
- The row number of the cell to be changedcolumn
- The column number of the cell to be changedfmt
- Object containing formatting settings for this cell.public abstract void setColumnWidths(IntArrayList columnWidths) throws java.io.IOException
columnWidths
- An IntArrayList
of column
widths.
|
OpenOffice.org XMerge API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |