|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
WorkBookHandle class.
Use that type instead.
public interface WorkBook
An interface representing an ExtenXLS WorkBook.
| Field Summary | |
|---|---|
static int |
ALLOWDUPES
Deprecated. |
static String |
CALC_MODE_PROP
Deprecated. |
static int |
CALCULATE_ALWAYS
Deprecated. |
static int |
CALCULATE_AUTO
Deprecated. |
static int |
CALCULATE_EXPLICIT
Deprecated. |
static String |
REFTRACK_PROP
Deprecated. |
static int |
SHAREDUPES
Deprecated. |
static int |
STRING_ENCODING_AUTO
Deprecated. |
static int |
STRING_ENCODING_COMPRESSED
Deprecated. |
static int |
STRING_ENCODING_UNICODE
Deprecated. |
| Fields inherited from interface com.extentech.ExtenXLS.Document |
|---|
DEBUG_HIGH, DEBUG_LOW, DEBUG_MEDIUM |
| Method Summary | |
|---|---|
void |
addProperty(String name,
Object val)
Deprecated. add non-Excel property |
boolean |
addSheetFromWorkBook(WorkBookHandle sourceBook,
String sourceSheetName,
String destSheetName)
Deprecated. |
WorkSheetHandle |
addWorkSheet(WorkSheetHandle sht,
String NewSheetName)
Deprecated. Inserts a new worksheet and places it at the end of the workbook |
void |
calculateFormulas()
Deprecated. Iterate through the formulas in this WorkBook and call the calculate method on each. |
void |
copyChartToSheet(ChartHandle chart,
WorkSheetHandle sheet)
Deprecated. Copies an existing Chart to another WorkSheet |
void |
copyChartToSheet(String chartname,
String sheetname)
Deprecated. Copies an existing Chart to another WorkSheet |
WorkSheetHandle |
copyWorkSheet(String SourceSheetName,
String NewSheetName)
Deprecated. Copy (duplicate) a worksheet in the workbook and add it to the end of the workbook with a new name |
WorkSheetHandle |
createWorkSheet(String name)
Deprecated. Creates a new worksheet and places it at the end of the workbook |
byte[] |
getBytes()
Deprecated. Returns a byte Array containing the valid file containing this WorkBook and associated Storages (such as VB files and PivotTables.) This is the actual file data and that can be read from and written to FileOutputStreams and ServletOutputStreams. |
CellHandle |
getCell(String address)
Deprecated. Returns the Cell at the specified Location |
CellHandle[] |
getCells()
Deprecated. Returns all of the Cells contained in the WorkBook |
ChartHandle |
getChart(String chartname)
Deprecated. Returns a Chart Handle |
ChartHandle[] |
getCharts()
Deprecated. Returns all Chart Handles contained in the WorkBook |
FormatHandle[] |
getFormats()
Deprecated. Returns an Array of all the FormatHandles present in the workbook |
int |
getFormulaCalculationMode()
Deprecated. |
String |
getName()
Deprecated. Returns the name of this WorkBook |
NameHandle |
getNamedRange(String rangename)
Deprecated. Returns a Named Range Handle |
NameHandle[] |
getNamedRanges()
Deprecated. Returns all Named Range Handles |
WorkBookHandle |
getNoSheetWorkBook()
Deprecated. Returns a WorkBookHandle containing an empty version of this WorkBook. |
int |
getNumCells()
Deprecated. Returns the number of Cells in this WorkBook |
PivotTableHandle |
getPivotTable(String ptname)
Deprecated. get a handle to a PivotTable in the WorkBook |
PivotTableHandle[] |
getPivotTables()
Deprecated. get an array of handles to all PivotTables in the WorkBook |
Object |
getProperty(String name)
Deprecated. get a non-Excel property |
com.extentech.formats.XLS.WorkBook |
getWorkBook()
Deprecated. Returns a low-level WorkBook. |
WorkSheetHandle |
getWorkSheet(int i)
Deprecated. returns the handle to a WorkSheet by name. |
WorkSheetHandle |
getWorkSheet(String handstr)
Deprecated. returns the handle to a WorkSheet by name. |
WorkSheetHandle[] |
getWorkSheets()
Deprecated. Returns an array of handles to all of the WorkSheets in the Workbook. |
void |
removeAllWorkSheets()
Deprecated. Removes all of the WorkSheets from this WorkBook. |
void |
reset()
Deprecated. Clears all values in a template WorkBook. |
void |
setDebugLevel(int l)
Deprecated. Set the Debugging level. |
void |
setDefaultColWidth(int t)
Deprecated. set Default col width Note: only affects undefined Columns containing Cells |
void |
setDefaultRowHeight(int t)
Deprecated. set Default row height Note: only affects undefined Rows containing Cells |
void |
setDupeStringMode(int mode)
Deprecated. Set Duplicate String Handling Mode. |
void |
setFormulaCalculationMode(int mode)
Deprecated. Explicit calcing of formulas |
void |
setName(String nm)
Deprecated. Sets the internal name of this WorkBookHandle. |
void |
setProtected(boolean b)
Deprecated. 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)
Deprecated. Set Encoding mode of new Strings added to file. |
String |
toString()
Deprecated. Returns the name of this Sheet. |
StringBuffer |
writeBytes(OutputStream bbout)
Deprecated. |
| Field Detail |
|---|
static final int CALCULATE_ALWAYS
static final int CALCULATE_EXPLICIT
static final int CALCULATE_AUTO
static final String CALC_MODE_PROP
static final String REFTRACK_PROP
static final int STRING_ENCODING_AUTO
static final int STRING_ENCODING_UNICODE
static final int STRING_ENCODING_COMPRESSED
static final int ALLOWDUPES
static final int SHAREDUPES
| Method Detail |
|---|
void setFormulaCalculationMode(int mode)
mode - int getFormulaCalculationMode()
Object getProperty(String name)
getProperty in interface Document
void addProperty(String name,
Object val)
addProperty in interface Documentproperties - The properties to set.CellHandle[] getCells()
CellHandle getCell(String address)
throws com.extentech.formats.XLS.CellNotFoundException,
com.extentech.formats.XLS.WorkSheetNotFoundException
address -
com.extentech.formats.XLS.CellNotFoundException
com.extentech.formats.XLS.WorkSheetNotFoundExceptionFormatHandle[] getFormats()
PivotTableHandle getPivotTable(String ptname)
throws com.extentech.formats.XLS.PivotTableNotFoundException
String - name of the PivotTable
com.extentech.formats.XLS.PivotTableNotFoundException
PivotTableHandle[] getPivotTables()
throws com.extentech.formats.XLS.PivotTableNotFoundException
com.extentech.formats.XLS.PivotTableNotFoundExceptionvoid setProtected(boolean b)
int - Default Column widthvoid setDefaultRowHeight(int t)
int - Default Row Heightvoid setDefaultColWidth(int t)
int - Default Column widthvoid setName(String nm)
setName in interface DocumentWorkBook - Namevoid setDebugLevel(int l)
setDebugLevel in interface Document
NameHandle getNamedRange(String rangename)
throws com.extentech.formats.XLS.CellNotFoundException
com.extentech.formats.XLS.CellNotFoundException
ChartHandle getChart(String chartname)
throws com.extentech.formats.XLS.ChartNotFoundException
com.extentech.formats.XLS.ChartNotFoundExceptionChartHandle[] getCharts()
NameHandle[] getNamedRanges()
String getName()
getName in interface Documentint getNumCells()
byte[] getBytes()
WorkSheetHandle[] getWorkSheets()
WorkSheetHandle getWorkSheet(int i)
throws com.extentech.formats.XLS.WorkSheetNotFoundException
index - of worksheet (ie: 0)
com.extentech.formats.XLS.WorkSheetNotFoundException - if the specified WorkSheet is
not found in the WorkBook.
WorkSheetHandle getWorkSheet(String handstr)
throws com.extentech.formats.XLS.WorkSheetNotFoundException
String - name of worksheet (ie: "Sheet1")
com.extentech.formats.XLS.WorkSheetNotFoundException - if the specified WorkSheet is
not found in the WorkBook.com.extentech.formats.XLS.WorkBook getWorkBook()
void reset()
reset in interface Documentvoid setStringEncodingMode(int mode)
int - String Encoding Modevoid setDupeStringMode(int mode)
int - Duplicate String Handling Mode
void copyChartToSheet(String chartname,
String sheetname)
throws com.extentech.formats.XLS.ChartNotFoundException,
com.extentech.formats.XLS.WorkSheetNotFoundException
chartname - sheetname -
com.extentech.formats.XLS.ChartNotFoundException
com.extentech.formats.XLS.WorkSheetNotFoundException
void copyChartToSheet(ChartHandle chart,
WorkSheetHandle sheet)
throws com.extentech.formats.XLS.ChartNotFoundException,
com.extentech.formats.XLS.WorkSheetNotFoundException
chart - sheet -
com.extentech.formats.XLS.ChartNotFoundException
com.extentech.formats.XLS.WorkSheetNotFoundException
WorkSheetHandle copyWorkSheet(String SourceSheetName,
String NewSheetName)
throws com.extentech.formats.XLS.WorkSheetNotFoundException
String - the Name of the source worksheet;String - the Name of the new (destination) worksheet;
com.extentech.formats.XLS.WorkSheetNotFoundException
void calculateFormulas()
throws com.extentech.formats.XLS.FunctionNotSupportedException
com.extentech.formats.XLS.FunctionNotSupportedExceptionvoid removeAllWorkSheets()
WorkBookHandle getNoSheetWorkBook()
addSheetFromWorkBook
boolean addSheetFromWorkBook(WorkBookHandle sourceBook,
String sourceSheetName,
String destSheetName)
sourceBook - - the WorkBook containing the sheet to copysourceSheetName - - the name of the sheet to copydestSheetName - - the name of the new sheet in this workbook
WorkSheetHandle addWorkSheet(WorkSheetHandle sht,
String NewSheetName)
WorkSheetHandle - the source WorkSheetHandle;String - the Name of the new (destination) worksheet;WorkSheetHandle createWorkSheet(String name)
String - the Name of the newly created worksheet
String toString()
toString in class ObjectObject.toString()StringBuffer writeBytes(OutputStream bbout)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||