Package org.openl.rules.table
Class SubGridTable
- java.lang.Object
-
- org.openl.rules.table.AGridTable
-
- org.openl.rules.table.AGridTableDecorator
-
- org.openl.rules.table.SubGridTable
-
- All Implemented Interfaces:
IGridTable,ITable<IGridTable>
public class SubGridTable extends AGridTableDecorator
Part of the grid table. Allows to get different parts from the table.- Author:
- snshor
-
-
Field Summary
-
Fields inherited from class org.openl.rules.table.AGridTableDecorator
table
-
Fields inherited from interface org.openl.rules.table.IGridTable
EMPTY_GRID
-
-
Constructor Summary
Constructors Constructor Description SubGridTable(IGridTable table, int fromColumn, int fromRow, int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ICellgetCell(int column, int row)intgetGridColumn(int col, int row)intgetGridRow(int col, int row)intgetHeight()IGridRegiongetRegion()IGridTablegetSubtable(int column, int row, int width, int height)intgetWidth()booleanisNormalOrientation()-
Methods inherited from class org.openl.rules.table.AGridTableDecorator
edit, getGrid, getOriginalGridTable, stopEditing
-
Methods inherited from class org.openl.rules.table.AGridTable
getColumn, getColumns, getColumns, getRow, getRows, getRows, getUri, getUri, getUriParser, resetUri, toString, transpose
-
-
-
-
Constructor Detail
-
SubGridTable
public SubGridTable(IGridTable table, int fromColumn, int fromRow, int width, int height)
-
-
Method Detail
-
getRegion
public IGridRegion getRegion()
- Specified by:
getRegionin interfaceIGridTable- Overrides:
getRegionin classAGridTable
-
getGridColumn
public int getGridColumn(int col, int row)
-
getGridRow
public int getGridRow(int col, int row)
-
getHeight
public int getHeight()
- Returns:
- height of the table
-
getWidth
public int getWidth()
- Returns:
- width of the table
-
isNormalOrientation
public boolean isNormalOrientation()
- Returns:
- checks if it is transposed or not. see
ITable.transpose()andTransposedGridTable.
-
getSubtable
public IGridTable getSubtable(int column, int row, int width, int height)
- Specified by:
getSubtablein interfaceITable<IGridTable>- Overrides:
getSubtablein classAGridTable- Parameters:
column- from which we want to take the subtable, including border.row- from which we want to take the subtable, including border.width- of the needed table.height- of the needed table.- Returns:
- the subtable of this table.
-
getCell
public ICell getCell(int column, int row)
- Specified by:
getCellin interfaceITable<IGridTable>- Overrides:
getCellin classAGridTable- Returns:
- cell form the given column and row.
-
-