java.lang.Object
com.aspose.cells.Cells
public abstract class Cells
Example:
Workbook excel = new Workbook();
Cells cells = excel.getWorksheets().get(0).getCells();
//Set default row height
cells.setStandardHeight(20);
//Set row height
cells.setRowHeight(2, 20.5);
//Set default colum width
cells.setStandardWidth(15);
//Set column width
cells.setColumnWidth(3, 12.57);
//Merge cells
cells.merge(5, 4, 2, 2);
| Property Getters/Setters Summary | ||
|---|---|---|
abstract ColumnCollection | getColumns() | |
|
Gets the collection of |
||
abstract int | getCount() | |
| Gets the number of cells. | ||
abstract Cell | getEnd() | |
| Gets the last cell in this worksheet. | ||
abstract Cell | getFirstCell() | |
| Gets the first cell in this worksheet. | ||
abstract boolean | isDefaultRowHeightMatched() | |
abstract void | setDefaultRowHeightMatched(boolean value) | |
| Indicates that row height and default font height matches | ||
abstract boolean | isDefaultRowHidden() | |
abstract void | setDefaultRowHidden(boolean value) | |
| Indicates whether the row is defaultly hidden. | ||
abstract Cell | getLastCell() | |
| Gets the last cell in this worksheet. | ||
abstract int | getMaxColumn() | |
| Maximum column index of cell which contains data or style. | ||
abstract int | getMaxDataColumn() | |
| Maximum column index of cell which contains data. | ||
abstract int | getMaxDataRow() | |
| Maximum row index of cell which contains data. | ||
abstract Range | getMaxDisplayRange() | |
| Gets the max range which includes data, merged cells and shapes. | ||
abstract int | getMaxRow() | |
| Maximum row index of cell which contains data or style. | ||
abstract int | getMemorySetting() | |
abstract void | setMemorySetting(int value) | |
| Gets or sets the memory usage option for this cells. The value of the property is MemorySetting integer constant. | ||
abstract java.util.ArrayList | getMergedCells() | |
| Gets the collection of merged cells. | ||
abstract int | getMinColumn() | |
| Minimum column index of cell which contains data or style. | ||
abstract int | getMinDataColumn() | |
| Minimum column index of cell which contains data. | ||
abstract int | getMinDataRow() | |
| Minimum row index of cell which contains data. | ||
abstract int | getMinRow() | |
| Minimum row index of cell which contains data or style. | ||
abstract boolean | getMultiThreadReading() | |
abstract void | setMultiThreadReading(boolean value) | |
| Gets or sets whether the cells data model should support Multi-Thread reading. Default value of this property is false. If there are multiple threads to read Row/Cell objects in this collection concurrently, this property should be set as true, otherwise unexpected result may be produced. Supporting Multi-Thread reading may degrade the performance for accessing Row/Cell objects from this collection. | ||
abstract boolean | getPreserveString() | |
abstract void | setPreserveString(boolean value) | |
| Gets or sets a value indicating whether all worksheet values are preserved as strings. Default is false. | ||
abstract RangeCollection | getRanges() | |
|
Gets the collection of |
||
abstract RowCollection | getRows() | |
|
Gets the collection of |
||
abstract double | getStandardHeight() | |
abstract void | setStandardHeight(double value) | |
| Gets or sets the default row height in this worksheet, in unit of points. | ||
abstract int | getStandardHeightPixels() | |
abstract void | setStandardHeightPixels(int value) | |
| Gets or sets the default row height in this worksheet, in unit of pixels. | ||
abstract double | getStandardWidth() | |
abstract void | setStandardWidth(double value) | |
| Gets or sets the default column width in the worksheet, in unit of characters. | ||
abstract double | getStandardWidthInch() | |
abstract void | setStandardWidthInch(double value) | |
| Gets or sets the default column width in the worksheet, in unit of inches. | ||
abstract int | getStandardWidthPixels() | |
abstract void | setStandardWidthPixels(int value) | |
| Gets or sets the default column width in the worksheet, in unit of pixels. | ||
abstract Cell | getStart() | |
| Gets the first cell in this worksheet. | ||
abstract Style | getStyle() | |
abstract void | setStyle(Style value) | |
| Gets and sets the default style. | ||
abstract Cell | get(int index) | |
|
Gets |
||
abstract Cell | get(int row, int column) | |
|
Gets the |
||
abstract Cell | get(java.lang.String cellName) | |
|
Gets the |
||
| Method Summary | ||
|---|---|---|
abstract void | addRange(Range rangeObject) | |
| Adds a range object reference to cells | ||
abstract void | applyColumnStyle(int column, Style style, StyleFlag flag) | |
| Applies formats for a whole column. | ||
abstract void | applyRowStyle(int row, Style style, StyleFlag flag) | |
| Applies formats for a whole row. | ||
abstract void | applyStyle(Style style, StyleFlag flag) | |
| Applies formats for a whole worksheet. | ||
abstract Cell | checkCell(int row, int column) | |
|
Gets the |
||
abstract Column | checkColumn(int columnIndex) | |
|
Gets the |
||
abstract Row | checkRow(int row) | |
|
Gets the |
||
abstract void | clear() | |
| Clear all cell objects. | ||
abstract void | clearContents(CellArea range) | |
| Clears contents of a range. | ||
abstract void | clearContents(int startRow, int startColumn, int endRow, int endColumn) | |
| Clears contents of a range. | ||
abstract void | clearFormats(CellArea range) | |
| Clears formatting of a range. | ||
abstract void | clearFormats(int startRow, int startColumn, int endRow, int endColumn) | |
| Clears formatting of a range. | ||
abstract void | clearRange(CellArea range) | |
| Clears contents and formatting of a range. | ||
abstract void | clearRange(int startRow, int startColumn, int endRow, int endColumn) | |
| Clears contents and formatting of a range. | ||
abstract void | convertStringToNumericValue() | |
| Converts string data in cells to numeric value if possible. | ||
abstract void | copyColumn(Cells sourceCells, int sourceColumnIndex, int destinationColumnIndex) | |
| Copies data and formats of a whole column. | ||
abstract void | copyColumns(Cells sourceCells, int sourceColumnIndex, int destinationColumnIndex, int columnNumber) | |
| Copies data and formats of a whole column. | ||
abstract void | copyColumns(Cells sourceCells, int sourceColumnIndex, int sourceTotalColumns, int destinationColumnIndex, int destinationTotalColumns) | |
| Copies data and formats of the whole columns. | ||
abstract void | copyRow(Cells sourceCells, int sourceRowIndex, int destinationRowIndex) | |
| Copies data and formats of a whole row. | ||
abstract void | copyRows(Cells sourceCells, int sourceRowIndex, int destinationRowIndex, int rowNumber) | |
| Copies data and formats of some whole rows. | ||
abstract void | copyRows(Cells sourceCells, int sourceRowIndex, int destinationRowIndex, int rowNumber, CopyOptions copyOptions) | |
| Copies data and formats of some whole rows. | ||
abstract Range | createRange(int firstIndex, int number, boolean isVertical) | |
|
Creates a |
||
abstract Range | createRange(int firstRow, int firstColumn, int totalRows, int totalColumns) | |
|
Creates a |
||
abstract Range | createRange(java.lang.String address) | |
|
Creates a |
||
abstract Range | createRange(java.lang.String upperLeftCell, java.lang.String lowerRightCell) | |
|
Creates a |
||
abstract void | deleteBlankColumns() | |
| Delete all blank columns which do not contain any data. | ||
abstract void | deleteBlankColumns(DeleteOptions options) | |
| Delete all blank columns which do not contain any data. | ||
abstract void | deleteBlankRows() | |
| Delete all blank rows which do not contain any data. | ||
abstract void | deleteBlankRows(DeleteOptions options) | |
| Delete all blank rows which do not contain any data. | ||
abstract void | deleteColumn(int columnIndex) | |
| Deletes a column. | ||
abstract void | deleteColumn(int columnIndex, boolean updateReference) | |
| Deletes a column. | ||
abstract void | deleteColumns(int columnIndex, int totalColumns, boolean updateReference) | |
| Deletes several columns. | ||
abstract void | deleteRange(int startRow, int startColumn, int endRow, int endColumn, int shiftType) | |
| Deletes a range of cells and shift cells according to the shift option. | ||
abstract void | deleteRow(int rowIndex) | |
| Deletes a row. | ||
abstract boolean | deleteRows(int rowIndex, int totalRows) | |
| Deletes several rows. | ||
abstract boolean | deleteRows(int rowIndex, int totalRows, boolean updateReference) | |
| Deletes multiple rows in the worksheet. | ||
abstract Cell | endCellInColumn(int startRow, int endRow, short startColumn, short endColumn) | |
| Gets the last cell with maximum column index in this range. | ||
abstract Cell | endCellInColumn(short columnIndex) | |
| Gets the last cell in this column. | ||
abstract Cell | endCellInRow(int rowIndex) | |
| Gets the last cell in this row. | ||
abstract Cell | endCellInRow(int startRow, int endRow, int startColumn, int endColumn) | |
| Gets the last cell with maximum row index in this range. | ||
abstract java.lang.Object[][] | exportArray(int firstRow, int firstColumn, int totalRows, int totalColumns) | |
|
Exports data in the |
||
abstract int[][] | exportTypeArray(int firstRow, int firstColumn, int totalRows, int totalColumns) | |
|
Exports cell value type in the |
||
abstract Cell | find(java.lang.Object what, Cell previousCell, FindOptions findOptions) | |
| Finds the cell containing with the input object. | ||
abstract Cell | findFormula(java.lang.String formula, Cell previousCell) | |
| Finds the cell with the input string. | ||
abstract Cell | findFormulaContains(java.lang.String formula, Cell previousCell) | |
| Finds the cell with formla which contains the input string. | ||
abstract Cell | findNumber(double inputNumber, Cell previousCell) | |
| Finds the cell with the input double. | ||
abstract Cell | findNumber(int inputNumber, Cell previousCell) | |
| Finds the cell with the input integer. | ||
abstract Cell | findString(java.lang.String inputString, Cell previousCell) | |
| Finds the cell with the input string. | ||
abstract Cell | findString(java.lang.String inputString, Cell previousCell, boolean upDown) | |
| Finds the cell with the input string. | ||
abstract Cell | findString(java.lang.String inputString, Cell previousCell, CellArea area) | |
| Finds the cell with the input string in the specified area. | ||
abstract Cell | findString(java.lang.String inputString, Cell previousCell, CellArea area, boolean upDown) | |
| Finds the cell with the input string in the specified area. | ||
abstract Cell | findString(java.lang.String inputString, Cell previousCell, FindOptions findOptions) | |
| Finds the cell with the input string. | ||
abstract Cell | findStringContains(java.lang.String inputString, Cell previousCell) | |
| Finds the cell containing with the input string. | ||
abstract Cell | findStringContains(java.lang.String inputString, Cell previousCell, boolean isCaseSensitive) | |
| Finds the cell containing with the input string. | ||
abstract Cell | findStringContains(java.lang.String inputString, Cell previousCell, boolean isCaseSensitive, CellArea area) | |
| Finds the cell containing with the input string. | ||
abstract Cell | findStringEndsWith(java.lang.String inputString, Cell previousCell) | |
| Finds the cell ending with the input string. | ||
abstract Cell | findStringStartsWith(java.lang.String inputString, Cell previousCell) | |
| Finds the cell starting with the input string. | ||
abstract Cell | getCell(int row, int column) | |
|
Gets the |
||
abstract Style | getCellStyle(int row, int column) | |
| Get the style of given cell. | ||
abstract Column | getColumn(int columnIndex) | |
|
Gets the |
||
abstract double | getColumnWidth(int column) | |
| Gets the width of the specified column | ||
abstract double | getColumnWidthInch(int column) | |
| Gets the width of the specified column, in units of inches. | ||
abstract int | getColumnWidthPixel(int column) | |
| Gets the width of the specified column, in units of pixel. | ||
abstract Cell[] | getDependents(boolean isAll, int row, int column) | |
| Get all cells which refer to the specific cell. | ||
abstract int | getGroupedColumnOutlineLevel(int columnIndex) | |
| Gets the outline level (zero-based) of the column. | ||
abstract int | getGroupedRowOutlineLevel(int rowIndex) | |
| Gets the outline level (zero-based) of the row. | ||
abstract int | getLastDataRow(int column) | |
| Gets the last row index of cell which contains data in the specified column. | ||
abstract int | getMaxGroupedColumnOutlineLevel() | |
| Gets the max grouped column outline level (zero-based). | ||
abstract int | getMaxGroupedRowOutlineLevel() | |
| Gets the max grouped row outline level (zero-based). | ||
abstract Row | getRow(int row) | |
|
Gets the |
||
abstract java.util.Iterator | getRowEnumerator() | |
| Gets the rows enumerator | ||
abstract double | getRowHeight(int row) | |
| Gets the height of a specified row. | ||
abstract double | getRowHeightInch(int row) | |
| Gets the height of a specified row in unit of inches. | ||
abstract int | getRowHeightPixel(int row) | |
| Gets the height of a specified row in unit of pixel. | ||
abstract int | getViewColumnWidthPixel(int column) | |
| Get the width in different view type. | ||
abstract void | groupColumns(int firstIndex, int lastIndex) | |
| Groups columns. | ||
abstract void | groupColumns(int firstIndex, int lastIndex, boolean isHidden) | |
| Groups columns. | ||
abstract void | groupRows(int firstIndex, int lastIndex) | |
| Groups rows. | ||
abstract void | groupRows(int firstIndex, int lastIndex, boolean isHidden) | |
| Groups rows. | ||
abstract void | hideColumn(int column) | |
| Hides a column. | ||
abstract void | hideColumns(int column, int totalColumns) | |
| Hide multiple columns. | ||
abstract void | hideGroupDetail(boolean isVertical, int index) | |
| Collapses the grouped rows/columns. | ||
abstract void | hideRow(int row) | |
| Hides a row. | ||
abstract void | hideRows(int row, int totalRows) | |
| Hides multiple rows. | ||
abstract void | importArray(double[] doubleArray, int firstRow, int firstColumn, boolean isVertical) | |
| Imports an array of double into a worksheet. | ||
abstract void | importArray(double[][] doubleArray, int firstRow, int firstColumn) | |
| Imports a two-dimension array of double into a worksheet. | ||
abstract void | importArray(int[] intArray, int firstRow, int firstColumn, boolean isVertical) | |
| Imports an array of integer into a worksheet. | ||
abstract void | importArray(int[][] intArray, int firstRow, int firstColumn) | |
| Imports a two-dimension array of integer into a worksheet. | ||
abstract void | importArray(java.lang.String[] stringArray, int firstRow, int firstColumn, boolean isVertical) | |
| Imports an array of string into a worksheet. | ||
abstract void | importArray(java.lang.String[][] stringArray, int firstRow, int firstColumn) | |
| Imports a two-dimension array of string into a worksheet. | ||
abstract void | importArrayList(java.util.ArrayList arrayList, int firstRow, int firstColumn, boolean isVertical) | |
| Imports an arraylist of data into a worksheet. | ||
abstract void | importCSV(java.io.InputStream stream, TxtLoadOptions options, int firstRow, int firstColumn) | |
| Import a CSV file to the cells. | ||
abstract void | importCSV(java.io.InputStream stream, java.lang.String spliter, boolean convertNumericData, int firstRow, int firstColumn) | |
| Import a CSV file to the cells. | ||
abstract void | importCSV(java.lang.String fileName, TxtLoadOptions options, int firstRow, int firstColumn) | |
| Import a CSV file to the cells. | ||
abstract void | importCSV(java.lang.String fileName, java.lang.String spliter, boolean convertNumericData, int firstRow, int firstColumn) | |
| Import a CSV file to the cells. | ||
abstract int | importCustomObjects(java.util.Collection list, int firstRow, int firstColumn, ImportTableOptions options) | |
| Imports custom objects. | ||
abstract int | importCustomObjects(java.util.Collection list, java.lang.String[] propertyNames, boolean isPropertyNameShown, int firstRow, int firstColumn, int rowNumber, boolean insertRows, java.lang.String dateFormatString, boolean convertStringToNumber) | |
| Imports custom objects. | ||
abstract int | importData(ICellsDataTable table, int firstRow, int firstColumn, ImportTableOptions options) | |
| Import data from custom data table. | ||
abstract void | importFormulaArray(java.lang.String[] stringArray, int firstRow, int firstColumn, boolean isVertical) | |
| Imports an array of formula into a worksheet. | ||
abstract void | importObjectArray(java.lang.Object[] objArray, int firstRow, int firstColumn, boolean isVertical) | |
| Imports an array of data into a worksheet. | ||
abstract void | importObjectArray(java.lang.Object[] objArray, int firstRow, int firstColumn, boolean isVertical, int skip) | |
| Imports an array of data into a worksheet. | ||
int | importResultSet(java.sql.ResultSet rs, int rowIndex, int columnIndex, boolean isFieldNameShown) | |
| Imports data in a ResultSet object to the worksheet. | ||
int | importResultSet(java.sql.ResultSet rs, int rowIndex, int columnIndex, boolean isFieldNameShown, java.lang.String customDateFormatString, boolean convertStringToNumber) | |
| Imports data in a ResultSet object to the worksheet. | ||
int | importResultSet(java.sql.ResultSet rs, int rowIndex, int columnIndex, int rowNum, int columnNum, boolean isFieldNameShown) | |
| Imports data in a ResultSet object to the worksheet. | ||
int | importResultSet(java.sql.ResultSet rs, int rowIndex, int columnIndex, int rowNum, int columnNum, boolean isFieldNameShown, java.lang.String customDateFormatString, boolean convertStringToNumber) | |
| Imports data in a ResultSet object to the worksheet. | ||
int | importResultSet(java.sql.ResultSet rs, java.lang.String startCell, boolean isFieldNameShown) | |
| Imports data in a ResultSet object to the worksheet. | ||
int | importResultSet(java.sql.ResultSet rs, java.lang.String startCell, int rowNum, int columnNum, boolean isFieldNameShown) | |
| Imports data in a ResultSet object to the worksheet. | ||
abstract void | importTwoDimensionArray(java.lang.Object[][] objArray, int firstRow, int firstColumn) | |
| Imports a two-dimension array of data into a worksheet. | ||
abstract void | importTwoDimensionArray(java.lang.Object[][] objArray, int firstRow, int firstColumn, boolean convertStringToNumber) | |
| Imports a two-dimension array of data into a worksheet. | ||
abstract void | importTwoDimensionArray(java.lang.Object[][] objArray, java.lang.Object[][] styles, int firstRow, int firstColumn, boolean convertStringToNumber) | |
| Imports a two-dimension array of data into a worksheet. | ||
abstract void | importTwoDimensionArray(java.lang.Object[][] objArray, java.lang.Object[][] styles, int firstRow, int firstColumn, TxtLoadOptions opts) | |
| Imports a two-dimension array of data into a worksheet. | ||
abstract void | insertColumn(int columnIndex) | |
| Inserts a new column into the worksheet. | ||
abstract void | insertColumn(int columnIndex, boolean updateReference) | |
| Inserts a new column into the worksheet. | ||
abstract void | insertColumns(int columnIndex, int totalColumns) | |
| Inserts some columns into the worksheet. | ||
abstract void | insertColumns(int columnIndex, int totalColumns, boolean updateReference) | |
| Inserts some columns into the worksheet. | ||
abstract void | insertRange(CellArea area, int shiftType) | |
| Inserts a range of cells and shift cells according to the shift option. | ||
abstract void | insertRange(CellArea area, int shiftNumber, int shiftType) | |
| Inserts a range of cells and shift cells according to the shift option. | ||
abstract void | insertRange(CellArea area, int shiftNumber, int shiftType, boolean updateReference) | |
| Inserts a range of cells and shift cells according to the shift option. | ||
abstract void | insertRow(int rowIndex) | |
| Inserts a new row into the worksheet. | ||
abstract void | insertRows(int rowIndex, int totalRows) | |
| Inserts multiple rows into the worksheet. | ||
abstract void | insertRows(int rowIndex, int totalRows, boolean updateReference) | |
| Inserts multiple rows into the worksheet. | ||
abstract boolean | isBlankColumn(int columnIndex) | |
| Checks whether given column is blank(does not contain any data). | ||
abstract boolean | isColumnHidden(int columnIndex) | |
| Checks whether a column at given index is hidden. | ||
abstract boolean | isDeletingRangeEnabled(int startRow, int startColumn, int totalRows, int totalColumns) | |
| Check whether the range could be deleted. | ||
abstract boolean | isRowHidden(int rowIndex) | |
| Checks whether a row at given index is hidden. | ||
abstract java.util.Iterator | iterator() | |
| Gets the cells enumerator. | ||
abstract void | linkToXmlMap(java.lang.String mapName, int row, int column, java.lang.String path) | |
| Link to a xml map. | ||
abstract void | merge(int firstRow, int firstColumn, int totalRows, int totalColumns) | |
| Merges a specified range of cells into a single cell. | ||
abstract void | merge(int firstRow, int firstColumn, int totalRows, int totalColumns, boolean mergeConflict) | |
| Merges a specified range of cells into a single cell. | ||
abstract void | merge(int firstRow, int firstColumn, int totalRows, int totalColumns, boolean checkConflict, boolean mergeConflict) | |
| Merges a specified range of cells into a single cell. | ||
abstract void | moveRange(CellArea sourceArea, int destRow, int destColumn) | |
| Moves the range. | ||
abstract void | removeDuplicates(int startRow, int startColumn, int endRow, int endColumn) | |
| Remove duplicate values in the range. | ||
abstract void | removeFormulas() | |
| Removes all formula and replaces with the value of the formula. | ||
abstract void | setColumnWidth(int column, double width) | |
| Sets the width of the specified column. | ||
abstract void | setColumnWidthInch(int column, double inches) | |
| Sets column width in unit of inches. | ||
abstract void | setColumnWidthPixel(int column, int pixel) | |
| Sets column width in unit of pixels. | ||
abstract void | setRowHeight(int row, double height) | |
| Sets the height of the specified row. | ||
abstract void | setRowHeightInch(int row, double inches) | |
| Sets row height in unit of inches. | ||
abstract void | setRowHeightPixel(int row, int pixels) | |
| Sets row height in unit of pixels. | ||
abstract void | showGroupDetail(boolean isVertical, int index) | |
| Uncollapses the grouped rows/columns. | ||
abstract void | subtotal(CellArea ca, int groupBy, int function, int[] totalList) | |
| Creates subtotals for the range. | ||
abstract void | subtotal(CellArea ca, int groupBy, int function, int[] totalList, boolean replace, boolean pageBreaks, boolean summaryBelowData) | |
| Creates subtotals for the range. | ||
abstract void | ungroupColumns(int firstIndex, int lastIndex) | |
| Ungroups columns. | ||
abstract void | ungroupRows(int firstIndex, int lastIndex) | |
| Ungroups rows. | ||
abstract void | ungroupRows(int firstIndex, int lastIndex, boolean isAll) | |
| Ungroups rows. | ||
abstract void | unhideColumn(int column, double width) | |
| Unhides a column | ||
abstract void | unhideColumns(int column, int totlaColumns, double width) | |
| Unhide multiple columns. | ||
abstract void | unhideRow(int row, double height) | |
| Unhides a row. | ||
abstract void | unhideRows(int row, int totalRows, double height) | |
| Unhides the hidden rows. | ||
abstract void | unMerge(int firstRow, int firstColumn, int totalRows, int totalColumns) | |
| Unmerges a specified range of merged cells. | ||
| Property Getters/Setters Detail |
|---|
getCount | |
public abstract int getCount() | |
getRows | |
public abstract RowCollection getRows() | |
getMergedCells | |
public abstract java.util.ArrayList getMergedCells() | |
getMultiThreadReading/setMultiThreadReading | |
public abstract boolean getMultiThreadReading() / public abstract void setMultiThreadReading(boolean value) | |
getMemorySetting/setMemorySetting | |
public abstract int getMemorySetting() / public abstract void setMemorySetting(int value) | |
getStyle/setStyle | |
public abstract Style getStyle() / public abstract void setStyle(Style value) | |
getStandardWidthInch/setStandardWidthInch | |
public abstract double getStandardWidthInch() / public abstract void setStandardWidthInch(double value) | |
getStandardWidthPixels/setStandardWidthPixels | |
public abstract int getStandardWidthPixels() / public abstract void setStandardWidthPixels(int value) | |
getStandardWidth/setStandardWidth | |
public abstract double getStandardWidth() / public abstract void setStandardWidth(double value) | |
getStandardHeight/setStandardHeight | |
public abstract double getStandardHeight() / public abstract void setStandardHeight(double value) | |
getStandardHeightPixels/setStandardHeightPixels | |
public abstract int getStandardHeightPixels() / public abstract void setStandardHeightPixels(int value) | |
getPreserveString/setPreserveString | |
public abstract boolean getPreserveString() / public abstract void setPreserveString(boolean value) | |
getMinRow | |
public abstract int getMinRow() | |
getMaxRow | |
public abstract int getMaxRow() | |
getMinColumn | |
public abstract int getMinColumn() | |
getMaxColumn | |
public abstract int getMaxColumn() | |
getMinDataRow | |
public abstract int getMinDataRow() | |
getMaxDataRow | |
public abstract int getMaxDataRow() | |
getMinDataColumn | |
public abstract int getMinDataColumn() | |
getMaxDataColumn | |
public abstract int getMaxDataColumn() | |
isDefaultRowHeightMatched/setDefaultRowHeightMatched | |
public abstract boolean isDefaultRowHeightMatched() / public abstract void setDefaultRowHeightMatched(boolean value) | |
isDefaultRowHidden/setDefaultRowHidden | |
public abstract boolean isDefaultRowHidden() / public abstract void setDefaultRowHidden(boolean value) | |
getColumns | |
public abstract ColumnCollection getColumns() | |
getRanges | |
public abstract RangeCollection getRanges() | |
getEnd | |
public abstract Cell getEnd() | |
getLastCell | |
public abstract Cell getLastCell() | |
getMaxDisplayRange | |
public abstract Range getMaxDisplayRange() | |
getStart | |
public abstract Cell getStart() | |
getFirstCell | |
public abstract Cell getFirstCell() | |
get | |
public abstract Cell get(int index) | |
index - The zero based index of the element.get | |
public abstract Cell get(int row, int column) | |
row - Row index.column - Column index.Example:
Cells cells = excel.getWorksheets().get(0).getCells(); Cell cell = cells.get(0, 0); //Gets the cell at "A1"
get | |
public abstract Cell get(java.lang.String cellName) | |
cellName - Cell name,including its column letter and row number, for example A5.Example:
Cells cells = excel.getWorksheets().get(0).getCells();
Cell cell = cells.get("A1"); //Gets the cell at "A1"| Method Detail |
|---|
findFormulaContains | |
public abstract Cell findFormulaContains(java.lang.String formula, Cell previousCell) | |
formula - The formula to search for.previousCell - Previous cell with the same formula. This parameter can be set to null if searching from the start.findString | |
public abstract Cell findString(java.lang.String inputString, Cell previousCell) | |
inputString - The string to search for.previousCell - Previous cell with the same string. This parameter can be set to null if searching from the start.findString | |
public abstract Cell findString(java.lang.String inputString, Cell previousCell, CellArea area) | |
inputString - The string to search for.previousCell - Previous cell with the same string. This parameter can be set to null if searching from the start.area - Searched area.findString | |
public abstract Cell findString(java.lang.String inputString, Cell previousCell, CellArea area, boolean upDown) | |
inputString - The string to search for.previousCell - Previous cell with the same string. This parameter can be set to null if searching from the start.area - Searched area.upDown - Search order. True: Up. False: Down.findString | |
public abstract Cell findString(java.lang.String inputString, Cell previousCell, boolean upDown) | |
inputString - The string to search for.previousCell - Previous cell with the same string. This parameter can be set to null if searching from the start.upDown - Search order. True: Up. False: Down.findString | |
public abstract Cell findString(java.lang.String inputString, Cell previousCell, FindOptions findOptions) | |
inputString - The string to search for.previousCell - Previous cell with the same string. This parameter can be set to null if searching from the start.findOptions - Sets the find options.findStringStartsWith | |
public abstract Cell findStringStartsWith(java.lang.String inputString, Cell previousCell) | |
inputString - The string to search for.previousCell - Previous cell with the same string. This parameter can be set to null if searching from the start.findStringEndsWith | |
public abstract Cell findStringEndsWith(java.lang.String inputString, Cell previousCell) | |
inputString - The string to search for.previousCell - Previous cell with the same string. This parameter can be set to null if searching from the start.findStringContains | |
public abstract Cell findStringContains(java.lang.String inputString, Cell previousCell) | |
inputString - The string to search for.previousCell - Previous cell with the same string. This parameter can be set to null if searching from the start.findStringContains | |
public abstract Cell findStringContains(java.lang.String inputString, Cell previousCell, boolean isCaseSensitive, CellArea area) | |
inputString - The string to search for.previousCell - Previous cell with the same string. This parameter can be set to null if searching from the start.isCaseSensitive - Indicates if the searched string is case sensitive.area - Searched area.findStringContains | |
public abstract Cell findStringContains(java.lang.String inputString, Cell previousCell, boolean isCaseSensitive) | |
inputString - The string to search for.previousCell - Previous cell with the same string. This parameter can be set to null if searching from the start.isCaseSensitive - Indicates if the searched string is case sensitive.findNumber | |
public abstract Cell findNumber(int inputNumber, Cell previousCell) | |
inputNumber - The integer to search for.previousCell - Previous cell with the same integer. This parameter can be set to null if searching from the start.findNumber | |
public abstract Cell findNumber(double inputNumber, Cell previousCell) | |
inputNumber - The double to search for.previousCell - Previous cell with the same double. This parameter can be set to null if searching from the start.find | |
public abstract Cell find(java.lang.Object what, Cell previousCell, FindOptions findOptions) | |
what - The object to search for.
The type should be int,double,DateTime,string,bool.
previousCell - Previous cell with the same object.
This parameter can be set to null if searching from the start.findOptions - Find optionsendCellInRow | |
public abstract Cell endCellInRow(int rowIndex) | |
rowIndex - Row index.endCellInColumn | |
public abstract Cell endCellInColumn(short columnIndex) | |
columnIndex - Column index.endCellInColumn | |
public abstract Cell endCellInColumn(int startRow, int endRow, short startColumn, short endColumn) | |
startRow - Start row index.endRow - End row index.startColumn - Start column index.endColumn - End column index.endCellInRow | |
public abstract Cell endCellInRow(int startRow, int endRow, int startColumn, int endColumn) | |
startRow - Start row index.endRow - End row index.startColumn - Start column index.endColumn - End column index.moveRange | |
public abstract void moveRange(CellArea sourceArea, int destRow, int destColumn) | |
sourceArea - The range which should be moved.destRow - The dest row.destColumn - The dest column.insertRange | |
public abstract void insertRange(CellArea area, int shiftNumber, int shiftType, boolean updateReference) | |
area - Shift area.shiftNumber - Number of rows or columns to be inserted.shiftType - A updateReference - Indicates if update references in other worksheets.insertRange | |
public abstract void insertRange(CellArea area, int shiftType) | |
area - Shift area.shiftType - A insertRange | |
public abstract void insertRange(CellArea area, int shiftNumber, int shiftType) | |
area - Shift area.shiftNumber - Number of rows or columns to be inserted.shiftType - A deleteRange | |
public abstract void deleteRange(int startRow, int startColumn, int endRow, int endColumn, int shiftType) | |
startRow - Start row index.startColumn - Start column index.endRow - End row index.endColumn - End column index.shiftType - A exportArray | |
public abstract java.lang.Object[][] exportArray(int firstRow, int firstColumn, int totalRows, int totalColumns) | |
firstRow - The row number of the first cell to export out.firstColumn - The column number of the first cell to export out.totalRows - Number of rows to be exportedtotalColumns - Number of columns to be exportedexportTypeArray | |
public abstract int[][] exportTypeArray(int firstRow, int firstColumn, int totalRows, int totalColumns) | |
firstRow - The row number of the first cell to export out.firstColumn - The column number of the first cell to export out.totalRows - Number of rows to be exported.totalColumns - Number of columns to be exported.importCustomObjects | |
public abstract int importCustomObjects(java.util.Collection list, java.lang.String[] propertyNames, boolean isPropertyNameShown, int firstRow, int firstColumn, int rowNumber, boolean insertRows, java.lang.String dateFormatString, boolean convertStringToNumber)
throws java.lang.Exception | |
list - The custom objectpropertyNames - The property names.If it is null,we will import all properties of the object.isPropertyNameShown -
Indicates whether the property name will be imported to the first row.
firstRow - The row number of the first cell to import in.firstColumn - The column number of the first cell to import in.rowNumber - Number of rows to be imported.insertRows - Indicates whether extra rows are added to fit data.dateFormatString - Date format string for cells.convertStringToNumber - Indicates if this method will try to convert string to number.importCustomObjects | |
public abstract int importCustomObjects(java.util.Collection list, int firstRow, int firstColumn, ImportTableOptions options) throws java.lang.Exception | |
list - The custom objectfirstRow - The row number of the first cell to import in.firstColumn - The column number of the first cell to import in.options - The import options.subtotal | |
public abstract void subtotal(CellArea ca, int groupBy, int function, int[] totalList) | |
ca - The rangegroupBy - The field to group by, as a zero-based integer offsetfunction - A totalList - An array of zero-based field offsets, indicating the fields to which the subtotals are added.subtotal | |
public abstract void subtotal(CellArea ca, int groupBy, int function, int[] totalList, boolean replace, boolean pageBreaks, boolean summaryBelowData) | |
ca - The rangegroupBy - The field to group by, as a zero-based integer offsetfunction - A totalList - An array of zero-based field offsets, indicating the fields to which the subtotals are added.replace - Indicates whether replace the current subtotalspageBreaks - Indicates whether add page break between groupssummaryBelowData - Indicates whether add summarry below data.removeFormulas | |
public abstract void removeFormulas() | |
removeDuplicates | |
public abstract void removeDuplicates(int startRow, int startColumn, int endRow, int endColumn) | |
startRow - The start row.startColumn - The start columnendRow - The end row index.endColumn - The end column index.convertStringToNumericValue | |
public abstract void convertStringToNumericValue() | |
getDependents | |
public abstract Cell[] getDependents(boolean isAll, int row, int column) | |
isAll - Indicates whether check other worksheetsrow - The row index.column - The column index.getCellStyle | |
public abstract Style getCellStyle(int row, int column) | |
row - row indexcolumn - columnimportResultSet | |
public int importResultSet(java.sql.ResultSet rs, int rowIndex, int columnIndex, int rowNum, int columnNum, boolean isFieldNameShown)
throws java.lang.Exception | |
rs - the ResultSet object to import from.rowIndex - start row index in the worksheet.columnIndex - start column index in the worksheet.rowNum - number of rows to import. -1 to import all records in given resultset.columnNum - number of columns to import. -1 to import all columns in given resultset.isFieldNameShown - Indicates whether the field name of the resultset will be imported to the first row.importResultSet | |
public int importResultSet(java.sql.ResultSet rs, java.lang.String startCell, int rowNum, int columnNum, boolean isFieldNameShown)
throws java.lang.Exception | |
rs - the ResultSet object to import from.startCell - name of start cell to insert the resultset, such as "A1".rowNum - number of rows to import. -1 to import all records in given resultset.columnNum - number of columns to import. -1 to import all columns in given resultset.isFieldNameShown - Indicates whether the field name of the resultset will be imported to the first row.importResultSet | |
public int importResultSet(java.sql.ResultSet rs, int rowIndex, int columnIndex, boolean isFieldNameShown)
throws java.lang.Exception | |
rs - the ResultSet object to import from.rowIndex - start row index in the worksheet.columnIndex - start column index in the worksheet.isFieldNameShown - Indicates whether the field name of the resultset will be imported to the first row.importResultSet | |
public int importResultSet(java.sql.ResultSet rs, java.lang.String startCell, boolean isFieldNameShown)
throws java.lang.Exception | |
rs - the ResultSet object to import from.startCell - name of start cell to insert the resultset, such as "A1".isFieldNameShown - Indicates whether the field name of the resultset will be imported to the first row.importResultSet | |
public int importResultSet(java.sql.ResultSet rs, int rowIndex, int columnIndex, int rowNum, int columnNum, boolean isFieldNameShown, java.lang.String customDateFormatString, boolean convertStringToNumber)
throws java.lang.Exception | |
rs - the ResultSet object to import from.rowIndex - start row index in the worksheet.columnIndex - start column index in the worksheet.rowNum - number of rows to import. -1 to import all records in given resultset.columnNum - number of columns to import. -1 to import all columns in given resultset.isFieldNameShown - Indicates whether the field name of the resultset will be imported to the first row.customDateFormatString - Date format string for cells which contain date value.convertStringToNumber - Indicates if this method will try to convert string to number.importResultSet | |
public int importResultSet(java.sql.ResultSet rs, int rowIndex, int columnIndex, boolean isFieldNameShown, java.lang.String customDateFormatString, boolean convertStringToNumber)
throws java.lang.Exception | |
rs - the ResultSet object to import from.rowIndex - start row index in the worksheet.columnIndex - start column index in the worksheet.isFieldNameShown - Indicates whether the field name of the resultset will be imported to the first row.customDateFormatString - Date format string for cells which contain date value.convertStringToNumber - Indicates if this method will try to convert string to number.iterator | |
public abstract java.util.Iterator iterator() | |
getRowEnumerator | |
public abstract java.util.Iterator getRowEnumerator() | |
getCell | |
public abstract Cell getCell(int row, int column) | |
row - Row indexcolumn - Column indexgetRow | |
public abstract Row getRow(int row) | |
row - Row indexgetColumn | |
public abstract Column getColumn(int columnIndex) | |
columnIndex - The column index.checkCell | |
public abstract Cell checkCell(int row, int column) | |
row - Row indexcolumn - Column indexcheckRow | |
public abstract Row checkRow(int row) | |
row - Row indexcheckColumn | |
public abstract Column checkColumn(int columnIndex) | |
columnIndex - The column index.isRowHidden | |
public abstract boolean isRowHidden(int rowIndex) | |
rowIndex - row indexisColumnHidden | |
public abstract boolean isColumnHidden(int columnIndex) | |
columnIndex - column indexaddRange | |
public abstract void addRange(Range rangeObject) | |
rangeObject - The range object will be contained in the cellscreateRange | |
public abstract Range createRange(java.lang.String upperLeftCell, java.lang.String lowerRightCell) | |
upperLeftCell - Upper left cell name.lowerRightCell - Lower right cell name.createRange | |
public abstract Range createRange(int firstRow, int firstColumn, int totalRows, int totalColumns) | |
firstRow - First row of this rangefirstColumn - First column of this rangetotalRows - Number of rowstotalColumns - Number of columnscreateRange | |
public abstract Range createRange(java.lang.String address) | |
address - The address of the range.createRange | |
public abstract Range createRange(int firstIndex, int number, boolean isVertical) | |
firstIndex - First row index or first column index, zero based.number - Total number of rows or columns, one based.isVertical - True - Range created from columns of cells. False - Range created from rows of cells. clear | |
public abstract void clear() | |
importData | |
public abstract int importData(ICellsDataTable table, int firstRow, int firstColumn, ImportTableOptions options) throws java.lang.Exception | |
table - The custom data table.firstRow - First row index.firstColumn - First column index.options - The import optionsimportTwoDimensionArray | |
public abstract void importTwoDimensionArray(java.lang.Object[][] objArray, int firstRow, int firstColumn) | |
objArray - Two-dimension data array.firstRow - The row number of the first cell to import in.firstColumn - The column number of the first cell to import in.importTwoDimensionArray | |
public abstract void importTwoDimensionArray(java.lang.Object[][] objArray, int firstRow, int firstColumn, boolean convertStringToNumber) | |
objArray - Two-dimension data array.firstRow - The row number of the first cell to import in.firstColumn - The column number of the first cell to import in.convertStringToNumber - Indicates if this method will try to convert string to number.importTwoDimensionArray | |
public abstract void importTwoDimensionArray(java.lang.Object[][] objArray, java.lang.Object[][] styles, int firstRow, int firstColumn, boolean convertStringToNumber) | |
objArray - Two-dimension data array.styles - Two-dimension data style.firstRow - The row number of the first cell to import in.firstColumn - The column number of the first cell to import in.convertStringToNumber - Indicates if this method will try to convert string to number.importTwoDimensionArray | |
public abstract void importTwoDimensionArray(java.lang.Object[][] objArray, java.lang.Object[][] styles, int firstRow, int firstColumn, TxtLoadOptions opts) | |
objArray - Two-dimension data array.styles - Two-dimension data style.firstRow - The row number of the first cell to import in.firstColumn - The column number of the first cell to import in.opts - Options for converting string valuesimportObjectArray | |
public abstract void importObjectArray(java.lang.Object[] objArray, int firstRow, int firstColumn, boolean isVertical) | |
objArray - Data array.firstRow - The row number of the first cell to import in.firstColumn - The column number of the first cell to import in.isVertical - Specifies to import data vertically or horizontally.importArrayList | |
public abstract void importArrayList(java.util.ArrayList arrayList, int firstRow, int firstColumn, boolean isVertical) | |
arrayList - Data arraylist.firstRow - The row number of the first cell to import in.firstColumn - The column number of the first cell to import in.isVertical - Specifies to import data vertically or horizontally.importObjectArray | |
public abstract void importObjectArray(java.lang.Object[] objArray, int firstRow, int firstColumn, boolean isVertical, int skip) | |
objArray - Data array.firstRow - The row number of the first cell to import in.firstColumn - The column number of the first cell to import in.isVertical - Specifies to import data vertically or horizontally.skip - Skipped number of rows or columns.importArray | |
public abstract void importArray(java.lang.String[][] stringArray, int firstRow, int firstColumn) | |
stringArray - Two-dimension string array.firstRow - The row number of the first cell to import in.firstColumn - The column number of the first cell to import in.importFormulaArray | |
public abstract void importFormulaArray(java.lang.String[] stringArray, int firstRow, int firstColumn, boolean isVertical) | |
stringArray - Formula array.firstRow - The row number of the first cell to import in.firstColumn - The column number of the first cell to import in.isVertical - Specifies to import data vertically or horizontally.importArray | |
public abstract void importArray(java.lang.String[] stringArray, int firstRow, int firstColumn, boolean isVertical) | |
stringArray - String array.firstRow - The row number of the first cell to import in.firstColumn - The column number of the first cell to import in.isVertical - Specifies to import data vertically or horizontally.importArray | |
public abstract void importArray(int[][] intArray, int firstRow, int firstColumn) | |
intArray - Two-dimension integer array.firstRow - The row number of the first cell to import in.firstColumn - The column number of the first cell to import in.importArray | |
public abstract void importArray(int[] intArray, int firstRow, int firstColumn, boolean isVertical) | |
intArray - Integer array.firstRow - The row number of the first cell to import in.firstColumn - The column number of the first cell to import in.isVertical - Specifies to import data vertically or horizontally.importArray | |
public abstract void importArray(double[][] doubleArray, int firstRow, int firstColumn) | |
doubleArray - Two-dimension double array.firstRow - The row number of the first cell to import in.firstColumn - The column number of the first cell to import in.importArray | |
public abstract void importArray(double[] doubleArray, int firstRow, int firstColumn, boolean isVertical) | |
doubleArray - Double array.firstRow - The row number of the first cell to import in.firstColumn - The column number of the first cell to import in.isVertical - Specifies to import data vertically or horizontally.importCSV | |
public abstract void importCSV(java.lang.String fileName, java.lang.String spliter, boolean convertNumericData, int firstRow, int firstColumn)
throws java.lang.Exception | |
fileName - The CSV file name.spliter - The spliterconvertNumericData - Whether the string in text file is converted to numeric data.firstRow - The row number of the first cell to import in.firstColumn - The column number of the first cell to import in.importCSV | |
public abstract void importCSV(java.io.InputStream stream, java.lang.String spliter, boolean convertNumericData, int firstRow, int firstColumn)
throws java.lang.Exception | |
stream - The CSV file stream.spliter - The spliterconvertNumericData - Whether the string in text file is converted to numeric data.firstRow - The row number of the first cell to import in.firstColumn - The column number of the first cell to import in.importCSV | |
public abstract void importCSV(java.lang.String fileName, TxtLoadOptions options, int firstRow, int firstColumn) throws java.lang.Exception | |
fileName - The CSV file name.options - The load options for reading text filefirstRow - The row number of the first cell to import in.firstColumn - The column number of the first cell to import in.importCSV | |
public abstract void importCSV(java.io.InputStream stream, TxtLoadOptions options, int firstRow, int firstColumn) throws java.lang.Exception | |
stream - The CSV file stream.options - The load options for reading text filefirstRow - The row number of the first cell to import in.firstColumn - The column number of the first cell to import in.merge | |
public abstract void merge(int firstRow, int firstColumn, int totalRows, int totalColumns) | |
firstRow - First row of this range(zero based)firstColumn - First column of this range(zero based)totalRows - Number of rows(one based)totalColumns - Number of columns(one based)merge | |
public abstract void merge(int firstRow, int firstColumn, int totalRows, int totalColumns, boolean mergeConflict) | |
firstRow - First row of this range(zero based)firstColumn - First column of this range(zero based)totalRows - Number of rows(one based)totalColumns - Number of columns(one based)mergeConflict - Merge conflict merged ranges.merge | |
public abstract void merge(int firstRow, int firstColumn, int totalRows, int totalColumns, boolean checkConflict, boolean mergeConflict) | |
firstRow - First row of this range(zero based)firstColumn - First column of this range(zero based)totalRows - Number of rows(one based)totalColumns - Number of columns(one based)checkConflict - Indicates whether check the merged cells intersects other merged cellsmergeConflict - Merge conflict merged ranges.unMerge | |
public abstract void unMerge(int firstRow, int firstColumn, int totalRows, int totalColumns) | |
firstRow - First row of this range(zero based)firstColumn - First column of this range(zero based)totalRows - Number of rows(one based)totalColumns - Number of columns(one based)hideRow | |
public abstract void hideRow(int row) | |
row - Row index.unhideRow | |
public abstract void unhideRow(int row, double height) | |
row - Row index.height - Row height. The row's height will be changed only when the row is hidden and given height value is positive.hideRows | |
public abstract void hideRows(int row, int totalRows) | |
row - The row index.totalRows - The row number.unhideRows | |
public abstract void unhideRows(int row, int totalRows, double height) | |
row - The row index.totalRows - The row number.height - Row height. The row's height will be changed only when the row is hidden and given height value is positive.setRowHeightPixel | |
public abstract void setRowHeightPixel(int row, int pixels) | |
row - Row index.pixels - Number of pixels.setRowHeightInch | |
public abstract void setRowHeightInch(int row, double inches) | |
row - Row index.inches - Number of inches.It should be between 0 and 409.5/72.setRowHeight | |
public abstract void setRowHeight(int row, double height) | |
row - Row index.height - Height of row.In unit of point It should be between 0 and 409.5.getRowHeight | |
public abstract double getRowHeight(int row) | |
row - Row indexhideColumn | |
public abstract void hideColumn(int column) | |
column - Column index.unhideColumn | |
public abstract void unhideColumn(int column, double width) | |
column - Column index.width - Column width.hideColumns | |
public abstract void hideColumns(int column, int totalColumns) | |
column - Column index.totalColumns - Column number.unhideColumns | |
public abstract void unhideColumns(int column, int totlaColumns, double width) | |
column - Column index.totlaColumns - Column numberwidth - Column width.getRowHeightPixel | |
public abstract int getRowHeightPixel(int row) | |
row - Row indexgetRowHeightInch | |
public abstract double getRowHeightInch(int row) | |
row - Row indexsetColumnWidthPixel | |
public abstract void setColumnWidthPixel(int column, int pixel) | |
column - Column index.pixel - Number of pixels.setColumnWidthInch | |
public abstract void setColumnWidthInch(int column, double inches) | |
column - Column index.inches - Number of inches.setColumnWidth | |
public abstract void setColumnWidth(int column, double width) | |
column - Column index.width - Width of column.Column width must be between 0 and 255.getViewColumnWidthPixel | |
public abstract int getViewColumnWidthPixel(int column) | |
column - The column index.getColumnWidthPixel | |
public abstract int getColumnWidthPixel(int column) | |
column - Column indexgetColumnWidthInch | |
public abstract double getColumnWidthInch(int column) | |
column - Column indexgetColumnWidth | |
public abstract double getColumnWidth(int column) | |
column - Column indexgetLastDataRow | |
public abstract int getLastDataRow(int column) | |
column - Column index.applyColumnStyle | |
public abstract void applyColumnStyle(int column, Style style, StyleFlag flag) | |
column - The column index.style - The style object which will be applied.flag - Flags which indicates applied formatting properties.applyRowStyle | |
public abstract void applyRowStyle(int row, Style style, StyleFlag flag) | |
row - The row index.style - The style object which will be applied.flag - Flags which indicates applied formatting properties.applyStyle | |
public abstract void applyStyle(Style style, StyleFlag flag) | |
style - The style object which will be applied.flag - Flags which indicates applied formatting properties.copyColumn | |
public abstract void copyColumn(Cells sourceCells, int sourceColumnIndex, int destinationColumnIndex) | |
sourceCells - Source Cells object contains data and formats to copy.sourceColumnIndex - Source column index.destinationColumnIndex - Destination column index.copyColumns | |
public abstract void copyColumns(Cells sourceCells, int sourceColumnIndex, int destinationColumnIndex, int columnNumber) | |
sourceCells - Source Cells object contains data and formats to copy.sourceColumnIndex - Source column index.destinationColumnIndex - Destination column index.columnNumber - The copied column number.copyColumns | |
public abstract void copyColumns(Cells sourceCells, int sourceColumnIndex, int sourceTotalColumns, int destinationColumnIndex, int destinationTotalColumns) | |
sourceCells - Source Cells object contains data and formats to copy.sourceColumnIndex - Source column index.sourceTotalColumns - The number of the source columns.destinationColumnIndex - Destination column index.destinationTotalColumns - The number of the destination columns.copyRow | |
public abstract void copyRow(Cells sourceCells, int sourceRowIndex, int destinationRowIndex) throws java.lang.Exception | |
sourceCells - Source Cells object contains data and formats to copy.sourceRowIndex - Source row index.destinationRowIndex - Destination row index.copyRows | |
public abstract void copyRows(Cells sourceCells, int sourceRowIndex, int destinationRowIndex, int rowNumber) throws java.lang.Exception | |
sourceCells - Source Cells object contains data and formats to copy.sourceRowIndex - Source row index.destinationRowIndex - Destination row index.rowNumber - The copied row number.copyRows | |
public abstract void copyRows(Cells sourceCells, int sourceRowIndex, int destinationRowIndex, int rowNumber, CopyOptions copyOptions) throws java.lang.Exception | |
sourceCells - Source Cells object contains data and formats to copy.sourceRowIndex - Source row index.destinationRowIndex - Destination row index.rowNumber - The copied row number.copyOptions - The copy options.getGroupedRowOutlineLevel | |
public abstract int getGroupedRowOutlineLevel(int rowIndex) | |
rowIndex - The row index.getGroupedColumnOutlineLevel | |
public abstract int getGroupedColumnOutlineLevel(int columnIndex) | |
columnIndex - The column indexgetMaxGroupedColumnOutlineLevel | |
public abstract int getMaxGroupedColumnOutlineLevel() | |
getMaxGroupedRowOutlineLevel | |
public abstract int getMaxGroupedRowOutlineLevel() | |
showGroupDetail | |
public abstract void showGroupDetail(boolean isVertical, int index) | |
isVertical - True, uncollapse the grouped rows.index - The row/column indexhideGroupDetail | |
public abstract void hideGroupDetail(boolean isVertical, int index) | |
isVertical - True, collapse the grouped rows.index - The row/column indexungroupColumns | |
public abstract void ungroupColumns(int firstIndex, int lastIndex) | |
firstIndex - The first column index to be ungrouped.lastIndex - The last column index to be ungrouped.groupColumns | |
public abstract void groupColumns(int firstIndex, int lastIndex) | |
firstIndex - The first column index to be grouped.lastIndex - The last column index to be grouped.groupColumns | |
public abstract void groupColumns(int firstIndex, int lastIndex, boolean isHidden) | |
firstIndex - The first column index to be grouped.lastIndex - The last column index to be grouped.isHidden - Specifies if the grouped columns are hidden.ungroupRows | |
public abstract void ungroupRows(int firstIndex, int lastIndex, boolean isAll) | |
firstIndex - The first row index to be ungrouped.lastIndex - The last row index to be ungrouped.isAll - True, removes all grouped info.Otherwise, remove the outter group info.ungroupRows | |
public abstract void ungroupRows(int firstIndex, int lastIndex) | |
firstIndex - The first row index to be ungrouped.lastIndex - The last row index to be ungrouped.groupRows | |
public abstract void groupRows(int firstIndex, int lastIndex, boolean isHidden) | |
firstIndex - The first row index to be grouped.lastIndex - The last row index to be grouped.isHidden - Specifies if the grouped columns are hidden.groupRows | |
public abstract void groupRows(int firstIndex, int lastIndex) | |
firstIndex - The first row index to be grouped.lastIndex - The last row index to be grouped.deleteColumn | |
public abstract void deleteColumn(int columnIndex, boolean updateReference) | |
columnIndex - Column index.updateReference - Indicates if update references in other worksheets.deleteColumn | |
public abstract void deleteColumn(int columnIndex) | |
columnIndex - Column index.deleteColumns | |
public abstract void deleteColumns(int columnIndex, int totalColumns, boolean updateReference) | |
columnIndex - Column index.totalColumns - Number of columns to be deleted.updateReference - Indicates if update references in other worksheets.isDeletingRangeEnabled | |
public abstract boolean isDeletingRangeEnabled(int startRow, int startColumn, int totalRows, int totalColumns) | |
startRow - The start row index of the range.startColumn - The start column idnex of the range.totalRows - The number of the rows in the range.totalColumns - The number of the columns in the range.deleteRows | |
public abstract boolean deleteRows(int rowIndex, int totalRows) | |
rowIndex - The first row index to be deleted.totalRows - Number of rows to be deleted.deleteRow | |
public abstract void deleteRow(int rowIndex) | |
rowIndex - Row index.deleteRows | |
public abstract boolean deleteRows(int rowIndex, int totalRows, boolean updateReference) | |
rowIndex - Row index.totalRows - Number of rows to be deleted.updateReference - Indicates if update references in other worksheets.deleteBlankColumns | |
public abstract void deleteBlankColumns() | |
deleteBlankColumns | |
public abstract void deleteBlankColumns(DeleteOptions options) | |
options - The options of deleting range.isBlankColumn | |
public abstract boolean isBlankColumn(int columnIndex) | |
columnIndex - the column indexdeleteBlankRows | |
public abstract void deleteBlankRows() | |
deleteBlankRows | |
public abstract void deleteBlankRows(DeleteOptions options) | |
options - The options of deleting range.insertColumns | |
public abstract void insertColumns(int columnIndex, int totalColumns) | |
columnIndex - Column index.totalColumns - The number of columns.insertColumns | |
public abstract void insertColumns(int columnIndex, int totalColumns, boolean updateReference) | |
columnIndex - Column index.totalColumns - The number of columns.updateReference - Indicates if references in other worksheets will be updated.insertColumn | |
public abstract void insertColumn(int columnIndex, boolean updateReference) | |
columnIndex - Column index.updateReference - Indicates if references in other worksheets will be updated.insertColumn | |
public abstract void insertColumn(int columnIndex) | |
columnIndex - Column index.insertRows | |
public abstract void insertRows(int rowIndex, int totalRows, boolean updateReference) | |
rowIndex - Row index.totalRows - Number of rows to be inserted.updateReference - Indicates if references in other worksheets will be updated.insertRows | |
public abstract void insertRows(int rowIndex, int totalRows) | |
rowIndex - Row index.totalRows - Number of rows to be inserted.insertRow | |
public abstract void insertRow(int rowIndex) | |
rowIndex - Row index.clearRange | |
public abstract void clearRange(CellArea range) | |
range - Range to be cleared.clearRange | |
public abstract void clearRange(int startRow, int startColumn, int endRow, int endColumn) | |
startRow - Start row index.startColumn - Start column index.endRow - End row index.endColumn - End column index.clearContents | |
public abstract void clearContents(CellArea range) | |
range - Range to be cleared.clearContents | |
public abstract void clearContents(int startRow, int startColumn, int endRow, int endColumn) | |
startRow - Start row index.startColumn - Start column index.endRow - End row index.endColumn - End column index.clearFormats | |
public abstract void clearFormats(CellArea range) | |
range - Range to be cleared.clearFormats | |
public abstract void clearFormats(int startRow, int startColumn, int endRow, int endColumn) | |
startRow - Start row index.startColumn - Start column index.endRow - End row index.endColumn - End column index.linkToXmlMap | |
public abstract void linkToXmlMap(java.lang.String mapName, int row, int column, java.lang.String path)
throws java.lang.Exception | |
mapName - name of xml maprow - row of the destination cellcolumn - column of the destination cellpath - path of xml element in xml mapfindFormula | |
public abstract Cell findFormula(java.lang.String formula, Cell previousCell) | |
formula - The formula to search for.previousCell - Previous cell with the same formula. This parameter can be set to null if searching from the start.