|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITabularData
ITabularData is an interface to an instance of Dashboard Studio tabular data. ITabularData instances are used as function arguments and return types where tabular data is required. Use the factory class TabularDataFactory to create instances of ITabularData.
Field Summary | |
---|---|
static int |
COL_TYPE_BOOLEAN
Column of type Boolean |
static int |
COL_TYPE_DATE
Column of type Date |
static int |
COL_TYPE_DOUBLE
Column of type Double |
static int |
COL_TYPE_FLOAT
Column of type Float |
static int |
COL_TYPE_INTEGER
Column of type Integer |
static int |
COL_TYPE_LONG
Column of type Long |
static int |
COL_TYPE_STRING
Column of type String |
Method Summary | |
---|---|
void |
addColumn(java.lang.String colName,
int colType)
Add a column to a data table. |
void |
addRow(java.lang.String rowName)
Add a new row to the data table. |
void |
clearRemovedRows()
Clear all removed rows from the data table. |
java.lang.Object |
clone()
Create a copy of the data table. |
boolean |
getBooleanCellValue(int rowNumber,
int colNumber)
Get the value of a boolean cell in a data table. |
java.lang.String |
getCellValue(int rowNumber,
int colNumber)
Get the value of a cell in a data table. |
int |
getColumnIndex(java.lang.String colName)
Get the index of a column in a data table. |
java.lang.String[] |
getColumnNames()
Get the names of the columns in a data table. |
int[] |
getColumnTypeCodes()
Get the types of the columns in a data table. |
java.util.Enumeration |
getDataArrays()
Get the data arrays for the data in a data table. |
double |
getDoubleCellValue(int rowNumber,
int colNumber)
Get the value of a double cell in a data table. |
float |
getFloatCellValue(int rowNumber,
int colNumber)
Get the value of a float cell in a data table. |
int |
getIntCellValue(int rowNumber,
int colNumber)
Get the value of an integer cell in a data table. |
long |
getLongCellValue(int rowNumber,
int colNumber)
Get the value of a long cell in a data table. |
int |
getNumColumns()
Get the number of columns in data table. |
int |
getNumRows()
Get the number of rows in a data table. |
java.lang.String[] |
getRowNames()
Get the names of the rows in a data table. |
void |
insertColumnAt(java.lang.String colName,
int colType,
int colNumber)
Insert a column into the data table. |
void |
insertRowAt(java.lang.String rowName,
int rowNumber)
Insert a new row into the data table. |
void |
removeColumnAt(int colNumber)
Remove a column from a data table. |
void |
removeRow(java.lang.String rowName)
Remove a single row from a data table. |
void |
removeRowAt(int rowNumber)
Remove a single row from a data table. |
void |
setCellValue(boolean value,
int rowNumber,
int colNumber)
Set the value of a boolean cell in a data table. |
void |
setCellValue(double value,
int rowNumber,
int colNumber)
Set the value of a double cell in a data table. |
void |
setCellValue(float value,
int rowNumber,
int colNumber)
Set the value of a float cell in a data table. |
void |
setCellValue(int value,
int rowNumber,
int colNumber)
Set the value of an integer cell in a data table. |
void |
setCellValue(long value,
int rowNumber,
int colNumber)
Set the value of a long cell in a data table. |
void |
setCellValue(java.lang.String value,
int rowNumber,
int colNumber)
Set the value of a string cell in a data table. |
void |
setDateCellValue(long value,
int rowNumber,
int colNumber)
Set the value of a date cell in a data table. |
void |
setDateCellValue(java.lang.String value,
int rowNumber,
int colNumber)
Set the value of a date cell in a data table. |
void |
sortRows()
Sort the rows in a data table. |
Field Detail |
---|
static final int COL_TYPE_BOOLEAN
static final int COL_TYPE_DATE
static final int COL_TYPE_DOUBLE
static final int COL_TYPE_FLOAT
static final int COL_TYPE_INTEGER
static final int COL_TYPE_LONG
static final int COL_TYPE_STRING
Method Detail |
---|
void addColumn(java.lang.String colName, int colType)
colName
- Name of column.colType
- Data type of column (COL_TYPE_BOOLEAN, COL_TYPE_DATE, ...)void addRow(java.lang.String rowName)
rowName
- Name of the row.void clearRemovedRows()
java.lang.Object clone()
boolean getBooleanCellValue(int rowNumber, int colNumber)
rowNumber
- Row of cell.colNumber
- Column of cell.
java.lang.String getCellValue(int rowNumber, int colNumber)
rowNumber
- Row of cell.colNumber
- Column of cell.
int getColumnIndex(java.lang.String colName)
colName
- Name of column.
java.lang.String[] getColumnNames()
int[] getColumnTypeCodes()
java.util.Enumeration getDataArrays()
double getDoubleCellValue(int rowNumber, int colNumber)
rowNumber
- Row of cell.colNumber
- Column of cell.
float getFloatCellValue(int rowNumber, int colNumber)
rowNumber
- Row of cell.colNumber
- Column of cell.
int getIntCellValue(int rowNumber, int colNumber)
rowNumber
- Row of cell.colNumber
- Column of cell.
long getLongCellValue(int rowNumber, int colNumber)
rowNumber
- Row of cell.colNumber
- Column of cell.
int getNumColumns()
int getNumRows()
java.lang.String[] getRowNames()
void insertColumnAt(java.lang.String colName, int colType, int colNumber)
colName
- Name of column.colType
- Data type of column (COL_TYPE_BOOLEAN, COL_TYPE_DATE, ...)colNumber
- Index of column.void insertRowAt(java.lang.String rowName, int rowNumber)
rowName
- Name of the row.rowNumber
- Inded of row.void removeColumnAt(int colNumber)
colNumber
- Number of column to remove.void removeRow(java.lang.String rowName)
rowName
- Name of row to remove.void removeRowAt(int rowNumber)
rowNumber
- Number of row to remove.void setCellValue(boolean value, int rowNumber, int colNumber)
value
- New value.rowNumber
- Row of cell.colNumber
- Column of cell.void setCellValue(double value, int rowNumber, int colNumber)
value
- New value.rowNumber
- Row of cell.colNumber
- Column of cell.void setCellValue(float value, int rowNumber, int colNumber)
value
- New value.rowNumber
- Row of cell.colNumber
- Column of cell.void setCellValue(int value, int rowNumber, int colNumber)
value
- New value.rowNumber
- Row of cell.colNumber
- Column of cell.void setCellValue(long value, int rowNumber, int colNumber)
value
- New value.rowNumber
- Row of cell.colNumber
- Column of cell.void setCellValue(java.lang.String value, int rowNumber, int colNumber)
value
- New value.rowNumber
- Row of cell.colNumber
- Column of cell.void setDateCellValue(java.lang.String value, int rowNumber, int colNumber)
value
- New value.rowNumber
- Row of cell.colNumber
- Column of cell.void setDateCellValue(long value, int rowNumber, int colNumber)
value
- New value.rowNumber
- Row of cell.colNumber
- Column of cell.void sortRows()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |