|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jxl.WorkbookSettings
This is a bean which client applications may use to set various advanced workbook properties. Use of this bean is not mandatory, and its absence will merely result in workbooks being read/written using the default settings
Field Summary | |
static int |
HIDEOBJ_HIDE_ALL
The HIDEOBJ record stores options selected in the Options dialog,View tab. |
static int |
HIDEOBJ_SHOW_ALL
The HIDEOBJ record stores options selected in the Options dialog,View tab. |
static int |
HIDEOBJ_SHOW_PLACEHOLDERS
The HIDEOBJ record stores options selected in the Options dialog,View tab. |
Constructor Summary | |
WorkbookSettings()
Default constructor |
Method Summary | |
int |
getArrayGrowSize()
Accessor for the array grow size property |
boolean |
getAutoFilterDisabled()
Accessor for the autofilter disabled feature |
boolean |
getCellValidationDisabled()
Accessor for the ignore cell validation |
int |
getCharacterSet()
Accessor for the character set. |
boolean |
getDrawingsDisabled()
Gets the drawings disabled flag |
java.lang.String |
getEncoding()
Accessor for the character encoding |
boolean |
getExcel9File()
Has this file been written by excel 2000? |
java.lang.String |
getExcelDisplayLanguage()
Returns the two character ISO 3166 mnemonic used by excel for user language displayto display |
java.lang.String |
getExcelRegionalSettings()
Returns the two character ISO 3166 mnemonic used by excel for its regional settings |
boolean |
getFormulaAdjust()
Accessor for the formula adjust disabled |
jxl.biff.formula.FunctionNames |
getFunctionNames()
Gets the function names. |
boolean |
getGCDisabled()
Accessor for the disabling of garbage collection |
int |
getHideobj()
The HIDEOBJ record stores options selected in the Options dialog,View tab Possible values are: HIDEOBJ_HIDE_ALL, HIDEOBJ_SHOW_ALL and HIDEOBJ_SHOW_PLACEHOLDERS |
boolean |
getIgnoreBlanks()
Accessor for the ignore blanks flag |
int |
getInitialFileSize()
Accessor for the initial file size property |
java.util.Locale |
getLocale()
Returns the locale used by JExcelAPI to read the spreadsheet |
boolean |
getMergedCellCheckingDisabled()
Accessor to retrieve the merged cell checking flag |
boolean |
getNamesDisabled()
Accessor for the disabling of interpretation of named ranges |
boolean |
getPropertySetsDisabled()
Accessor to retrieve the property sets disabled flag |
boolean |
getRationalizationDisabled()
Accessor to retrieve the rationalization flag |
boolean |
getRefreshAll()
When true then Refresh All should be done on all external data ranges and PivotTables when loading the workbook (the default is =0) |
boolean |
getTemplate()
Workbook Is a Template |
java.io.File |
getTemporaryFileDuringWriteDirectory()
Used in conjunction with the UseTemporaryFileDuringWrite setting to set the target directory for the temporary files. |
boolean |
getUseTemporaryFileDuringWrite()
Accessor for the temporary file during write. |
boolean |
getWindowProtected()
|
java.lang.String |
getWriteAccess()
|
void |
setArrayGrowSize(int sz)
Sets the amount of memory by which to increase the amount of memory allocated to storing the workbook data. |
void |
setAutoFilterDisabled(boolean disabled)
Sets the autofilter disabled |
void |
setCellValidationDisabled(boolean cv)
Sets the ignore cell validation flag |
void |
setCharacterSet(int cs)
Sets the character set. |
void |
setDrawingsDisabled(boolean b)
Disables the handling of drawings |
void |
setEncoding(java.lang.String enc)
Sets the encoding for this workbook |
void |
setExcel9File(boolean excel9file)
|
void |
setExcelDisplayLanguage(java.lang.String code)
Sets the language in which the generated file will display |
void |
setExcelRegionalSettings(java.lang.String code)
Sets the regional settings for the generated excel file |
void |
setFormulaAdjust(boolean b)
Setter for the formula adjust disabled property |
void |
setGCDisabled(boolean disabled)
Sets the garbage collection disabled |
void |
setHideobj(int hideobj)
The HIDEOBJ record stores options selected in the Options dialog,View tab Possible values are: HIDEOBJ_HIDE_ALL, HIDEOBJ_SHOW_ALL and HIDEOBJ_SHOW_PLACEHOLDERS |
void |
setIgnoreBlanks(boolean ignoreBlanks)
Sets the ignore blanks flag |
void |
setInitialFileSize(int sz)
Sets the initial amount of memory allocated to store the workbook data when reading a worksheet. |
void |
setLocale(java.util.Locale l)
Sets the locale used by JExcelApi to generate the spreadsheet. |
void |
setMergedCellChecking(boolean b)
Accessor to set the merged cell checking |
void |
setNamesDisabled(boolean b)
Disables the handling of names |
void |
setPropertySets(boolean r)
Sets whether or not to enable any property sets (such as macros) to be copied along with the workbook Leaving this feature enabled will result in the JXL process using more memory |
void |
setRationalization(boolean r)
Sets whether or not to rationalize the cell formats before writing out the sheet. |
void |
setRefreshAll(boolean refreshAll)
When true then Refresh All should be done on all external data ranges and PivotTables when loading the workbook (the default is =0) |
void |
setSuppressWarnings(boolean w)
Accessor to set the suppress warnings flag. |
void |
setTemplate(boolean template)
Workbook Is a Template |
void |
setTemporaryFileDuringWriteDirectory(java.io.File dir)
Used in conjunction with the UseTemporaryFileDuringWrite setting to set the target directory for the temporary files. |
void |
setUseTemporaryFileDuringWrite(boolean temp)
Sets whether a temporary file is used during the generation of the workbook. |
void |
setWindowProtected(boolean windowprotected)
|
void |
setWriteAccess(java.lang.String writeAccess)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int HIDEOBJ_HIDE_ALL
public static final int HIDEOBJ_SHOW_PLACEHOLDERS
public static final int HIDEOBJ_SHOW_ALL
Constructor Detail |
public WorkbookSettings()
Method Detail |
public void setArrayGrowSize(int sz)
sz
- the file size in bytespublic int getArrayGrowSize()
public void setInitialFileSize(int sz)
sz
- the file size in bytespublic int getInitialFileSize()
public boolean getDrawingsDisabled()
public boolean getGCDisabled()
public boolean getNamesDisabled()
public void setNamesDisabled(boolean b)
b
- TRUE to disable the names feature, FALSE otherwisepublic void setDrawingsDisabled(boolean b)
b
- TRUE to disable the names feature, FALSE otherwisepublic void setRationalization(boolean r)
r
- the rationalization flagpublic boolean getRationalizationDisabled()
public boolean getMergedCellCheckingDisabled()
public void setMergedCellChecking(boolean b)
b
- - TRUE to enable merged cell checking, FALSE otherwisepublic void setPropertySets(boolean r)
r
- the property sets flagpublic boolean getPropertySetsDisabled()
public void setSuppressWarnings(boolean w)
w
- the flagpublic boolean getFormulaAdjust()
public void setFormulaAdjust(boolean b)
b
- TRUE to adjust formulas, FALSE otherwisepublic void setLocale(java.util.Locale l)
l
- the localepublic java.util.Locale getLocale()
public java.lang.String getEncoding()
public void setEncoding(java.lang.String enc)
enc
- the encodingpublic jxl.biff.formula.FunctionNames getFunctionNames()
public int getCharacterSet()
public void setCharacterSet(int cs)
cs
- the character set encoding valuepublic void setGCDisabled(boolean disabled)
disabled
- TRUE to disable garbage collection, FALSE to enable itpublic void setIgnoreBlanks(boolean ignoreBlanks)
ignoreBlanks
- TRUE to ignore blanks, FALSE to take them into accountpublic boolean getIgnoreBlanks()
public void setCellValidationDisabled(boolean cv)
cv
- TRUE to disable cell validation, FALSE to enable itpublic boolean getCellValidationDisabled()
public java.lang.String getExcelDisplayLanguage()
public java.lang.String getExcelRegionalSettings()
public void setExcelDisplayLanguage(java.lang.String code)
code
- the two character ISO 3166 country codepublic void setExcelRegionalSettings(java.lang.String code)
code
- the two character ISO 3166 country codepublic boolean getAutoFilterDisabled()
public void setAutoFilterDisabled(boolean disabled)
disabled
- public boolean getUseTemporaryFileDuringWrite()
public void setUseTemporaryFileDuringWrite(boolean temp)
public void setTemporaryFileDuringWriteDirectory(java.io.File dir)
dir
- the directory to which temporary files should be writtenpublic java.io.File getTemporaryFileDuringWriteDirectory()
public void setRefreshAll(boolean refreshAll)
refreshAll
- the refreshAll to setpublic boolean getRefreshAll()
public boolean getTemplate()
public void setTemplate(boolean template)
template
- the template to setpublic boolean getExcel9File()
public void setExcel9File(boolean excel9file)
excel9file
- the excel9file to setpublic boolean getWindowProtected()
public void setWindowProtected(boolean windowprotected)
windowprotected
- the windowprotected to setpublic int getHideobj()
public void setHideobj(int hideobj)
hideobj
- the hideobj to setpublic java.lang.String getWriteAccess()
public void setWriteAccess(java.lang.String writeAccess)
writeAccess
- the writeAccess to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |