Package org.openl.rules.table
Interface IWritableGrid
-
- All Superinterfaces:
IGrid
- All Known Implementing Classes:
XlsSheetGridModel
public interface IWritableGrid extends IGrid
- Author:
- snshor
-
-
Field Summary
-
Fields inherited from interface org.openl.rules.table.IGrid
CELL_TYPE_BLANK, CELL_TYPE_BOOLEAN, CELL_TYPE_ERROR, CELL_TYPE_FORMULA, CELL_TYPE_NUMERIC, CELL_TYPE_STRING
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intaddMergedRegion(IGridRegion reg)voidclearCell(int col, int row)voidcopyCell(int colFrom, int rowFrom, int colTo, int rowTo)voidcreateCell(int col, int row, Object value, String formula, ICellStyle style, String comment, String prevCommentAuthor)IGridRegionfindEmptyRect(int width, int height)Finds a rectangular area of given width and height on the grid that can be used for writing.voidremoveMergedRegion(int x, int y)voidremoveMergedRegion(IGridRegion to)voidsetCellAlignment(int col, int row, org.apache.poi.ss.usermodel.HorizontalAlignment alignment)voidsetCellBorderStyle(int col, int row, ICellStyle style)voidsetCellComment(int col, int row, String comment, String prevCommentAuthor)voidsetCellFillColor(int col, int row, short[] color)voidsetCellFontBold(int col, int row, boolean bold)voidsetCellFontColor(int col, int row, short[] color)voidsetCellFontItalic(int col, int row, boolean italic)voidsetCellFontUnderline(int col, int row, boolean underlined)voidsetCellFormula(int col, int row, String formula)voidsetCellIndent(int col, int row, int indent)voidsetCellStringValue(int col, int row, String value)voidsetCellStyle(int col, int row, ICellStyle style)voidsetCellValue(int col, int row, Object value)-
Methods inherited from interface org.openl.rules.table.IGrid
getCell, getColumnWidth, getMaxColumnIndex, getMaxRowIndex, getMergedRegion, getMinColumnIndex, getMinRowIndex, getNumberOfMergedRegions, getRangeUri, getRegionContaining, getRegionStartingAt, getTables, getUri, isEmpty, isInOneMergedRegion, isPartOfTheMergedRegion, isTopLeftCellInMergedRegion
-
-
-
-
Method Detail
-
addMergedRegion
int addMergedRegion(IGridRegion reg)
-
clearCell
void clearCell(int col, int row)
-
createCell
void createCell(int col, int row, Object value, String formula, ICellStyle style, String comment, String prevCommentAuthor)
-
copyCell
void copyCell(int colFrom, int rowFrom, int colTo, int rowTo)
-
findEmptyRect
IGridRegion findEmptyRect(int width, int height)
Finds a rectangular area of given width and height on the grid that can be used for writing. The returned region should not intersect with or touch existing not empty cells.- Parameters:
width- rectangle widthheight- rectangle height- Returns:
- region representing required rectangle or
nullif not found
-
removeMergedRegion
void removeMergedRegion(IGridRegion to)
-
removeMergedRegion
void removeMergedRegion(int x, int y)
-
setCellStyle
void setCellStyle(int col, int row, ICellStyle style)
-
setCellBorderStyle
void setCellBorderStyle(int col, int row, ICellStyle style)
-
setCellAlignment
void setCellAlignment(int col, int row, org.apache.poi.ss.usermodel.HorizontalAlignment alignment)
-
setCellIndent
void setCellIndent(int col, int row, int indent)
-
setCellFillColor
void setCellFillColor(int col, int row, short[] color)
-
setCellFontBold
void setCellFontBold(int col, int row, boolean bold)
-
setCellFontItalic
void setCellFontItalic(int col, int row, boolean italic)
-
setCellFontUnderline
void setCellFontUnderline(int col, int row, boolean underlined)
-
setCellFontColor
void setCellFontColor(int col, int row, short[] color)
-
setCellValue
void setCellValue(int col, int row, Object value)
-
setCellStringValue
void setCellStringValue(int col, int row, String value)
-
setCellFormula
void setCellFormula(int col, int row, String formula)
-
-