Package org.openl.rules.table
Class AGrid
- java.lang.Object
-
- org.openl.rules.table.AGrid
-
- All Implemented Interfaces:
IGrid
- Direct Known Subclasses:
CompositeGrid,ParsedGrid,XlsSheetGridModel
public abstract class AGrid extends Object implements IGrid
-
-
Field Summary
Fields Modifier and Type Field Description static charRANGE_SEPARATOR-
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
-
-
Constructor Summary
Constructors Constructor Description AGrid()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetRangeUri(int colStart, int rowStart, int colEnd, int rowEnd)Gets the URI to the table by its four coordinates on the sheet.IGridRegiongetRegionContaining(int col, int row)IGridRegiongetRegionStartingAt(int colFrom, int rowFrom)IGridTable[]getTables()booleanisInOneMergedRegion(int firstCellColumn, int firstCellRow, int secondCellColumn, int secondCellRow)booleanisPartOfTheMergedRegion(int x, int y)booleanisTopLeftCellInMergedRegion(int column, int row)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openl.rules.table.IGrid
getCell, getColumnWidth, getMaxColumnIndex, getMaxRowIndex, getMergedRegion, getMinColumnIndex, getMinRowIndex, getNumberOfMergedRegions, getUri, isEmpty
-
-
-
-
Field Detail
-
RANGE_SEPARATOR
public static final char RANGE_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTables
public IGridTable[] getTables()
-
getRangeUri
public String getRangeUri(int colStart, int rowStart, int colEnd, int rowEnd)
Gets the URI to the table by its four coordinates on the sheet.- Specified by:
getRangeUriin interfaceIGrid- Returns:
- URI to the table in the sheet. (e.g.
file:D:\work\Workspace\org.openl.tablets.tutorial4\rules \main&wbName=Tutorial_4.xls&wsName=Vehicle-Scoring&range=B3:D12)
-
getRegionContaining
public IGridRegion getRegionContaining(int col, int row)
- Specified by:
getRegionContainingin interfaceIGrid- Returns:
- Merged region containing cell specified by coordinates or
null
-
getRegionStartingAt
public IGridRegion getRegionStartingAt(int colFrom, int rowFrom)
- Specified by:
getRegionStartingAtin interfaceIGrid
-
isPartOfTheMergedRegion
public boolean isPartOfTheMergedRegion(int x, int y)- Specified by:
isPartOfTheMergedRegionin interfaceIGrid
-
isTopLeftCellInMergedRegion
public boolean isTopLeftCellInMergedRegion(int column, int row)- Specified by:
isTopLeftCellInMergedRegionin interfaceIGrid
-
isInOneMergedRegion
public boolean isInOneMergedRegion(int firstCellColumn, int firstCellRow, int secondCellColumn, int secondCellRow)- Specified by:
isInOneMergedRegionin interfaceIGrid
-
-