Package org.openl.rules.table
Class GridTable
- java.lang.Object
-
- org.openl.rules.table.AGridTable
-
- org.openl.rules.table.GridTable
-
- All Implemented Interfaces:
IGridTable,ITable<IGridTable>
- Direct Known Subclasses:
EditableGridTable
public class GridTable extends AGridTable
- Author:
- snshor
-
-
Field Summary
-
Fields inherited from interface org.openl.rules.table.IGridTable
EMPTY_GRID
-
-
Constructor Summary
Constructors Constructor Description GridTable(int top, int left, int bottom, int right, IGrid grid)GridTable(IGridRegion reg, IGrid grid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidedit()IGridgetGrid()intgetGridColumn(int column, int row)intgetGridRow(int column, int row)intgetHeight()IGridRegiongetRegion()intgetWidth()booleanisNormalOrientation()voidstopEditing()-
Methods inherited from class org.openl.rules.table.AGridTable
getCell, getColumn, getColumns, getColumns, getRow, getRows, getRows, getSubtable, getUri, getUri, getUriParser, resetUri, toString, transpose
-
-
-
-
Constructor Detail
-
GridTable
public GridTable(IGridRegion reg, IGrid grid)
-
GridTable
public GridTable(int top, int left, int bottom, int right, IGrid grid)
-
-
Method Detail
-
getWidth
public int getWidth()
- Returns:
- width of the table
-
getHeight
public int getHeight()
- Returns:
- height of the table
-
getGrid
public IGrid getGrid()
-
edit
public void edit()
-
stopEditing
public void stopEditing()
-
getGridColumn
public int getGridColumn(int column, int row)
-
getGridRow
public int getGridRow(int column, int row)
-
getRegion
public IGridRegion getRegion()
- Specified by:
getRegionin interfaceIGridTable- Overrides:
getRegionin classAGridTable
-
isNormalOrientation
public boolean isNormalOrientation()
- Returns:
- checks if it is transposed or not. see
ITable.transpose()andTransposedGridTable.
-
-