|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.table.StaticTableInterfaceSupport
public abstract class StaticTableInterfaceSupport
Helper class for implementations of StaticTableInterface, StaticColumnLabelInterface, and StaticRowLabelInterface.
StaticTableInterface
,
StaticColumnLabelInterface
,
StaticRowLabelInterface
Constructor Summary | |
---|---|
StaticTableInterfaceSupport()
|
Method Summary | |
---|---|
static int |
countColumns(StaticTableInterface table,
int maxCount)
Use when your implementation of getColumnCount() does not return -1. |
static int |
countRows(StaticTableInterface table,
int maxCount)
Use when your implementation of getRowCount() does not return -1. |
static java.lang.Class[][] |
getCellClasses(StaticTableInterface table,
int startRowIndex,
int startColumnIndex,
int rowCount,
int columnCount)
Calls table.getCellClass(rowIndex, colIndex)
rowCount times columnCount times. |
static java.lang.Object[][] |
getCells(StaticTableInterface table,
int startRowIndex,
int startColumnIndex,
int rowCount,
int columnCount)
Calls table.getCell(rowIndex, colIndex)
rowCount times columnCount times. |
static java.lang.Object[] |
getColumn(StaticTableInterface table,
int colIndex)
Calls table.getCell(rowIndex, colIndex)
table.getRowCount() times. |
static java.lang.Object[] |
getColumnLabels(StaticColumnLabelInterface table,
int startIndex,
int count)
Calls table.getColumnLabel(colIndex) count times. |
static java.lang.Object[] |
getRow(StaticTableInterface table,
int rowIndex)
Calls table.getCell(rowIndex, colIndex)
table.getColumnCount() times. |
static java.lang.Object[] |
getRowLabels(com.sas.table.StaticRowLabelInterface table,
int startIndex,
int count)
Calls table.getRowLabel(colIndex) count times. |
Constructor Detail |
---|
public StaticTableInterfaceSupport()
Method Detail |
---|
public static int countColumns(StaticTableInterface table, int maxCount) throws com.sas.table.TableException
table
- Implementation of StaticTableInterface.maxCount
- Ignored.
table.getColumnCount()
TableException
- Propagated from getColumnCount()
.StaticTableInterface.countColumns(int)
public static int countRows(StaticTableInterface table, int maxCount) throws com.sas.table.TableException
table
- Implementation of StaticTableInterface.maxCount
- Ignored.
table.getRowCount()
TableException
- Propagated from getRowCount()
.StaticTableInterface.countRows(int)
public static java.lang.Object[][] getCells(StaticTableInterface table, int startRowIndex, int startColumnIndex, int rowCount, int columnCount) throws com.sas.table.TableException
table.getCell(rowIndex, colIndex)
rowCount times columnCount times.
Use when your implementation can't return a range of cells in a
more efficient manner.
table
- Implementation of StaticTableInterface.startRowIndex
- A one-based index that identifies the row of the first cell in the range.startColumnIndex
- A one-based index that identifies the column of the first cell in the range.rowCount
- The number of rows in the range.columnCount
- The number of columns in the range.
TableException
- Propagated from getCell()
.StaticTableInterface.getCells(int, int, int, int)
public static java.lang.Class[][] getCellClasses(StaticTableInterface table, int startRowIndex, int startColumnIndex, int rowCount, int columnCount) throws com.sas.table.TableException
table.getCellClass(rowIndex, colIndex)
rowCount times columnCount times.
Use when your implementation can't return a range of cell classes
in a more efficient manner.
table
- Implementation of StaticTableInterface.startRowIndex
- A one-based index that identifies the row of the first cell in the range.startColumnIndex
- A one-based index that identifies the column of the first cell in the range.rowCount
- The number of rows in the range.columnCount
- The number of columns in the range.
TableException
- Propagated from getCellClass()
.StaticTableInterface.getCellClasses(int, int, int, int)
public static java.lang.Object[] getColumn(StaticTableInterface table, int colIndex) throws com.sas.table.TableException
table.getCell(rowIndex, colIndex)
table.getRowCount()
times.
Use when your implementation can't return an entire column
in a more efficient manner.
table
- Implementation of StaticTableInterface.colIndex
- A one-based index that identifies the column to return.
TableException
- Propagated from getCell()
.StaticTableInterface.getColumn(int)
public static java.lang.Object[] getRow(StaticTableInterface table, int rowIndex) throws com.sas.table.TableException
table.getCell(rowIndex, colIndex)
table.getColumnCount()
times.
Use when your implementation can't return an entire row
in a more efficient manner.
table
- Implementation of StaticTableInterface.rowIndex
- A one-based index that identifies the row to return.
TableException
- Propagated from getCell()
.StaticTableInterface.getRow(int)
public static java.lang.Object[] getColumnLabels(StaticColumnLabelInterface table, int startIndex, int count) throws com.sas.table.TableException
table.getColumnLabel(colIndex)
count times.
Use when your implementation can't return a range of column labels
in a more efficient manner.
table
- Implementation of StaticColumnLabelInterface.startIndex
- A one-based index which identifies the start of the range.count
- The number of labels to return (the extent of the range).
TableException
- Propagated from getColumnLabel()
.StaticColumnLabelInterface.getColumnLabels(int, int)
public static java.lang.Object[] getRowLabels(com.sas.table.StaticRowLabelInterface table, int startIndex, int count) throws com.sas.table.TableException
table.getRowLabel(colIndex)
count times.
Use when your implementation can't return a range of row labels
in a more efficient manner.
table
- Implementation of StaticRowLabelInterface.startIndex
- A one-based index which identifies the start of the range.count
- The number of labels to return (the extent of the range).
TableException
- Propagated from getRowLabel()
.StaticRowLabelInterface.getRowLabels(int, int)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |