|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.extentech.ExtenXLS.DocumentHandle
com.extentech.ExtenDOC.DocHandle
com.extentech.ExtenXLS.web.MemeDocument
com.extentech.ExtenXLS.web.MemeWorkBook
public class MemeWorkBook
This class provides Saving and Reconstituting WorkBooks as memes in the Extentech KB schema.
| Field Summary |
|---|
| Fields inherited from class com.extentech.ExtenXLS.web.MemeDocument |
|---|
ACCESS_STATUS_PRIVATE, ACCESS_STATUS_PUBLIC, ACCESS_STATUS_SHARED |
| Fields inherited from interface com.extentech.ExtenXLS.WorkBook |
|---|
ALLOWDUPES, CALCULATE_ALWAYS, CALCULATE_AUTO, CALCULATE_EXPLICIT, DEBUG_HIGH, DEBUG_LOW, DEBUG_MEDIUM, SHAREDUPES, STRING_ENCODING_AUTO, STRING_ENCODING_COMPRESSED, STRING_ENCODING_UNICODE |
| Constructor Summary | |
|---|---|
MemeWorkBook()
May 16, 2010 |
|
MemeWorkBook(byte[] buf)
May 25, 2010 |
|
MemeWorkBook(Connection dbc,
byte[] in)
May 16, 2010 |
|
MemeWorkBook(Connection dbcon,
File fx)
May 16, 2010 |
|
MemeWorkBook(Connection cx,
int mix,
boolean storeAsFile,
boolean xmlStorage)
May 16, 2010 |
|
MemeWorkBook(String finpath,
com.extentech.swingtools.ProgressDialog progdialog)
May 25, 2010 |
|
| Method Summary | |
|---|---|
void |
addProperty(String name,
Object val)
Sets the value of a property in the workbook property store. |
boolean |
addSheetFromWorkBook(WorkBookHandle sourceBook,
String sourceSheetName,
String destSheetName)
Deprecated. |
boolean |
addSheetFromWorkBookWithFormatting(WorkBookHandle sourceBook,
String sourceSheetName,
String destSheetName)
Deprecated. |
WorkSheetHandle |
addWorkSheet(WorkSheetHandle sourceSheet)
|
WorkSheetHandle |
addWorkSheet(WorkSheetHandle sourceSheet,
String NewSheetName)
Inserts a new worksheet and places it at the end of the workbook |
void |
calculateFormulas()
Iterate through the formulas in this WorkBook and call the calculate method on each. |
void |
close()
Closes the WorkBook and releases resources. |
void |
copyChartToSheet(ChartHandle chart,
WorkSheetHandle sheet)
Copies an existing Chart to another WorkSheet |
void |
copyChartToSheet(String chartname,
String sheetname)
Copies an existing Chart to another WorkSheet |
WorkSheetHandle |
copyWorkSheet(String SourceSheetName,
String NewSheetName)
Copy (duplicate) a worksheet in the workbook and add it to the end of the workbook with a new name |
ChartHandle |
createChart(String name,
WorkSheetHandle wsh)
|
NameHandle |
createNamedRange(String name,
String rangeDef)
|
WorkSheetHandle |
createWorkSheet(String name)
Creates a new worksheet and places it at the end of the workbook |
WorkSheetHandle |
createWorkSheet(String name,
int sheetpos)
|
void |
deleteChart(String chartname,
WorkSheetHandle wsh)
|
boolean |
equals(Object obj)
|
void |
finalize()
Closes the WorkBook and releases resources. |
byte[] |
getBytes()
Deprecated. |
CellHandle |
getCell(String address)
Returns the Cell at the specified Location |
CellRange[] |
getCellRanges()
|
CellHandle[] |
getCells()
Returns all of the Cells contained in the WorkBook |
ChartHandle |
getChart(String chartname)
May 15, 2010 |
ChartHandle |
getChartById(int id)
|
ChartHandle[] |
getCharts()
May 15, 2010 |
FormatHandle[] |
getConditionalFormats()
|
com.extentech.formats.DOC.DocumentFactory |
getFactory()
returns a low-level DocumentFactory NOTE: The WorkBook class is NOT a part of the published API. |
FormatHandle[] |
getFormats()
May 15, 2010 |
int |
getFormulaCalculationMode()
|
FormulaHandle |
getFormulaHandle(String celladdress)
|
ImageHandle |
getImage(String imagename)
|
ImageHandle[] |
getImages()
|
boolean |
getIsExcel2007()
|
String |
getName()
Returns the name of this WorkBook |
NameHandle |
getNamedRange(String rangename)
Returns a Named Range Handle |
NameHandle |
getNamedRangeInScope(String rangename)
|
NameHandle[] |
getNamedRanges()
Returns all Named Range Handles |
NameHandle[] |
getNamedRangesInScope()
|
WorkBookHandle |
getNoSheetWorkBook()
Returns a WorkBookHandle containing an empty version of this WorkBook. |
int |
getNumCells()
Returns the number of Cells in this WorkBook |
int |
getNumWorkSheets()
|
PivotTableHandle |
getPivotTable(String ptname)
get a handle to a PivotTable in the WorkBook |
PivotTableHandle[] |
getPivotTables()
get an array of handles to all PivotTables in the WorkBook |
Map |
getProperties()
Retrieves a Map containing the workbook properties store. |
Object |
getProperty(String name)
Retrieves the a property in the workbook property store. |
String |
getStats()
|
String |
getStats(boolean usehtml)
|
com.extentech.formats.XLS.WorkBook |
getWorkBook()
Returns a low-level WorkBook. |
String |
getWorkingDirectory()
Returns the directory containing the ExtenXLS.jar and extenxls.lic files. |
WorkSheetHandle |
getWorkSheet(int sheetnum)
returns the handle to a WorkSheet by name. |
WorkSheetHandle |
getWorkSheet(String handstr)
returns the handle to a WorkSheet by name. |
WorkSheetHandle[] |
getWorkSheets()
Returns an array of handles to all of the WorkSheets in the Workbook. |
String |
getXLSVersionString()
|
int |
hashCode()
|
boolean |
is1904()
|
void |
removeAllWorkSheets()
Removes all of the WorkSheets from this WorkBook. |
void |
reset()
Resets the values of this WorkBookHandle to defaults. |
int |
searchAndReplace(String searchfor,
String replacewith)
Searches all Cel ls in the workbook for the string occurrence and replaces with the replacement text. |
void |
setDebugLevel(int l)
Set the Debugging level. |
void |
setDefaultColWidth(int t)
set Default col width Note: only affects undefined Columns containing Cells |
void |
setDefaultRowHeight(int t)
set Default row height Note: only affects undefined Rows containing Cells |
void |
setDupeStringMode(int mode)
May 15, 2010 |
void |
setFormulaCalculationMode(int CalcMode)
Explicit calcing of formulas |
void |
setName(String nm)
Sets the internal name of this WorkBookHandle. |
void |
setProperties(Map properties)
Replaces the workbook properties store with the given Map. |
void |
setProtected(boolean b)
set the workbook to protected mode Note: the password cannot be decrypted or changed in Excel -- protection can only be set/removed using ExtenXLS |
void |
setStringEncodingMode(int mode)
Set Encoding mode of new Strings added to file. |
String |
toString()
Returns the name of this Sheet. |
void |
write(OutputStream out)
Saves the WorkBookHandle to this opened OutputStream If original file is Excel2007 Format, the template will be written in Excel 2007 (XLSX) Format. |
void |
write(OutputStream out,
boolean Excel2007Format)
|
void |
write(String fname)
Saves this WorkBookHandle to filename and path fname if the filename ends with ".xlsx" or ".xlsm", the template will be written in Excel 2007 (XLSX) Format. |
void |
write(String fname,
boolean Excel2007Format)
saves this WorkBookHandle to filename and path fname if Excel2007 Format, the template will be written in Excel 2007 (XLSX) Format. |
StringBuffer |
writeBytes(OutputStream bout)
|
void |
writeXLSXBytes(OutputStream bout)
|
| Methods inherited from class com.extentech.ExtenDOC.DocHandle |
|---|
getAllText, getFormatHandles, getPage, getParagraphs, getTextRangeHandles, getVersion, getXHTML, setFileName, setXHTML |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.extentech.toolkit.LogOutputter |
|---|
log, log, log |
| Constructor Detail |
|---|
public MemeWorkBook(Connection cx,
int mix,
boolean storeAsFile,
boolean xmlStorage)
cx - mix - storeAsFile - xmlStorage - public MemeWorkBook()
public MemeWorkBook(Connection dbc,
byte[] in)
dbc - in -
public MemeWorkBook(Connection dbcon,
File fx)
dbcon - fx - public MemeWorkBook(byte[] buf)
buf -
public MemeWorkBook(String finpath,
com.extentech.swingtools.ProgressDialog progdialog)
finpath - progdialog - | Method Detail |
|---|
public void addProperty(String name,
Object val)
com.extentech.ExtenDOC.DocHandle
addProperty in interface DocumentaddProperty in interface WorkBookaddProperty in class com.extentech.ExtenDOC.DocHandlename - val - DocumentHandle.addProperty(java.lang.String, java.lang.Object)
public boolean addSheetFromWorkBook(WorkBookHandle sourceBook,
String sourceSheetName,
String destSheetName)
WorkBook
addSheetFromWorkBook in interface WorkBooksourceBook - sourceSheetName - destSheetName -
WorkBookHandle.addSheetFromWorkBook(com.extentech.ExtenXLS.WorkBookHandle, java.lang.String, java.lang.String)
public boolean addSheetFromWorkBookWithFormatting(WorkBookHandle sourceBook,
String sourceSheetName,
String destSheetName)
sourceBook - sourceSheetName - destSheetName -
WorkBookHandle.addSheetFromWorkBookWithFormatting(com.extentech.ExtenXLS.WorkBookHandle, java.lang.String, java.lang.String)
public WorkSheetHandle addWorkSheet(WorkSheetHandle sourceSheet,
String NewSheetName)
WorkBook
addWorkSheet in interface WorkBooksourceSheet - NewSheetName -
WorkBookHandle.addWorkSheet(com.extentech.ExtenXLS.WorkSheetHandle, java.lang.String)public WorkSheetHandle addWorkSheet(WorkSheetHandle sourceSheet)
sourceSheet -
WorkBookHandle.addWorkSheet(com.extentech.ExtenXLS.WorkSheetHandle)
public void calculateFormulas()
throws com.extentech.formats.XLS.FunctionNotSupportedException
WorkBook
calculateFormulas in interface WorkBookcom.extentech.formats.XLS.FunctionNotSupportedExceptionWorkBookHandle.calculateFormulas()public void close()
com.extentech.ExtenDOC.DocHandle
close in class com.extentech.ExtenDOC.DocHandleDocumentHandle.close()
public void copyChartToSheet(ChartHandle chart,
WorkSheetHandle sheet)
throws com.extentech.formats.XLS.ChartNotFoundException,
com.extentech.formats.XLS.WorkSheetNotFoundException
WorkBook
copyChartToSheet in interface WorkBookchart - sheet -
com.extentech.formats.XLS.ChartNotFoundException
com.extentech.formats.XLS.WorkSheetNotFoundExceptionWorkBookHandle.copyChartToSheet(com.extentech.ExtenXLS.ChartHandle, com.extentech.ExtenXLS.WorkSheetHandle)
public void copyChartToSheet(String chartname,
String sheetname)
throws com.extentech.formats.XLS.ChartNotFoundException,
com.extentech.formats.XLS.WorkSheetNotFoundException
WorkBook
copyChartToSheet in interface WorkBookchartname - sheetname -
com.extentech.formats.XLS.ChartNotFoundException
com.extentech.formats.XLS.WorkSheetNotFoundExceptionWorkBookHandle.copyChartToSheet(java.lang.String, java.lang.String)
public WorkSheetHandle copyWorkSheet(String SourceSheetName,
String NewSheetName)
throws com.extentech.formats.XLS.WorkSheetNotFoundException
WorkBook
copyWorkSheet in interface WorkBookSourceSheetName - NewSheetName -
com.extentech.formats.XLS.WorkSheetNotFoundExceptionWorkBookHandle.copyWorkSheet(java.lang.String, java.lang.String)
public ChartHandle createChart(String name,
WorkSheetHandle wsh)
name - wsh -
WorkBookHandle.createChart(java.lang.String, com.extentech.ExtenXLS.WorkSheetHandle)
public NameHandle createNamedRange(String name,
String rangeDef)
name - rangeDef -
WorkBookHandle.createNamedRange(java.lang.String, java.lang.String)
public WorkSheetHandle createWorkSheet(String name,
int sheetpos)
name - sheetpos -
WorkBookHandle.createWorkSheet(java.lang.String, int)public WorkSheetHandle createWorkSheet(String name)
WorkBook
createWorkSheet in interface WorkBookname -
WorkBookHandle.createWorkSheet(java.lang.String)
public void deleteChart(String chartname,
WorkSheetHandle wsh)
throws com.extentech.formats.XLS.ChartNotFoundException
chartname - wsh -
com.extentech.formats.XLS.ChartNotFoundExceptionWorkBookHandle.deleteChart(java.lang.String, com.extentech.ExtenXLS.WorkSheetHandle)public boolean equals(Object obj)
equals in class Objectobj -
Object.equals(java.lang.Object)public void finalize()
com.extentech.ExtenDOC.DocHandle
finalize in class com.extentech.ExtenDOC.DocHandleDocumentHandle.finalize()public byte[] getBytes()
com.extentech.ExtenDOC.DocHandle
getBytes in interface DocumentgetBytes in interface WorkBookgetBytes in class com.extentech.ExtenDOC.DocHandleWorkBookHandle.getBytes()
public CellHandle getCell(String address)
throws com.extentech.formats.XLS.CellNotFoundException,
com.extentech.formats.XLS.WorkSheetNotFoundException
WorkBook
getCell in interface WorkBookaddress -
com.extentech.formats.XLS.CellNotFoundException
com.extentech.formats.XLS.WorkSheetNotFoundExceptionWorkBookHandle.getCell(java.lang.String)public CellRange[] getCellRanges()
WorkBookHandle.getCellRanges()public CellHandle[] getCells()
WorkBook
getCells in interface WorkBookWorkBookHandle.getCells()
public ChartHandle getChart(String chartname)
throws com.extentech.formats.XLS.ChartNotFoundException
com.extentech.ExtenDOC.DocHandle
getChart in interface DocumentgetChart in interface WorkBookgetChart in class com.extentech.ExtenDOC.DocHandlechartname -
com.extentech.formats.XLS.ChartNotFoundExceptionWorkBookHandle.getChart(java.lang.String)
public ChartHandle getChartById(int id)
throws com.extentech.formats.XLS.ChartNotFoundException
id -
com.extentech.formats.XLS.ChartNotFoundExceptionWorkBookHandle.getChartById(int)public ChartHandle[] getCharts()
com.extentech.ExtenDOC.DocHandle
getCharts in interface DocumentgetCharts in interface WorkBookgetCharts in class com.extentech.ExtenDOC.DocHandleWorkBookHandle.getCharts()public FormatHandle[] getConditionalFormats()
WorkBookHandle.getConditionalFormats()public com.extentech.formats.DOC.DocumentFactory getFactory()
com.extentech.ExtenDOC.DocHandle
getFactory in class com.extentech.ExtenDOC.DocHandleDocumentHandle.getFactory()public FormatHandle[] getFormats()
com.extentech.ExtenDOC.DocHandle
getFormats in interface DocumentgetFormats in interface WorkBookgetFormats in class com.extentech.ExtenDOC.DocHandleWorkBookHandle.getFormats()public int getFormulaCalculationMode()
getFormulaCalculationMode in interface WorkBookWorkBookHandle.getFormulaCalculationMode()
public FormulaHandle getFormulaHandle(String celladdress)
throws com.extentech.formats.XLS.FormulaNotFoundException
celladdress -
com.extentech.formats.XLS.FormulaNotFoundExceptionWorkBookHandle.getFormulaHandle(java.lang.String)
public ImageHandle getImage(String imagename)
throws com.extentech.formats.XLS.ImageNotFoundException
imagename -
com.extentech.formats.XLS.ImageNotFoundExceptionWorkBookHandle.getImage(java.lang.String)public ImageHandle[] getImages()
WorkBookHandle.getImages()public boolean getIsExcel2007()
WorkBookHandle.getIsExcel2007()public String getName()
com.extentech.ExtenDOC.DocHandle
getName in interface DocumentgetName in interface WorkBookgetName in class com.extentech.ExtenDOC.DocHandleWorkBookHandle.getName()
public NameHandle getNamedRange(String rangename)
throws com.extentech.formats.XLS.CellNotFoundException
WorkBook
getNamedRange in interface WorkBookrangename -
com.extentech.formats.XLS.CellNotFoundExceptionWorkBookHandle.getNamedRange(java.lang.String)
public NameHandle getNamedRangeInScope(String rangename)
throws com.extentech.formats.XLS.CellNotFoundException
rangename -
com.extentech.formats.XLS.CellNotFoundExceptionWorkBookHandle.getNamedRangeInScope(java.lang.String)public NameHandle[] getNamedRanges()
WorkBook
getNamedRanges in interface WorkBookWorkBookHandle.getNamedRanges()public NameHandle[] getNamedRangesInScope()
WorkBookHandle.getNamedRangesInScope()public WorkBookHandle getNoSheetWorkBook()
WorkBook
getNoSheetWorkBook in interface WorkBookWorkBookHandle.getNoSheetWorkBook()public int getNumCells()
WorkBook
getNumCells in interface WorkBookWorkBookHandle.getNumCells()public int getNumWorkSheets()
WorkBookHandle.getNumWorkSheets()
public PivotTableHandle getPivotTable(String ptname)
throws com.extentech.formats.XLS.PivotTableNotFoundException
WorkBook
getPivotTable in interface WorkBookptname -
com.extentech.formats.XLS.PivotTableNotFoundExceptionWorkBookHandle.getPivotTable(java.lang.String)
public PivotTableHandle[] getPivotTables()
throws com.extentech.formats.XLS.PivotTableNotFoundException
WorkBook
getPivotTables in interface WorkBookcom.extentech.formats.XLS.PivotTableNotFoundExceptionWorkBookHandle.getPivotTables()public Map getProperties()
com.extentech.ExtenDOC.DocHandle
getProperties in class com.extentech.ExtenDOC.DocHandleDocumentHandle.getProperties()public Object getProperty(String name)
com.extentech.ExtenDOC.DocHandle
getProperty in interface DocumentgetProperty in interface WorkBookgetProperty in class com.extentech.ExtenDOC.DocHandlename -
DocumentHandle.getProperty(java.lang.String)public String getStats()
WorkBookHandle.getStats()public String getStats(boolean usehtml)
usehtml -
WorkBookHandle.getStats(boolean)public com.extentech.formats.XLS.WorkBook getWorkBook()
WorkBook
getWorkBook in interface WorkBookWorkBookHandle.getWorkBook()public String getWorkingDirectory()
com.extentech.ExtenDOC.DocHandle
getWorkingDirectory in interface DocumentgetWorkingDirectory in interface WorkBookgetWorkingDirectory in class com.extentech.ExtenDOC.DocHandleDocumentHandle.getWorkingDirectory()
public WorkSheetHandle getWorkSheet(int sheetnum)
throws com.extentech.formats.XLS.WorkSheetNotFoundException
WorkBook
getWorkSheet in interface WorkBooksheetnum -
com.extentech.formats.XLS.WorkSheetNotFoundExceptionWorkBookHandle.getWorkSheet(int)
public WorkSheetHandle getWorkSheet(String handstr)
throws com.extentech.formats.XLS.WorkSheetNotFoundException
WorkBook
getWorkSheet in interface WorkBookhandstr -
com.extentech.formats.XLS.WorkSheetNotFoundExceptionWorkBookHandle.getWorkSheet(java.lang.String)public WorkSheetHandle[] getWorkSheets()
WorkBook
getWorkSheets in interface WorkBookWorkBookHandle.getWorkSheets()public String getXLSVersionString()
WorkBookHandle.getXLSVersionString()public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean is1904()
WorkBookHandle.is1904()public void removeAllWorkSheets()
WorkBook
removeAllWorkSheets in interface WorkBookWorkBookHandle.removeAllWorkSheets()public void reset()
com.extentech.ExtenDOC.DocHandle
reset in interface Documentreset in interface WorkBookreset in class com.extentech.ExtenDOC.DocHandleDocumentHandle.reset()
public int searchAndReplace(String searchfor,
String replacewith)
com.extentech.ExtenDOC.DocHandle
searchAndReplace in class com.extentech.ExtenDOC.DocHandlesearchfor - replacewith -
WorkBookHandle.searchAndReplace(java.lang.String, java.lang.String)public void setDebugLevel(int l)
com.extentech.ExtenDOC.DocHandle
setDebugLevel in interface DocumentsetDebugLevel in interface WorkBooksetDebugLevel in class com.extentech.ExtenDOC.DocHandlel - DocumentHandle.setDebugLevel(int)public void setDefaultColWidth(int t)
WorkBook
setDefaultColWidth in interface WorkBookt - WorkBookHandle.setDefaultColWidth(int)public void setDefaultRowHeight(int t)
WorkBook
setDefaultRowHeight in interface WorkBookt - WorkBookHandle.setDefaultRowHeight(int)public void setDupeStringMode(int mode)
com.extentech.ExtenDOC.DocHandle
setDupeStringMode in interface DocumentsetDupeStringMode in interface WorkBooksetDupeStringMode in class com.extentech.ExtenDOC.DocHandlemode - WorkBookHandle.setDupeStringMode(int)public void setFormulaCalculationMode(int CalcMode)
WorkBook
setFormulaCalculationMode in interface WorkBookCalcMode - WorkBookHandle.setFormulaCalculationMode(int)public void setName(String nm)
com.extentech.ExtenDOC.DocHandle
setName in interface DocumentsetName in interface WorkBooksetName in class com.extentech.ExtenDOC.DocHandlenm - DocumentHandle.setName(java.lang.String)public void setProperties(Map properties)
com.extentech.ExtenDOC.DocHandle
setProperties in class com.extentech.ExtenDOC.DocHandleproperties - DocumentHandle.setProperties(java.util.Map)public void setProtected(boolean b)
Document
setProtected in interface DocumentsetProtected in interface WorkBooksetProtected in class com.extentech.ExtenDOC.DocHandleb - WorkBookHandle.setProtected(boolean)public void setStringEncodingMode(int mode)
Document
setStringEncodingMode in interface DocumentsetStringEncodingMode in interface WorkBooksetStringEncodingMode in class com.extentech.ExtenDOC.DocHandlemode - WorkBookHandle.setStringEncodingMode(int)public String toString()
com.extentech.ExtenDOC.DocHandle
toString in interface DocumenttoString in interface WorkBooktoString in class com.extentech.ExtenDOC.DocHandleDocumentHandle.toString()
public void write(OutputStream out,
boolean Excel2007Format)
out - Excel2007Format - WorkBookHandle.write(java.io.OutputStream, boolean)public void write(OutputStream out)
com.extentech.ExtenDOC.DocHandle
write in class com.extentech.ExtenDOC.DocHandleout - WorkBookHandle.write(java.io.OutputStream)
public void write(String fname,
boolean Excel2007Format)
com.extentech.ExtenDOC.DocHandle
write in class com.extentech.ExtenDOC.DocHandlefname - Excel2007Format - WorkBookHandle.write(java.lang.String, boolean)public void write(String fname)
com.extentech.ExtenDOC.DocHandle
write in class com.extentech.ExtenDOC.DocHandlefname - WorkBookHandle.write(java.lang.String)public StringBuffer writeBytes(OutputStream bout)
writeBytes in interface DocumentwriteBytes in interface WorkBookwriteBytes in class MemeDocumentbout -
WorkBookHandle.writeBytes(java.io.OutputStream)
public void writeXLSXBytes(OutputStream bout)
throws Exception
bout -
ExceptionWorkBookHandle.writeXLSXBytes(java.io.OutputStream)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||