|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujac.util.table.BaseTable
org.ujac.util.table.ReportTable
public class ReportTable
Name: ReportTable
Description: A table implementation serving simple reports
with groups, functions, etc.
| Field Summary |
|---|
| Fields inherited from class org.ujac.util.table.BaseTable |
|---|
columnMap |
| Fields inherited from interface org.ujac.util.table.TableConstants |
|---|
DEFAULT_DATE_FORMAT, DEFAULT_DOUBLE_FORMAT, DEFAULT_INTEGER_FORMAT, DEFAULT_TIME_FORMAT, DEFAULT_TIMESTAMP_FORMAT, ROW_TYPE_FOOTER, ROW_TYPE_GROUP, ROW_TYPE_GROUP_TITLE, ROW_TYPE_HEADER, ROW_TYPE_NORMAL |
| Fields inherited from interface org.ujac.util.UjacTypes |
|---|
TYPE_BOOLEAN, TYPE_DATE, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INT, TYPE_LONG, TYPE_NAME_BOOLEAN, TYPE_NAME_DATE, TYPE_NAME_DOUBLE, TYPE_NAME_FLOAT, TYPE_NAME_INT, TYPE_NAME_LONG, TYPE_NAME_OBJECT, TYPE_NAME_SHORT, TYPE_NAME_STRING, TYPE_NAME_TABLE, TYPE_NAME_TIME, TYPE_NAME_TIMESTAMP, TYPE_OBJECT, TYPE_SHORT, TYPE_STRING, TYPE_TABLE, TYPE_TIME, TYPE_TIMESTAMP |
| Constructor Summary | |
|---|---|
ReportTable(Table dataTable)
Constructs a ReportTable instance with specific attributes. |
|
| Method Summary | |
|---|---|
Table |
addBoolean(String name,
boolean value)
Adds a column of type boolean to the table and sets its initial value at the first row. |
Column |
addColumn(String name,
int type)
Adds a column to the table |
Column |
addColumn(String name,
int type,
LayoutHints layoutHints)
Adds a column to the table |
Table |
addDate(String name,
Date value)
Adds a column of type Date to the table and sets its initial value at the first row. |
Table |
addDouble(String name,
double value)
Adds a column of type double to the table and sets its initial value at the first row. |
Table |
addFloat(String name,
float value)
Adds a column of type float to the table and sets its initial value at the first row. |
void |
addFunction(ReportFunction function)
Adds a column function to the report. |
void |
addGroup(ReportGroup group)
Adds a group to the report. |
Table |
addInt(String name,
int value)
Adds a column of type int to the table and sets its initial value at the first row. |
Table |
addLong(String name,
long value)
Adds a column of type long to the table and sets its initial value at the first row. |
Row |
addRow()
Adds a row to the table |
Row |
addRow(Row srcRow)
Adds a row to the table |
Table |
addString(String name,
String value)
Adds a column of type String to the table and sets its initial value at the first row. |
Table |
addTime(String name,
Date value)
Adds a column of type Date to the table and sets its initial value at the first row. |
Table |
addTimestamp(String name,
Date value)
Adds a column of type Date to the table and sets its initial value at the first row. |
boolean |
getBoolean(int rowIdx,
int columnIdx)
Gets the boolean value from the given row. |
boolean |
getBoolean(int rowIdx,
String columnName)
Gets the boolean value from the given row. |
Column |
getColumn(int index)
Gets the column at the given index. |
Column |
getColumn(String name)
Gets the column with the given name. |
int |
getColumnCount()
Gets the current number of columns. |
int |
getColumnIndex(String name)
Gets the index of the given column name. |
protected Table |
getDataTable()
Getter method for the the property dataTable. |
Date |
getDate(int rowIdx,
int columnIdx)
Gets the Date value from the given row. |
Date |
getDate(int rowIdx,
String columnName)
Gets the Date value from the given row. |
double |
getDouble(int rowIdx,
int columnIdx)
Gets the double value from the given row. |
double |
getDouble(int rowIdx,
String columnName)
Gets the double value from the given row. |
float |
getFloat(int rowIdx,
int columnIdx)
Gets the float value from the given row. |
float |
getFloat(int rowIdx,
String columnName)
Gets the float value from the given row. |
FormatHelper |
getFormatHelper()
Getter method for the the property formatHelper. |
ReportFunction[] |
getFunctions()
Getter method for the the property functions. |
ReportGroup[] |
getGroups()
Getter method for the the property groups. |
Row |
getHeaderRow()
Gets the header row. |
int |
getInt(int rowIdx,
int columnIdx)
Gets the integer value from the given row. |
int |
getInt(int rowIdx,
String columnName)
Gets the integer value from the given row. |
long |
getLong(int rowIdx,
int columnIdx)
Gets the long value from the given row. |
long |
getLong(int rowIdx,
String columnName)
Gets the long value from the given row. |
Object |
getObject(int rowIdx,
int columnIdx)
Gets the Object value from the given row at the given column. |
Object |
getObject(int rowIdx,
String columnName)
Gets the Object value from the given row at the given column. |
Row |
getRow(int rowIdx)
Gets a row from the table |
int |
getRowCount()
Gets the current number of rows. |
String |
getString(int rowIdx,
int columnIdx)
Gets the String value from the given row at the given column. |
String |
getString(int rowIdx,
String columnName)
Gets the String value from the given row at the given column. |
Date |
getTime(int rowIdx,
int columnIdx)
Gets the Time value from the given row. |
Date |
getTime(int rowIdx,
String columnName)
Gets the Date value from the given row. |
Date |
getTimestamp(int rowIdx,
int columnIdx)
Gets the Timestamp value from the given row. |
Date |
getTimestamp(int rowIdx,
String columnName)
Gets the Timestamp value from the given row. |
TypeConverter |
getTypeConverter()
Getter method for the the property typeConverter. |
Column[] |
getVisibleColumns()
Gets all visible columns. |
Column[] |
getVisibleColumns(int levelFilter)
Gets all visible columns. |
boolean |
isEmpty()
Checks if the table is empty. |
Iterator |
iterator()
Returns an iterator over the rows of this report in proper sequence. |
void |
orderColumns(String[] columnNames)
Sets the new order for the report columns according to the list of given column names. |
void |
removeRow(int rowIdx)
Removes a row from the table |
void |
setBoolean(int rowIdx,
int columnIdx,
boolean value)
Sets the boolean value at the given row. |
void |
setBoolean(int rowIdx,
String columnName,
boolean value)
Sets the boolean value at the given row. |
void |
setColumnType(int columnIdx,
int typeId)
Changes the type of the given column. |
void |
setColumnType(String columnName,
int typeId)
Changes the type of the given column. |
void |
setDate(int rowIdx,
int columnIdx,
Date value)
Sets the Date value at the given row. |
void |
setDate(int rowIdx,
String columnName,
Date value)
Sets the Time value at the given row. |
void |
setDouble(int rowIdx,
int columnIdx,
double value)
Sets the double value at the given row. |
void |
setDouble(int rowIdx,
String columnName,
double value)
Sets the double value at the given row. |
void |
setFloat(int rowIdx,
int columnIdx,
float value)
Sets the float value at the given row. |
void |
setFloat(int rowIdx,
String columnName,
float value)
Sets the float value at the given row. |
void |
setFormatHelper(FormatHelper formatHelper)
Setter method for the the property formatHelper. |
void |
setInt(int rowIdx,
int columnIdx,
int value)
Sets the integer value at the given row. |
void |
setInt(int rowIdx,
String columnName,
int value)
Sets the integer value at the given row. |
void |
setLong(int rowIdx,
int columnIdx,
long value)
Sets the long value at the given row. |
void |
setLong(int rowIdx,
String columnName,
long value)
Sets the integer value at the given row. |
void |
setObject(int rowIdx,
int columnIdx,
Object value)
Sets the Object value at the given row. |
void |
setObject(int rowIdx,
String columnName,
Object value)
Sets the Object value at the given row. |
void |
setString(int rowIdx,
int columnIdx,
String value)
Sets the String value at the given row. |
void |
setString(int rowIdx,
String columnName,
String value)
Sets the String value at the given row. |
void |
setTime(int rowIdx,
int columnIdx,
Date value)
Sets the Date value at the given row. |
void |
setTime(int rowIdx,
String columnName,
Date value)
Sets the Time value at the given row. |
void |
setTimestamp(int rowIdx,
int columnIdx,
Date value)
Sets the Timestamp value at the given row. |
void |
setTimestamp(int rowIdx,
String columnName,
Date value)
Sets the Timestamp value at the given row. |
void |
setTypeConverter(TypeConverter typeConverter)
Setter method for the the property typeConverter. |
void |
sort(CompareItem[] compareColumns)
Sorts the table according to the given compare item definitions. |
void |
sort(int columnIdx,
int direction)
Sorts the table according to the given column and direction. |
| Methods inherited from class org.ujac.util.table.BaseTable |
|---|
addColumn, copyTable, getDistinctValues, getDistinctValues, readData, renameColumn, writeData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.ujac.util.table.Table |
|---|
copyTable, getDistinctValues, getDistinctValues, renameColumn |
| Constructor Detail |
|---|
public ReportTable(Table dataTable)
dataTable - The data table.| Method Detail |
|---|
public FormatHelper getFormatHelper()
getFormatHelper in interface TablegetFormatHelper in class BaseTablepublic void setFormatHelper(FormatHelper formatHelper)
setFormatHelper in interface TablesetFormatHelper in class BaseTableformatHelper - The value to set for the property formatHelper.public TypeConverter getTypeConverter()
getTypeConverter in interface TablegetTypeConverter in class BaseTablepublic void setTypeConverter(TypeConverter typeConverter)
setTypeConverter in interface TablesetTypeConverter in class BaseTabletypeConverter - The value to set for the property typeConverter.
public Column getColumn(int index)
throws ColumnNotDefinedException
BaseTable
getColumn in interface TablegetColumn in class BaseTableindex - The column index.
ColumnNotDefinedException - If the column does not exist.Table.getColumn(int)
public Column getColumn(String name)
throws ColumnNotDefinedException
BaseTable
getColumn in interface TablegetColumn in class BaseTablename - The column name.
ColumnNotDefinedException - If the column does not exist.Table.getColumn(java.lang.String)
public int getColumnIndex(String name)
throws ColumnNotDefinedException
BaseTable
getColumnIndex in interface TablegetColumnIndex in class BaseTablename - The column name
ColumnNotDefinedException - If the column does not exist.Table.getColumnIndex(java.lang.String)
public void orderColumns(String[] columnNames)
throws ColumnNotDefinedException,
ColumnAlreadyDefinedException
orderColumns in interface TableorderColumns in class BaseTablecolumnNames - The list of column names after which to order the columns.
ColumnNotDefinedException - In case a column from the given order list
does not exist.
ColumnAlreadyDefinedException - In case a column was defined more than
once at the given order list.public Column[] getVisibleColumns()
getVisibleColumns in interface TablegetVisibleColumns in class BaseTablepublic Column[] getVisibleColumns(int levelFilter)
getVisibleColumns in interface TablegetVisibleColumns in class BaseTablelevelFilter - The maximum level of importance to support.
public Row getHeaderRow()
Table
getHeaderRow in interface TableTable.getHeaderRow()public Iterator iterator()
iterator in interface Table
public void addGroup(ReportGroup group)
throws ColumnNotDefinedException
group - The report group to add.
ColumnNotDefinedException - In case the data table doesn't contain a column
named like the group's column name.
public void addFunction(ReportFunction function)
throws ColumnNotDefinedException
function - The report function to add.
ColumnNotDefinedException - In case the data table doesn't contain a column
named like the function's column name.public int getColumnCount()
getColumnCount in interface TablegetColumnCount in class BaseTablepublic ReportFunction[] getFunctions()
public ReportGroup[] getGroups()
protected Table getDataTable()
public Column addColumn(String name,
int type)
throws OperationNotSupportedException
BaseTable
addColumn in interface TableaddColumn in class BaseTablename - The column name.type - The column type.
OperationNotSupportedException - In case the operation is not supported.Table.addColumn(java.lang.String, int)
public Column addColumn(String name,
int type,
LayoutHints layoutHints)
throws OperationNotSupportedException
Table
addColumn in interface Tablename - The column name.type - The column type.layoutHints - The layout hints for the column.
OperationNotSupportedException - In case the operation is not supported.Table.addColumn(java.lang.String, int, LayoutHints)
public Table addString(String name,
String value)
throws TableException
Table
addString in interface Tablename - The column name.value - The initial value at the first row.
TableException - If an error occured.Table.addString(java.lang.String, java.lang.String)
public Table addInt(String name,
int value)
throws TableException
Table
addInt in interface Tablename - The column name.value - The initial value at the first row.
TableException - If an error occured.Table.addInt(java.lang.String, int)
public Table addLong(String name,
long value)
throws TableException
Table
addLong in interface Tablename - The column name.value - The initial value at the first row.
TableException - If an error occured.Table.addLong(java.lang.String, long)
public Table addFloat(String name,
float value)
throws TableException
Table
addFloat in interface Tablename - The column name.value - The initial value at the first row.
TableException - If an error occured.Table.addFloat(java.lang.String, float)
public Table addDouble(String name,
double value)
throws TableException
Table
addDouble in interface Tablename - The column name.value - The initial value at the first row.
TableException - If an error occured.Table.addDouble(java.lang.String, double)
public Table addBoolean(String name,
boolean value)
throws TableException
Table
addBoolean in interface Tablename - The column name.value - The initial value at the first row.
TableException - If an error occured.Table.addBoolean(java.lang.String, boolean)
public Table addDate(String name,
Date value)
throws TableException
Table
addDate in interface Tablename - The column name.value - The initial value at the first row.
TableException - If an error occured.Table.addDate(java.lang.String, java.util.Date)
public Table addTime(String name,
Date value)
throws TableException
Table
addTime in interface Tablename - The column name.value - The initial value at the first row.
TableException - If an error occured.Table.addTime(java.lang.String, java.util.Date)
public Table addTimestamp(String name,
Date value)
throws TableException
Table
addTimestamp in interface Tablename - The column name.value - The initial value at the first row.
TableException - If an error occured.Table.addTimestamp(java.lang.String, java.util.Date)public boolean isEmpty()
isEmpty in interface Table
public int getRowCount()
throws OperationNotSupportedException
Table
getRowCount in interface TableOperationNotSupportedException - In case the operation is not supported.Table.getRowCount()
public Row addRow()
throws OperationNotSupportedException
Table
addRow in interface TableOperationNotSupportedException - In case the operation is not supported.Table.addRow()
public Row addRow(Row srcRow)
throws OperationNotSupportedException
Table
addRow in interface TablesrcRow - The row to copy.
OperationNotSupportedException - In case the operation is not supported.Table.addRow(org.ujac.util.table.Row)
public Row getRow(int rowIdx)
throws RowNotDefinedException,
OperationNotSupportedException
Table
getRow in interface TablerowIdx - The index of the desired row.
RowNotDefinedException - In case the requested row does not exist.
OperationNotSupportedException - In case the operation is not supported.Table.getRow(int)
public void removeRow(int rowIdx)
throws RowNotDefinedException,
OperationNotSupportedException
Table
removeRow in interface TablerowIdx - The index of the row to remove.
RowNotDefinedException - In case the requested row does not exist.
OperationNotSupportedException - In case the operation is not supported.Table.removeRow(int)
public String getString(int rowIdx,
int columnIdx)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
getString in interface TablerowIdx - The index of the desired row.columnIdx - The index of the desired column.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the String conversion failed.Table.getString(int, int)
public String getString(int rowIdx,
String columnName)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
getString in interface TablerowIdx - The index of the desired row.columnName - The name of the desired column.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the String conversion failed.Table.getString(int, java.lang.String)
public void setString(int rowIdx,
int columnIdx,
String value)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
setString in interface TablerowIdx - The index of the desired row.columnIdx - The index of the desired column.value - The new value.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the String conversion failed.Table.setString(int, int, java.lang.String)
public void setString(int rowIdx,
String columnName,
String value)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
setString in interface TablerowIdx - The index of the desired row.columnName - The name of the desired column.value - The new value.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the String conversion failed.Table.setString(int, java.lang.String, java.lang.String)
public int getInt(int rowIdx,
int columnIdx)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
getInt in interface TablerowIdx - The index of the desired row.columnIdx - The index of the desired column.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the int conversion failed.Table.getInt(int, int)
public int getInt(int rowIdx,
String columnName)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
getInt in interface TablerowIdx - The index of the desired row.columnName - The index of the desired column.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the int conversion failed.Table.getInt(int, java.lang.String)
public void setInt(int rowIdx,
int columnIdx,
int value)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
setInt in interface TablerowIdx - The index of the desired row.columnIdx - The index of the desired column.value - The new value.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the int conversion failed.Table.setInt(int, int, int)
public void setInt(int rowIdx,
String columnName,
int value)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
setInt in interface TablerowIdx - The index of the desired row.columnName - The name of the desired column.value - The new value.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the int conversion failed.Table.setInt(int, java.lang.String, int)
public long getLong(int rowIdx,
int columnIdx)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
getLong in interface TablerowIdx - The index of the desired row.columnIdx - The index of the desired column.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the long conversion failed.Table.getLong(int, int)
public long getLong(int rowIdx,
String columnName)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
getLong in interface TablerowIdx - The index of the desired row.columnName - The name of the desired column.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the long conversion failed.Table.getLong(int, java.lang.String)
public void setLong(int rowIdx,
int columnIdx,
long value)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
setLong in interface TablerowIdx - The index of the desired row.columnIdx - The index of the desired column.value - The new value.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the long conversion failed.Table.setLong(int, int, long)
public void setLong(int rowIdx,
String columnName,
long value)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
setLong in interface TablerowIdx - The index of the desired row.columnName - The name of the desired column.value - The new value.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the long conversion failed.Table.setLong(int, java.lang.String, long)
public float getFloat(int rowIdx,
int columnIdx)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
getFloat in interface TablerowIdx - The index of the desired row.columnIdx - The index of the desired column.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the float conversion failed.Table.getFloat(int, int)
public float getFloat(int rowIdx,
String columnName)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
getFloat in interface TablerowIdx - The index of the desired row.columnName - The name of the desired column.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the float conversion failed.Table.getFloat(int, java.lang.String)
public void setFloat(int rowIdx,
int columnIdx,
float value)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
setFloat in interface TablerowIdx - The index of the desired row.columnIdx - The index of the desired column.value - The new value.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the float conversion failed.Table.setFloat(int, int, float)
public void setFloat(int rowIdx,
String columnName,
float value)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
setFloat in interface TablerowIdx - The index of the desired row.columnName - The name of the desired column.value - The new value.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the float conversion failed.Table.setFloat(int, java.lang.String, float)
public double getDouble(int rowIdx,
int columnIdx)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
getDouble in interface TablerowIdx - The index of the desired row.columnIdx - The index of the desired column.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the double conversion failed.Table.getDouble(int, int)
public double getDouble(int rowIdx,
String columnName)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
getDouble in interface TablerowIdx - The index of the desired row.columnName - The name of the desired column.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the double conversion failed.Table.getDouble(int, java.lang.String)
public void setDouble(int rowIdx,
int columnIdx,
double value)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
setDouble in interface TablerowIdx - The index of the desired row.columnIdx - The index of the desired column.value - The new value.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the double conversion failed.Table.setDouble(int, int, double)
public void setDouble(int rowIdx,
String columnName,
double value)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
setDouble in interface TablerowIdx - The index of the desired row.columnName - The name of the desired column.value - The new value.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the double conversion failed.Table.setDouble(int, java.lang.String, double)
public boolean getBoolean(int rowIdx,
int columnIdx)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
getBoolean in interface TablerowIdx - The index of the desired row.columnIdx - The index of the desired column.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the boolean conversion failed.Table.getBoolean(int, int)
public boolean getBoolean(int rowIdx,
String columnName)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
getBoolean in interface TablerowIdx - The index of the desired row.columnName - The name of the desired column.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the boolean conversion failed.Table.getBoolean(int, java.lang.String)
public void setBoolean(int rowIdx,
int columnIdx,
boolean value)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
setBoolean in interface TablerowIdx - The index of the desired row.columnIdx - The index of the desired column.value - The new value.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the boolean conversion failed.Table.setBoolean(int, int, boolean)
public void setBoolean(int rowIdx,
String columnName,
boolean value)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
setBoolean in interface TablerowIdx - The index of the desired row.columnName - The name of the desired column.value - The new value.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the boolean conversion failed.Table.setBoolean(int, java.lang.String, boolean)
public Date getDate(int rowIdx,
int columnIdx)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
getDate in interface TablerowIdx - The index of the desired row.columnIdx - The index of the desired column.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the date conversion failed.Table.getDate(int, int)
public Date getDate(int rowIdx,
String columnName)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
getDate in interface TablerowIdx - The index of the desired row.columnName - The name of the desired column.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the date conversion failed.Table.getDate(int, java.lang.String)
public void setDate(int rowIdx,
int columnIdx,
Date value)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
setDate in interface TablerowIdx - The index of the desired row.columnIdx - The index of the desired column.value - The new value.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the date conversion failed.Table.setDate(int, int, java.util.Date)
public void setDate(int rowIdx,
String columnName,
Date value)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
setDate in interface TablerowIdx - The index of the desired row.columnName - The name of the desired column.value - The new value.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the date conversion failed.Table.setDate(int, java.lang.String, java.util.Date)
public Date getTime(int rowIdx,
int columnIdx)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
getTime in interface TablerowIdx - The index of the desired row.columnIdx - The index of the desired column.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the date conversion failed.Table.getTime(int, int)
public Date getTime(int rowIdx,
String columnName)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
getTime in interface TablerowIdx - The index of the desired row.columnName - The name of the desired column.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the time conversion failed.Table.getTime(int, java.lang.String)
public void setTime(int rowIdx,
int columnIdx,
Date value)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
setTime in interface TablerowIdx - The index of the desired row.columnIdx - The index of the desired column.value - The new value.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the time conversion failed.Table.setTime(int, int, java.util.Date)
public void setTime(int rowIdx,
String columnName,
Date value)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
setTime in interface TablerowIdx - The index of the desired row.columnName - The name of the desired column.value - The new value.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the time conversion failed.Table.setTime(int, java.lang.String, java.util.Date)
public Date getTimestamp(int rowIdx,
int columnIdx)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
getTimestamp in interface TablerowIdx - The index of the desired row.columnIdx - The index of the desired column.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the timestamp conversion failed.Table.getTimestamp(int, int)
public Date getTimestamp(int rowIdx,
String columnName)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
getTimestamp in interface TablerowIdx - The index of the desired row.columnName - The name of the desired column.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the timestamp conversion failed.Table.getTimestamp(int, java.lang.String)
public void setTimestamp(int rowIdx,
int columnIdx,
Date value)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
setTimestamp in interface TablerowIdx - The index of the desired row.columnIdx - The index of the desired column.value - The new value.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the timestamp conversion failed.Table.setTimestamp(int, int, java.util.Date)
public void setTimestamp(int rowIdx,
String columnName,
Date value)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
setTimestamp in interface TablerowIdx - The index of the desired row.columnName - The name of the desired column.value - The new value.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the timestamp conversion failed.Table.setTimestamp(int, java.lang.String, java.util.Date)
public Object getObject(int rowIdx,
int columnIdx)
throws RowNotDefinedException,
ColumnNotDefinedException
Table
getObject in interface TablerowIdx - The index of the desired row.columnIdx - The index of the desired column.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.Table.getObject(int, int)
public Object getObject(int rowIdx,
String columnName)
throws RowNotDefinedException,
ColumnNotDefinedException
Table
getObject in interface TablerowIdx - The index of the desired row.columnName - The index of the desired column.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.Table.getObject(int, java.lang.String)
public void setObject(int rowIdx,
int columnIdx,
Object value)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
setObject in interface TablerowIdx - The index of the desired row.columnIdx - The index of the desired column.value - The new value.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the object conversion failed.Table.setObject(int, int, java.lang.Object)
public void setObject(int rowIdx,
String columnName,
Object value)
throws RowNotDefinedException,
ColumnNotDefinedException,
TypeMismatchException
Table
setObject in interface TablerowIdx - The index of the desired row.columnName - The name of the desired column.value - The new value.
RowNotDefinedException - In case the requested row does not exist.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the object conversion failed.Table.setObject(int, java.lang.String, java.lang.Object)
public void sort(CompareItem[] compareColumns)
throws OperationNotSupportedException
Table
sort in interface TablecompareColumns - The column definition for the sort process.
OperationNotSupportedException - In case the operation is not supported.Table.sort(org.ujac.util.table.CompareItem[])
public void sort(int columnIdx,
int direction)
throws OperationNotSupportedException
Table
sort in interface TablecolumnIdx - The column to sort by.direction - The sort directon.
OperationNotSupportedException - In case the operation is not supported.Table.sort(int, int)
public void setColumnType(int columnIdx,
int typeId)
throws ColumnNotDefinedException,
TypeConverterException
setColumnType in interface TablecolumnIdx - The index of the column which has been changed.typeId - The new column type ID.
ColumnNotDefinedException - In case the desired column does not exist.
TypeConverterException - In case the object conversion failed.
public void setColumnType(String columnName,
int typeId)
throws ColumnNotDefinedException,
TypeConverterException
setColumnType in interface TablecolumnName - The name of the column which has been changed.typeId - The new column type ID.
ColumnNotDefinedException - In case the desired column does not exist.
TypeConverterException - In case the object conversion failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||