Package org.openl.rules.table
Class TransformedGridTable
- java.lang.Object
-
- org.openl.rules.table.AGridTable
-
- org.openl.rules.table.AGridTableDecorator
-
- org.openl.rules.table.TransformedGridTable
-
- All Implemented Interfaces:
IGridTable,ITable<IGridTable>
public class TransformedGridTable extends AGridTableDecorator
Logical table model that delegate original table and access to original table through coordinates transformation.- Author:
- PUdalau
-
-
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 TransformedGridTable(IGridTable gridTable, CoordinatesTransformer transformer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ICellgetCell(int column, int row)intgetGridColumn(int column, int row)intgetGridRow(int column, int row)intgetHeight()CoordinatesTransformergetTransformer()StringgetUri()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, getRegion, getRow, getRows, getRows, getSubtable, getUri, getUriParser, resetUri, toString, transpose
-
-
-
-
Constructor Detail
-
TransformedGridTable
public TransformedGridTable(IGridTable gridTable, CoordinatesTransformer transformer)
-
-
Method Detail
-
getTransformer
public CoordinatesTransformer getTransformer()
- Returns:
CoordinatesTransformerof this logical 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.
-
getUri
public String getUri()
- Specified by:
getUriin interfaceIGridTable- Overrides:
getUriin classAGridTable
-
getWidth
public int getWidth()
- Returns:
- width of the table
-
getHeight
public int getHeight()
- Returns:
- height of the table
-
getGridRow
public int getGridRow(int column, int row)
-
getGridColumn
public int getGridColumn(int column, int row)
-
isNormalOrientation
public boolean isNormalOrientation()
- Returns:
- checks if it is transposed or not. see
ITable.transpose()andTransposedGridTable.
-
-