|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface describes the public API for the low level model of an e.Spreadsheet workbook. An implementation of Book contains an array of sheets, as well as information which applies to the entire workbook.
BookImpl| Method Summary | |
void |
checkRecalc()
Recalculates the workbook, if needed. |
void |
copyAll(Book srcBook)
Copies the contents of one workbook to another workbook. |
void |
copySheet(int insertAt,
BookView bookView)
Creates copies of all sheets selected in the specified view. |
void |
copySheet(int nInsertAt,
Range range)
Creates copies of the specified sheets. |
DataBase |
createDatabase()
Creates a new Database object. |
void |
deleteDefinedName(java.lang.String name)
Deletes the specified user-defined name. |
void |
deleteSheet(BookView bookView)
Deletes the sheets selected in the specified view. |
void |
deleteSheet(Range range)
Deletes the specified sheets. |
void |
deleteSheets(int sheet,
int sheets)
Deletes one or more worksheets from a workbook The names displayed on the sheet tabs are not affected by the deletions; however, the worksheet index is adjusted. |
Book |
findBook(java.lang.String bookName)
Attempts to find a workbook with the specified name in the same group as this workbook. |
void |
forceRecalc()
Marks all formulas in the workbook as needing to be recalculated. |
java.lang.String |
formatRCNr(int row,
int col,
boolean absRow,
boolean absCol)
Formats a row and column number as text. |
void |
gc(boolean collectFormats,
boolean collectFormulas)
Performs garbage collection on formatting and/or formula information associated with a workbook. |
CellFormat |
getCellFormat(int sheet1,
int row1,
int col1,
int sheet2,
int row2,
int col2)
Returns the format of the specified range of cells in the specified range of sheets. |
java.lang.String |
getCodeName()
Returns the VBA object name assigned to this workbook. |
short |
getColWidthUnits()
Returns whether column widths are stored and displayed in twips or in character units. |
DataSet |
getDefaultDataSet()
Returns the default DataSet for this book. |
java.lang.String |
getDefinedName(java.lang.String name,
int row,
int col)
Returns the definition associated with a defined name given the offset provided by the row and column parameters. |
int |
getDefinedNameCount()
Returns the number of defined names in a view. |
Document |
getDocument()
Returns the Document object associated with this book. |
java.lang.String |
getGroupName()
Returns the Group name for this Book. |
java.lang.String |
getHyperlinkBase()
Returns the hyperlink base string used for relative hyperlinks. |
int |
getIterationMax()
Returns the maximum number of calculation iterations. |
double |
getIterationMaxChange()
Returns the maximum iteration change value. |
long |
getModifiedCount()
Returns the modified count of this workbook. |
java.lang.String |
getName()
Returns the name assigned to this workbook. |
PivotGroup |
getPivotGroup()
Returns a reference to the PivotRange group. |
int |
getProtectionFlags()
Returns a set of flags indicating which actions are protected on this workbook when protection is enabled. |
ReadResults |
getReadResults()
Deprecated. Replaced by Document.getDocumentSaveOptions(), Document.getDocumentType() |
ReportFunctionsGroup |
getReportFunctionsGroup()
Returns a reference to the ReportFunctionsGroup. |
Sheet |
getSheet(int sheet)
Returns the Sheet at the specified index. |
int |
getSheetCount()
Returns the number of worksheets in this workbook. |
int |
getVersion()
Returns the version of the component. |
java.lang.String |
getVersionString()
Returns the version of the component in a string. |
boolean |
hasPivotGroup()
Returns true if the book has a PivotRange group. |
boolean |
hasReportFunctionsGroup()
Returns true if the book has a ReportFunctionsGroup. |
void |
initBook()
Initilaizes a workbook to a default, empty state. |
void |
insertSheet(BookView bookView)
Inserts one or more sheets before the active sheet of the specified view. |
void |
insertSheets(int sheet,
int sheets)
Inserts one or more worksheets at the specified location. |
boolean |
isAutoRecalc()
Returns whether or not automatic recalc is on. |
boolean |
isColWidthInTwips()
Returns whether column widths are stored in twips for this workbook. |
boolean |
isIterationEnabled()
Returns true if iteration is enabled. |
boolean |
isPasswordProtected()
Returns true if protection is enabled with a password for this workbook. |
boolean |
isPrecisionAsDisplayed()
Returns true if all cell values are rounded to the displayed
precision. |
boolean |
isProhibited(int protectionFlags)
Returns true if the workbook is protected and the
workbook's current protection settings include the specified flags. |
boolean |
isProtected()
Returns true if protection is enabled for this workbook. |
void |
moveSheet(int insertAt,
BookView bookView)
Moves all sheets selected in the specified view, to a specified location. |
void |
moveSheet(int nInsertAt,
Range range)
Moves the specified sheets to a specified location. |
short |
read(byte[] blob)
Deprecated. Replaced by Document.Document(com.f1j.util.Group, byte[], DocumentOpenCallback) |
ReadResults |
read(byte[] blob,
com.f1j.ss.ReadParams rp)
Deprecated. Replaced by Document.Document(com.f1j.util.Group, byte[], DocumentOpenCallback) |
short |
read(java.io.InputStream inputStream)
Deprecated. Replaced by Document.Document(com.f1j.util.Group, java.io.InputStream, DocumentOpenCallback) |
ReadResults |
read(java.io.InputStream inputStream,
com.f1j.ss.ReadParams rp)
Deprecated. Replaced by Document.Document(com.f1j.util.Group, java.io.InputStream, DocumentOpenCallback) |
short |
read(java.io.InputStream inputStream,
short codePage)
Deprecated. Replaced by Document.Document(com.f1j.util.Group, java.io.InputStream, DocumentOpenCallback) |
short |
read(java.lang.String fileName)
Deprecated. Replaced by Document.Document(com.f1j.util.Group, java.io.File, boolean, DocumentOpenCallback) |
ReadResults |
read(java.lang.String fileName,
com.f1j.ss.ReadParams rp)
Deprecated. Replaced by Document.Document(com.f1j.util.Group, java.io.File, boolean, DocumentOpenCallback) |
short |
readFromBlob(byte[] blob)
Deprecated. Replaced by Document.Document(com.f1j.util.Group, byte[], DocumentOpenCallback) |
ReadResults |
readFromBlob(byte[] blob,
com.f1j.ss.ReadParams rp)
Deprecated. Replaced by Document.Document(com.f1j.util.Group, byte[], DocumentOpenCallback) |
void |
recalc()
Recalculates this workbook. |
void |
setAutoRecalc(boolean autoRecalc)
Sets the flag that determines whether or not automatic recalc is on. |
void |
setCodeName(java.lang.String codeName)
Assigns a VBA object name to this workbook. |
void |
setDefaultDataSet(DataSet dataSet)
Sets the default DataSet for this book. |
void |
setDefinedName(java.lang.String name,
java.lang.String formula,
int row,
int col)
Sets the formula associated with a defined name, in US English. |
void |
setDefinedName(java.lang.String name,
java.lang.String formula,
int row,
int col,
boolean param,
boolean strip,
short type)
Sets the formula associated with a defined name, in US English. |
void |
setDefinedName(java.lang.String name,
java.lang.String formula,
Sheet sheet,
int row,
int col)
Sets the formula associated with a defined name, in US English. |
void |
setDefinedName(java.lang.String name,
java.lang.String formula,
Sheet sheet,
int row,
int col,
boolean param,
boolean strip,
short type)
Sets the formula associated with a defined name, in US English. |
void |
setGroupName(java.lang.String group)
Sets the group name for this workbook. |
void |
setHyperlinkBase(java.lang.String s)
Sets the hyperlink base string - use null to turn off Book. |
void |
setIterationEnabled(boolean iterationEnabled)
Sets whether iteration is enabled. |
void |
setIterationMax(int iterationMax)
Sets the maximum number of iterations. |
void |
setIterationMaxChange(double iterationMaxChange)
Sets the maximum iteration change value. |
void |
setName(java.lang.String name)
Sets the name assigned to this workbook. |
void |
setNumSheets(int sheets)
Sets the number of worksheets in this workbook. |
void |
setPrecisionAsDisplayed(boolean precisionAsDisplayed)
Determines whether cell values are stored as entered or as displayed. |
void |
setProtection(boolean enableProtection,
java.lang.String password,
int flags)
Sets whether protection is enabled for this workbook. |
boolean |
write(Sheet sheet,
java.io.OutputStream stream,
short eFileType)
Deprecated. Replaced by Document.fileSaveCopyAs(java.io.OutputStream, DocumentType, DocumentSaveCallback) |
boolean |
write(Sheet sheet,
java.io.OutputStream stream,
short eFileType,
short codePage)
Deprecated. Replaced by Document.fileSaveCopyAs(java.io.OutputStream, DocumentType, DocumentSaveCallback) |
boolean |
write(Sheet sheet,
java.io.OutputStream stream,
com.f1j.ss.WriteParams wp)
Deprecated. Replaced by Document.fileSaveCopyAs(java.io.OutputStream, DocumentType, DocumentSaveCallback) |
byte[] |
write(Sheet sheet,
short eFileType)
Deprecated. Replaced by Document.fileSaveCopyAsByteArray(DocumentType, DocumentSaveCallback) |
boolean |
write(Sheet sheet,
java.lang.String pathName,
short eFileType)
Deprecated. Replaced by Document.fileSaveCopyAs(java.io.File, DocumentType, DocumentSaveCallback) |
boolean |
write(Sheet sheet,
java.lang.String pathName,
com.f1j.ss.WriteParams wp)
Deprecated. Replaced by Document.fileSaveCopyAs(java.io.File, DocumentType, DocumentSaveCallback) |
byte[] |
write(Sheet sheet,
com.f1j.ss.WriteParams wp)
Deprecated. Replaced by Document.fileSaveCopyAsByteArray(DocumentType, DocumentSaveCallback) |
byte[] |
writeToBlob()
Deprecated. Replaced by Document.fileSaveCopyAsByteArray(DocumentType, DocumentSaveCallback) |
byte[] |
writeToBlob(Sheet sheet,
com.f1j.ss.WriteParams wp)
Deprecated. Replaced by Document.fileSaveCopyAsByteArray(DocumentType, DocumentSaveCallback) |
| Methods inherited from interface com.f1j.mvc.Model |
getGroup,
getLock,
hasLock,
releaseLock,
rewindLock,
unwindLock |
| Method Detail |
public void checkRecalc()
forceRecalc(),
isAutoRecalc(),
recalc(),
setAutoRecalc(boolean)
public void copyAll(Book srcBook)
throws F1Exception
srcBook - a handle to the source workbook.public DataBase createDatabase()
DataBase
public void deleteDefinedName(java.lang.String name)
throws F1Exception
name - identifies the user-defined name to delete.getDefinedName(java.lang.String, int, int),
setDefinedName(java.lang.String, java.lang.String, int, int)
public void deleteSheets(int sheet,
int sheets)
throws F1Exception
sheet - specifies the sheet index number of the first worksheet to
delete. Do not confuse the sheet index number with the sheet name on the
sheet tab.sheets - specifies how many sheets to delete, beginning with the
worksheet specified by the sheet parameter.insertSheets(int, int)
public void deleteSheet(BookView bookView)
throws SelectionException,
InvalidArgumentException,
AccessDeniedException
Deletes the sheets selected in the specified view.
bookView - The view whose active sheet is the insertion point for the new sheets.insertSheet(BookView),
deleteSheet(Range),
BookModel.deleteSheet()
public void deleteSheet(Range range)
throws SelectionException,
InvalidArgumentException,
AccessDeniedException
Deletes the specified sheets.
range - A range object specifying the sheets to be deleted.range contains all visible sheets in the workbook.insertSheet(BookView),
deleteSheet(BookView),
BookModel.deleteSheet(Range)public Book findBook(java.lang.String bookName)
bookName - the name of the workbook to find.Book object. Returns null if the specified Book
object is not found.public void forceRecalc()
checkRecalc(),
isAutoRecalc(),
recalc(),
setAutoRecalc(boolean)
public java.lang.String formatRCNr(int row,
int col,
boolean absRow,
boolean absCol)
row - the row to format.col - the column to format.absRow - boolean. true = the row should be formatted as
absolute.absCol - boolean. true = the column should be formatted as
absolute.
public void gc(boolean collectFormats,
boolean collectFormulas)
As a general rule, resources associated with formatting are garbage collected only when a workbook is saved, whereas formula information is normally garbage collected by a background thread after recalculation is complete, as well as when a workbook is saved. This normal operation has proven to be more than adequate for normal interactive use.
In some circumstances it might be necessary to call this method from time to time to prevent e.Spreadsheet from keeping too much of this stale information around.
If you are using
com.f1j.ss.Book directly (as you might in a
server environment), there is no background thread cleaning up the formula
information. If your application is making many dynamic changes of a
non-repetitive nature to formulas or defined names, you will probably need
to call Book.gc(false, true) from time to time to keep Formula
One from leaking memory. Note that, because all workbooks within a group
share one set of formula information, this operation garbage collects formula
information for all workbooks in a group.If your application never writes out a workbook to a workbook format (Excel or e.Spreadsheet), and is making many non-repetitive, dynamic changes to workbook formatting (cell formats, fonts, validation rules), you will probably need to call
Book.gc(true, false) from time to time to
keep e.Spreadsheet from leaking memory.Saved workbook files never contain stale formatting or formula information.
Initializing a workbook or reading a new workbook into a workbook always forces garbage collection to occur.
collectFormats - boolean. true to do garbage collection on
the formatting information.collectFormulas - boolean. true to do garbage collection on
the formula information for all workbooks in the same group as the specified
workbook.
public CellFormat getCellFormat(int sheet1,
int row1,
int col1,
int sheet2,
int row2,
int col2)
throws F1Exception
sheet1 - the beginning sheet.row1 - the first row in the range.col1 - the first column in the range.sheet2 - the ending sheet.row2 - the ending row in the range.col2 - the ending column in the range.
Rows are indexed from top to bottom beginning with 0. Sheets and columns are
indexed from left to right beginning with 0.public short getColWidthUnits()
eColWidthUnitsNormal = 0
eColWidthUnitsTwips = 1BookModel.setColWidthUnits(short)public DataSet getDefaultDataSet()
setDefaultDataSet(com.f1j.data.DataSet),
DataSet
public void setDefaultDataSet(DataSet dataSet)
throws InvalidArgumentException
dataSet - The DataSet that should be used as the default for this book.getDefaultDataSet(),
DataSet
public java.lang.String getDefinedName(java.lang.String name,
int row,
int col)
throws F1Exception
name - the defined name.row - a relative defined name definition will be adjusted so it
is relative to this row.col - a relative defined name definition will be adjusted so it
is relative to this column.deleteDefinedName(java.lang.String),
setDefinedName(java.lang.String, java.lang.String, int, int)public int getDefinedNameCount()
setDefinedName(java.lang.String, java.lang.String, int, int)public Document getDocument()
Document object associated with this book.public PivotGroup getPivotGroup()
public ReportFunctionsGroup getReportFunctionsGroup()
public java.lang.String getGroupName()
setGroupName(java.lang.String)public java.lang.String getHyperlinkBase()
setHyperlinkBase(java.lang.String)public int getIterationMax()
setIterationEnabled(boolean),
setIterationMax(int)public double getIterationMaxChange()
setIterationMaxChange(double)public long getModifiedCount()
getModifiedCount() method was called.BookImpl.getModifiedCount(),
ModifiedEvent,
ModifiedListener,
ReadResults.isModified()public java.lang.String getName()
setName(java.lang.String),
getCodeName()public java.lang.String getCodeName()
setCodeName(java.lang.String),
getName()public ReadResults getReadResults()
Document.getDocumentSaveOptions(), Document.getDocumentType()ReadResults
object returned contains the file properties associated with the most recent
read and/or write operations performed on this workbook.
If no read or write operation has ever been performed on this workbook, a valid object with default settings is returned.
read(byte[]),
write(com.f1j.ss.Sheet, short),
ReadResultspublic Sheet getSheet(int sheet)
sheet - the index number of the sheet to return; 0-based.getSheetCount(),
BookModel.setSheet(int)public int getSheetCount()
setNumSheets(int)public int getVersion()
getVersionString()public java.lang.String getVersionString()
getVersion()public boolean hasPivotGroup()
Returns true if the book has a PivotRange group.
In applications where the presence of PivotRange group without actual PivotRanges is considered undesirable because of memory footprint or file size concerns, this method should be called to see if a group already exist in the book. This way the application can avoid a call to the getPivotGroup method, which would automatically create a PivotRange group.
true/falsegetPivotGroup()public boolean hasReportFunctionsGroup()
Returns true if the book has a ReportFunctionsGroup.
In applications where the presence of ReportFunctionsGroup without actual Report Functions is considered undesirable because of memory footprint or file size concerns, this method should be called to see if a group already exist in the book. This way the application can avoid a call to the getReportFunctionsGroup method, which would automatically create a ReportFunctionsGroup. \ *
true/falsegetReportFunctionsGroup()public void initBook()
write(com.f1j.ss.Sheet, short)
public void insertSheets(int sheet,
int sheets)
throws F1Exception
sheet - identifies the index number of the worksheet in front of which
you want to insert the new sheet or sheets. Sheets are indexed from left to
right beginning with 0. Do not confuse the sheet index number with the sheet
name that appears on the sheet tab.sheets - determines how many sheets are inserted.deleteSheets(int, int)
public void insertSheet(BookView bookView)
throws SelectionException,
InvalidArgumentException,
AccessDeniedException
Inserts one or more sheets before the active sheet of the specified view.
The number of sheets inserted is the same as the number of sheets selected. However, if the selected sheets are not contiguous, an exception is thrown.
bookView - The view whose active sheet is the insertion point for the new sheets.deleteSheet(BookView),
BookModel.insertSheet()public boolean isAutoRecalc()
true = automatic recalc is on.forceRecalc(),
checkRecalc(),
recalc(),
setAutoRecalc(boolean)public boolean isColWidthInTwips()
true = column widths stored in twips.public boolean isIterationEnabled()
true if iteration is enabled.
Iteration can be used to resolve circular references. e.Spreadsheet calculates
until it has iterated the number of times specified by the maximum number of
iterations set in the setIterationMax method or until
all cells change by less than the amount specified as the maximum iteration
change value in the setIterationMaxChange method.
Iteration is enabled by calling the setIterationEnabled method.true = iteration is enabled.setIterationEnabled(boolean)public boolean isPrecisionAsDisplayed()
true if all cell values are rounded to the displayed
precision.
If true, the value in each cell is rounded to the precision
displayed in the cell. If false, the value in each cell is
stored as entered or calculated.true = cell values are rounded.setPrecisionAsDisplayed(boolean)
public short read(byte[] blob)
throws F1Exception
Document.Document(com.f1j.util.Group, byte[], DocumentOpenCallback)blob - a reference to a byte array.read(byte[]),
write(com.f1j.ss.Sheet, short),
writeToBlob()
public ReadResults read(byte[] blob,
com.f1j.ss.ReadParams rp)
throws F1Exception
Document.Document(com.f1j.util.Group, byte[], DocumentOpenCallback)blob - reference to a byte array.rp - parameters for this read operation.ReadParams,
ReadResults,
read(byte[]),
write(com.f1j.ss.Sheet, short),
writeToBlob()
public short read(java.io.InputStream inputStream)
throws java.io.IOException,
F1Exception
Document.Document(com.f1j.util.Group, java.io.InputStream, DocumentOpenCallback)inputStream - the
input stream to read from.readFromBlob(byte[]),
write(com.f1j.ss.Sheet, short)
public ReadResults read(java.io.InputStream inputStream,
com.f1j.ss.ReadParams rp)
throws java.io.IOException,
F1Exception
Document.Document(com.f1j.util.Group, java.io.InputStream, DocumentOpenCallback)inputStream - the
input stream to read from.rp - parameters for this read operation.ReadParams,
ReadResults,
readFromBlob(byte[]),
write(com.f1j.ss.Sheet, short)
public short read(java.io.InputStream inputStream,
short codePage)
throws java.io.IOException,
F1Exception
Document.Document(com.f1j.util.Group, java.io.InputStream, DocumentOpenCallback)inputStream - the
input stream to read from.codePage - the default code page.readFromBlob(byte[]),
write(com.f1j.ss.Sheet, short)
public short read(java.lang.String fileName)
throws java.io.IOException,
F1Exception
Document.Document(com.f1j.util.Group, java.io.File, boolean, DocumentOpenCallback)fileName - the path and filename of the workbook.
eFileExcel5
eFileExcel97
eFileExcel97And5
eFileFormulaOne3
eFileFormulaOne6
eFileFormulaOne7
eFileESpreadsheet11
eFileTabbedTextwrite(com.f1j.ss.Sheet, short)
public ReadResults read(java.lang.String fileName,
com.f1j.ss.ReadParams rp)
throws java.io.IOException,
F1Exception
Document.Document(com.f1j.util.Group, java.io.File, boolean, DocumentOpenCallback)fileName - the path and filename of the workbook.rp - parameters for this read operation.ReadParams,
ReadResults,
write(com.f1j.ss.Sheet, short)
public short readFromBlob(byte[] blob)
throws java.io.IOException,
F1Exception
Document.Document(com.f1j.util.Group, byte[], DocumentOpenCallback)blob - reference to a byte array.read(byte[]),
write(com.f1j.ss.Sheet, short),
writeToBlob()
public ReadResults readFromBlob(byte[] blob,
com.f1j.ss.ReadParams rp)
throws java.io.IOException,
F1Exception
Document.Document(com.f1j.util.Group, byte[], DocumentOpenCallback)blob - reference to a byte array.rp - parameters for this read operation.ReadParams,
ReadResults,
read(byte[]),
write(com.f1j.ss.Sheet, short),
writeToBlob()
public void recalc()
throws F1Exception
forceRecalc(),
checkRecalc(),
isAutoRecalc(),
setAutoRecalc(boolean)public void setAutoRecalc(boolean autoRecalc)
autoRecalc - boolean. true = the workbook recalculates
automatically, as needed.forceRecalc(),
checkRecalc(),
isAutoRecalc(),
recalc()
public void setDefinedName(java.lang.String name,
java.lang.String formula,
int row,
int col)
throws F1Exception
name - A defined name. Enter an existing name if you are returning the
formula associated with the name or changing the value associated with the
name. Enter a unique name if you are creating a new value.formula - Describes the range represented by name. A name can refer to a
cell, a group of cells, a value, or a formula. When setting name, do not
include a leading equal sign (=) in the formula.row - relative row references will be relative to this row.col - relative column references will be relative to this column.getDefinedName(java.lang.String, int, int)
public void setDefinedName(java.lang.String name,
java.lang.String formula,
int row,
int col,
boolean param,
boolean strip,
short type)
throws F1Exception
name - A defined name. Enter an existing name if you are returning the
formula associated with the name or changing the value associated with the
name. Enter a unique name if you are creating a new value.formula - Describes the range represented by name. A name can refer to a
cell, a group of cells, a value, or a formula. When setting name, do not
include a leading equal sign (=) in the formula.row - relative row references will be relative to this row.col - relative column references will be relative to this column.param - true if this is a report parameter.strip - true to remove this parameter when saving to Excel format (ignored if param is false).type - Indicates the type of parameter (eParamString, eParamInteger, eParamDouble,
eParamDate, eParamCurrency). This is ignored if param is false.getDefinedName(java.lang.String, int, int)
public void setDefinedName(java.lang.String name,
java.lang.String formula,
Sheet sheet,
int row,
int col)
throws F1Exception
name - A defined name. Enter an existing name if you are returning the
formula associated with the name or changing the value associated with the
name. Enter a unique name if you are creating a new value.formula - Describes the range represented by name. A name can refer to a
cell, a group of cells, a value, or a formula. When setting name, do not
include a leading equal sign (=) in the formula.sheet - the sheet to use for cell references that do not specify a sheet.row - relative row references will be relative to this row.col - relative column references will be relative to this column.getDefinedName(java.lang.String, int, int)
public void setDefinedName(java.lang.String name,
java.lang.String formula,
Sheet sheet,
int row,
int col,
boolean param,
boolean strip,
short type)
throws F1Exception
name - A defined name. Enter an existing name if you are returning the
formula associated with the name or changing the value associated with the
name. Enter a unique name if you are creating a new value.formula - Describes the range represented by name. A name can refer to a
cell, a group of cells, a value, or a formula. When setting name, do not
include a leading equal sign (=) in the formula.sheet - the sheet to use for cell references that do not specify a sheet.row - relative row references will be relative to this row.col - relative column references will be relative to this column.param - true if this is a report parameter.strip - true to remove this parameter when saving to Excel format (ignored if param is false).type - the type of Parameter (eParamString, eParamInteger, eParamDouble, eParamDate, or eParamCurrency) this is ignored if param is false.getDefinedName(java.lang.String, int, int)
public void setGroupName(java.lang.String group)
throws F1Exception
Disadvantages of putting multiple workbooks in the same group are:
group - the new group name for this workbook. A value of null or ""
will put the workbook in it's own group.getGroupName(),
JBook.destroy()public void setHyperlinkBase(java.lang.String s)
getHyperlinkBase()public void setIterationEnabled(boolean iterationEnabled)
iterationEnabled - boolean. true = iteration is enabled.isIterationEnabled(),
setIterationMax(int),
setIterationMaxChange(double)public void setIterationMax(int iterationMax)
iterationMax - Maximum number of iterations.getIterationMax(),
setIterationEnabled(boolean),
setIterationMaxChange(double)public void setIterationMaxChange(double iterationMaxChange)
iterationMaxChange - The maximum change value for iterations.getIterationMaxChange(),
setIterationMaxChange(double)
public void setNumSheets(int sheets)
throws F1Exception
sheets - the number of worksheets that make up the workbook.getSheetCount(),
insertSheets(int, int),
deleteSheets(int, int)public void setPrecisionAsDisplayed(boolean precisionAsDisplayed)
precisionAsDisplayed - boolean. If true, the value in each
cell is rounded to the precision displayed in the cell. If false,
the value is stored as entered or calculated.isPrecisionAsDisplayed()public void setName(java.lang.String name)
MySheet, you can
refer to Sheet1!A1 in that workbook by entering the formula
[MySheet]Sheet1!A1 in another workbook.name - the new workbook name.getName(),
setCodeName(java.lang.String)
public void setCodeName(java.lang.String codeName)
throws F1Exception
codeName - the new VBA object name of the workbook.getCodeName(),
setName(java.lang.String)
public byte[] write(Sheet sheet,
short eFileType)
throws F1Exception
Document.fileSaveCopyAsByteArray(DocumentType, DocumentSaveCallback)read
methods to load a spreadsheet into the book or call the
Book.initBook method.sheet - the sheet to write if the file type is
eFileTabbedText or eFileTabbedTextValuesOnly.
This value is ignored for other file types and may be null.eFileType - Constant that describes how the data in the workbook is saved.
eFileTabbedText
eFileFormulaOne3
eFileFormulaOne6
eFileFormulaOne7
eFileESpreadsheet11
eFileExcel5
eFileExcel97
eFileExcel97And5
eFileTabbedTextValuesOnly
eFileCurrentFormatread(byte[]),
write(com.f1j.ss.Sheet, short),
readFromBlob(byte[])
public byte[] write(Sheet sheet,
com.f1j.ss.WriteParams wp)
throws F1Exception
Document.fileSaveCopyAsByteArray(DocumentType, DocumentSaveCallback)read
methods to load a spreadsheet into the book or call the
Book.initBook method.sheet - the sheet to write if the file type is one of the tabbed
text or Unicode text types. This value is ignored for other file types
and may be null.wp - parameters for this write operation.wp parameter.WriteParams,
read(byte[]),
write(com.f1j.ss.Sheet, short),
readFromBlob(byte[])
public boolean write(Sheet sheet,
java.io.OutputStream stream,
short eFileType)
throws java.io.IOException,
F1Exception
Document.fileSaveCopyAs(java.io.OutputStream, DocumentType, DocumentSaveCallback)sheet - the sheet to write if the file type is
eFileTabbedText or eFileTabbedTextValuesOnly.
This value is ignored for other file types and may be null.stream -
java.io.Outputstream that describes where to save the file.eFileType - Constant that describes how the data in the workbook is saved.
eFileTabbedText
eFileFormulaOne3
eFileFormulaOne6
eFileFormulaOne7
eFileESpreadsheet11
eFileExcel5
eFileExcel97
eFileExcel97And5
eFileTabbedTextValuesOnly
eFileCurrentFormat