public class XlsSheetGridModel extends AGrid implements IWritableGrid
RANGE_SEPARATORCELL_TYPE_BLANK, CELL_TYPE_BOOLEAN, CELL_TYPE_ERROR, CELL_TYPE_FORMULA, CELL_TYPE_NUMERIC, CELL_TYPE_STRING| Constructor and Description |
|---|
XlsSheetGridModel(XlsSheetSourceCodeModule sheetSource) |
| Modifier and Type | Method and Description |
|---|---|
int |
addMergedRegion(IGridRegion reg) |
void |
clearCell(int col,
int row) |
void |
clearCellValue(int col,
int row) |
protected void |
copyCell(org.apache.poi.ss.usermodel.Cell cellFrom,
int colTo,
int rowTo) |
void |
copyCell(int colFrom,
int rowFrom,
int colTo,
int rowTo) |
void |
createCell(int col,
int row,
Object value,
String formula,
ICellStyle style,
ICellComment comment) |
IGridRegion |
findEmptyRect(int width,
int height)
Finds a rectangular area of given width and height on the grid that can be used for writing.
|
ICell |
getCell(int column,
int row) |
AXlsCellWriter |
getCellWriter(Object value) |
int |
getColumnWidth(int col) |
int |
getMaxColumnIndex(int rownum) |
int |
getMaxRowIndex() |
IGridRegion |
getMergedRegion(int i) |
int |
getMinColumnIndex(int rownum) |
int |
getMinRowIndex() |
String |
getName() |
int |
getNumberOfMergedRegions() |
String |
getRangeUri(IGridRegion region)
Gets the URI to the table by table region.
|
IGridRegion |
getRegionContaining(int x,
int y) |
XlsSheetSourceCodeModule |
getSheetSource() |
SpreadsheetConstants |
getSpreadsheetConstants() |
String |
getUri() |
boolean |
isEmpty(int x,
int y) |
void |
removeMergedRegion(IGridRegion remove) |
void |
removeMergedRegion(int x,
int y) |
void |
setCellAlignment(int col,
int row,
org.apache.poi.ss.usermodel.HorizontalAlignment alignment) |
void |
setCellBorderStyle(int col,
int row,
ICellStyle style) |
void |
setCellComment(int col,
int row,
ICellComment comment) |
void |
setCellFillColor(int col,
int row,
short[] color) |
void |
setCellFontBold(int col,
int row,
boolean bold) |
void |
setCellFontColor(int col,
int row,
short[] color) |
void |
setCellFontItalic(int col,
int row,
boolean italic) |
void |
setCellFontUnderline(int col,
int row,
boolean underlined) |
void |
setCellFormula(int col,
int row,
String formula) |
void |
setCellIndent(int col,
int row,
int indent) |
void |
setCellStringValue(int col,
int row,
String value) |
void |
setCellStyle(int col,
int row,
ICellStyle style) |
void |
setCellValue(int col,
int row,
Object value) |
getRangeUri, getRegionStartingAt, getTables, isInOneMergedRegion, isPartOfTheMergedRegion, isTopLeftCellInMergedRegionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRangeUri, getRegionStartingAt, getTables, isInOneMergedRegion, isPartOfTheMergedRegion, isTopLeftCellInMergedRegionpublic XlsSheetGridModel(XlsSheetSourceCodeModule sheetSource)
public int addMergedRegion(IGridRegion reg)
addMergedRegion in interface IWritableGridpublic void clearCellValue(int col,
int row)
public void clearCell(int col,
int row)
clearCell in interface IWritableGridpublic void copyCell(int colFrom,
int rowFrom,
int colTo,
int rowTo)
copyCell in interface IWritableGridpublic void createCell(int col,
int row,
Object value,
String formula,
ICellStyle style,
ICellComment comment)
createCell in interface IWritableGridprotected void copyCell(org.apache.poi.ss.usermodel.Cell cellFrom,
int colTo,
int rowTo)
public IGridRegion findEmptyRect(int width, int height)
IWritableGridfindEmptyRect in interface IWritableGridwidth - rectangle widthheight - rectangle heightnull if not foundpublic int getColumnWidth(int col)
getColumnWidth in interface IGridpublic int getMaxColumnIndex(int rownum)
getMaxColumnIndex in interface IGridpublic int getMaxRowIndex()
getMaxRowIndex in interface IGridpublic IGridRegion getMergedRegion(int i)
getMergedRegion in interface IGridpublic int getMinColumnIndex(int rownum)
getMinColumnIndex in interface IGridpublic int getMinRowIndex()
getMinRowIndex in interface IGridpublic String getName()
public int getNumberOfMergedRegions()
getNumberOfMergedRegions in interface IGridpublic String getRangeUri(IGridRegion region)
AGrid.getRangeUri(int, int, int, int).region - Table region.file:D:\work\Workspace\org.openl.tablets.tutorial4\rules
\main&wbName=Tutorial_4.xls&wsName=Vehicle-Scoring&range=B3:D12)public IGridRegion getRegionContaining(int x, int y)
getRegionContaining in interface IGridgetRegionContaining in class AGridnullpublic XlsSheetSourceCodeModule getSheetSource()
public void removeMergedRegion(IGridRegion remove)
removeMergedRegion in interface IWritableGridpublic void removeMergedRegion(int x,
int y)
removeMergedRegion in interface IWritableGridpublic void setCellValue(int col,
int row,
Object value)
setCellValue in interface IWritableGridpublic void setCellStringValue(int col,
int row,
String value)
setCellStringValue in interface IWritableGridpublic void setCellFormula(int col,
int row,
String formula)
setCellFormula in interface IWritableGridpublic void setCellStyle(int col,
int row,
ICellStyle style)
setCellStyle in interface IWritableGridpublic void setCellBorderStyle(int col,
int row,
ICellStyle style)
setCellBorderStyle in interface IWritableGridpublic void setCellAlignment(int col,
int row,
org.apache.poi.ss.usermodel.HorizontalAlignment alignment)
setCellAlignment in interface IWritableGridpublic void setCellIndent(int col,
int row,
int indent)
setCellIndent in interface IWritableGridpublic void setCellFillColor(int col,
int row,
short[] color)
setCellFillColor in interface IWritableGridpublic void setCellFontColor(int col,
int row,
short[] color)
setCellFontColor in interface IWritableGridpublic void setCellFontBold(int col,
int row,
boolean bold)
setCellFontBold in interface IWritableGridpublic void setCellFontItalic(int col,
int row,
boolean italic)
setCellFontItalic in interface IWritableGridpublic void setCellFontUnderline(int col,
int row,
boolean underlined)
setCellFontUnderline in interface IWritableGridpublic void setCellComment(int col,
int row,
ICellComment comment)
setCellComment in interface IWritableGridpublic AXlsCellWriter getCellWriter(Object value)
public SpreadsheetConstants getSpreadsheetConstants()
Copyright © 2004–2019 OpenL Tablets. All rights reserved.