|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.report.states.DataRowBackend
The DataRow-Backend maintains the state of a datarow. Whenever the report state changes the backend of the datarow is updated and then reconnected with the DataRowConnector.
DataRowConnector
Constructor Summary | |
|
DataRowBackend()
Creates a new DataRowBackend. |
protected |
DataRowBackend(DataRowBackend db)
Creates a new DataRowBackend based on the given datarow backend. |
Method Summary | |
java.lang.Object |
clone()
Clones this DataRowBackend. |
int |
findColumn(java.lang.String name)
Looks up the position of the column with the name name . |
java.lang.Object |
get(int column)
Returns the value of the function, expression or column in the tablemodel using the column number. |
java.lang.Object |
get(java.lang.String name)
Returns the value of the function, expression or column using its specific name. |
int |
getColumnCount()
Returns the count of columns in this datarow. |
java.lang.String |
getColumnName(int col)
Returns the name of the column, expression or function. |
int |
getCurrentRow()
Returns the current row in the tablemodel. |
DataRow |
getDataRow()
Returns the public datarow instance used to query this datarow.. |
protected DataRowConnector |
getDataRowConnector()
Returns the datarow connector used to connect the functions and element with this datarow. |
LevelledExpressionList |
getFunctions()
Returns the function collection used in this DataRowBackend. |
ReportPropertiesList |
getReportProperties()
Returns the report properties. |
javax.swing.table.TableModel |
getTablemodel()
Returns the tablemodel used in this DataRowBackend. |
boolean |
isBeforeFirstRow()
Tests whether the current row is set before the first row in the tablemodel. |
boolean |
isLastRow()
Tests whether the current row in the tablemodel is the last row in the tablemodel. |
void |
setCurrentRow(int currentRow)
Sets the current row of the tablemodel. |
void |
setFunctions(LevelledExpressionList functions)
Sets the function collection used in this DataRow. |
void |
setReportProperties(ReportPropertiesList properties)
Sets the report properties. |
void |
setTablemodel(javax.swing.table.TableModel tablemodel)
sets the tablemodel used in this DataRow. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataRowBackend()
protected DataRowBackend(DataRowBackend db)
db
- the data row backend.Method Detail |
protected DataRowConnector getDataRowConnector()
public DataRow getDataRow()
public LevelledExpressionList getFunctions()
public javax.swing.table.TableModel getTablemodel()
public int getCurrentRow()
isBeforeFirstRow
.
public void setCurrentRow(int currentRow)
currentRow
- the current rowpublic void setFunctions(LevelledExpressionList functions)
functions
- the current function collectionpublic void setTablemodel(javax.swing.table.TableModel tablemodel)
tablemodel
- the tablemodel used as base for the reportingpublic java.lang.Object get(int column)
column
- the item index.
java.lang.IndexOutOfBoundsException
- if the index is negative or greater than the number of
columns in this row.
java.lang.IllegalStateException
- if a deadlock is detected.public java.lang.Object get(java.lang.String name)
name
- the item name.
java.lang.IndexOutOfBoundsException
- if the index is negative or greater than the number of
columns in this row.
java.lang.IllegalStateException
- if a deadlock is detected.public int getColumnCount()
public int findColumn(java.lang.String name)
name
.
returns the position of the column or -1 if no columns could be retrieved.
name
- the item name.
public java.lang.String getColumnName(int col)
col
- the column, expression or function index.
public boolean isBeforeFirstRow()
public boolean isLastRow()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
- should never happen.public ReportPropertiesList getReportProperties()
public void setReportProperties(ReportPropertiesList properties)
properties
- the report properties.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |