Package org.jfree.report.data
Class FastGlobalView
- java.lang.Object
-
- org.jfree.report.data.FastGlobalView
-
-
Constructor Summary
Constructors Constructor Description FastGlobalView()FastGlobalView(FastGlobalView parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FastGlobalViewadvance()FastGlobalViewderive()intfindColumn(java.lang.String name)java.lang.Objectget(int col)Returns the value of the expression or column in the tablemodel using the given column number as index.java.lang.Objectget(java.lang.String col)Returns the value of the function, expression or column using its specific name.intgetColumnCount()Returns the number of columns, expressions and functions and marked ReportProperties in the report.java.lang.StringgetColumnName(int col)Returns the name of the column, expression or function.DataFlagsgetFlags(int col)Queries lowlevel meta-data for the current value of the specified column.DataFlagsgetFlags(java.lang.String col)Queries lowlevel meta-data for the current value of the specified column.voidputField(java.lang.String name, java.lang.Object value, boolean update)voidremoveColumn(java.lang.String name)
-
-
-
Constructor Detail
-
FastGlobalView
public FastGlobalView(FastGlobalView parent)
-
FastGlobalView
public FastGlobalView()
-
-
Method Detail
-
get
public java.lang.Object get(int col) throws DataSourceExceptionDescription copied from interface:DataRowReturns the value of the expression or column in the tablemodel using the given column number as index. For functions and expressions, thegetValue()method is called and for columns from the tablemodel the tablemodel methodgetValueAt(row, column)gets called.- Specified by:
getin interfaceDataRow- Specified by:
getin interfaceDataSet- Parameters:
col- the item index.- Returns:
- the value.
- Throws:
DataSourceException- if an error occured.
-
get
public java.lang.Object get(java.lang.String col) throws DataSourceExceptionDescription copied from interface:DataRowReturns the value of the function, expression or column using its specific name. The given name is translated into a valid column number and the the column is queried. For functions and expressions, thegetValue()method is called and for columns from the tablemodel the tablemodel methodgetValueAt(row, column)gets called.- Specified by:
getin interfaceDataRow- Parameters:
col- the item index.- Returns:
- the value.
- Throws:
DataSourceException- if an error occured.
-
getColumnName
public java.lang.String getColumnName(int col)
Description copied from interface:DataRowReturns the name of the column, expression or function. For columns from the tablemodel, the tablemodelsgetColumnNamemethod is called. For functions, expressions and report properties the assigned name is returned.- Specified by:
getColumnNamein interfaceDataRow- Specified by:
getColumnNamein interfaceDataSet- Parameters:
col- the item index.- Returns:
- the name.
-
findColumn
public int findColumn(java.lang.String name)
-
getColumnCount
public int getColumnCount()
Description copied from interface:DataRowReturns the number of columns, expressions and functions and marked ReportProperties in the report.- Specified by:
getColumnCountin interfaceDataRow- Specified by:
getColumnCountin interfaceDataSet- Returns:
- the item count.
-
derive
public FastGlobalView derive()
-
advance
public FastGlobalView advance()
-
removeColumn
public void removeColumn(java.lang.String name)
-
putField
public void putField(java.lang.String name, java.lang.Object value, boolean update)
-
getFlags
public DataFlags getFlags(java.lang.String col) throws DataSourceException
Description copied from interface:DataRowQueries lowlevel meta-data for the current value of the specified column.- Specified by:
getFlagsin interfaceDataRow- Parameters:
col- the colum for which to query the meta-data flags- Returns:
- the dataflag collection for the value in the named column
- Throws:
DataSourceException- if an error occured.
-
getFlags
public DataFlags getFlags(int col) throws DataSourceException
Description copied from interface:DataRowQueries lowlevel meta-data for the current value of the specified column.- Specified by:
getFlagsin interfaceDataRow- Parameters:
col- the colum for which to query the meta-data flags- Returns:
- the dataflag collection for the value in the specified column
- Throws:
DataSourceException- if an error occured.
-
-