Package org.openl.rules.table
Class AGridTable
- java.lang.Object
-
- org.openl.rules.table.AGridTable
-
- All Implemented Interfaces:
IGridTable,ITable<IGridTable>
- Direct Known Subclasses:
AGridTableDecorator,GridTable
public abstract class AGridTable extends Object implements IGridTable
Default implementation for grid tables.- Author:
- snshor
-
-
Field Summary
-
Fields inherited from interface org.openl.rules.table.IGridTable
EMPTY_GRID
-
-
Constructor Summary
Constructors Constructor Description AGridTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ICellgetCell(int column, int row)IGridTablegetColumn(int column)IGridTablegetColumns(int from)IGridTablegetColumns(int from, int to)IGridRegiongetRegion()IGridTablegetRow(int row)IGridTablegetRows(int from)IGridTablegetRows(int from, int to)IGridTablegetSubtable(int column, int row, int width, int height)StringgetUri()StringgetUri(int col, int row)XlsUrlParsergetUriParser()voidresetUri()StringtoString()IGridTabletranspose()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openl.rules.table.IGridTable
edit, getGrid, getGridColumn, getGridRow, stopEditing
-
Methods inherited from interface org.openl.rules.table.ITable
getHeight, getWidth, isNormalOrientation
-
-
-
-
Method Detail
-
getRegion
public IGridRegion getRegion()
- Specified by:
getRegionin interfaceIGridTable
-
getUri
public String getUri()
- Specified by:
getUriin interfaceIGridTable
-
resetUri
public void resetUri()
- Specified by:
resetUriin interfaceIGridTable
-
getUriParser
public XlsUrlParser getUriParser()
- Specified by:
getUriParserin interfaceIGridTable
-
getUri
public String getUri(int col, int row)
- Specified by:
getUriin interfaceIGridTable
-
transpose
public IGridTable transpose()
- Specified by:
transposein interfaceITable<IGridTable>- Returns:
- transposed current table. See
TransposedGridTable.
-
getCell
public ICell getCell(int column, int row)
- Specified by:
getCellin interfaceITable<IGridTable>- Returns:
- cell form the given column and row.
-
getColumn
public IGridTable getColumn(int column)
- Specified by:
getColumnin interfaceITable<IGridTable>- Returns:
- the column represented as
ITableby it`s index.
-
getColumns
public IGridTable getColumns(int from)
- Specified by:
getColumnsin interfaceITable<IGridTable>- Returns:
- the columns represented as
ITablefrom given index and till the right last column, including borders.
-
getColumns
public IGridTable getColumns(int from, int to)
- Specified by:
getColumnsin interfaceITable<IGridTable>- Returns:
- the columns represented as
ITablefrom given start index and till the given end.
-
getRow
public IGridTable getRow(int row)
- Specified by:
getRowin interfaceITable<IGridTable>- Returns:
- the row represented as
ITableby it`s index.
-
getRows
public IGridTable getRows(int from)
- Specified by:
getRowsin interfaceITable<IGridTable>- Returns:
- the rows represented as
ITablefrom given index and till the bottom row, including borders.
-
getRows
public IGridTable getRows(int from, int to)
- Specified by:
getRowsin interfaceITable<IGridTable>- Returns:
- the rows represented as
ITablefrom given start index and till the given end.
-
getSubtable
public IGridTable getSubtable(int column, int row, int width, int height)
- Specified by:
getSubtablein interfaceITable<IGridTable>- 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.
-
-