|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.report.states.DataRowBackend
org.jfree.report.states.DataRowPreview
A 'preview' data row backend. Shows how the next row would look like if there were no events thrown. This class is used to calculate the differences between two states. As function columns as ReportEventListeners are dependent on an valid state, these columns cannot be queried using this class. A query on such an column will throw an InvalidStateException.
Constructor Summary | |
DataRowPreview(DataRowBackend db)
Constructs a new DataRowPreview using the given DataRowBackend as base. |
Method Summary | |
DataRowBackend |
previewNextRow()
Create a preview backend. |
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. |
void |
update(DataRowBackend db)
Updates this instance to be a preview of the given backend. |
Methods inherited from class org.jfree.report.states.DataRowBackend |
clone, findColumn, get, get, getColumnCount, getColumnName, getCurrentRow, getDataRow, getDataRowConnector, getFunctions, getReportProperties, getTablemodel, isBeforeFirstRow, isLastRow |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataRowPreview(DataRowBackend db)
db
- the base.Method Detail |
public void update(DataRowBackend db)
db
- the row.public final void setCurrentRow(int currentRow)
setCurrentRow
in class DataRowBackend
currentRow
- the current row
java.lang.IllegalStateException
- as this is a readonly implementationpublic final void setFunctions(LevelledExpressionList functions)
setFunctions
in class DataRowBackend
functions
- the current function collection
java.lang.IllegalStateException
- as this is a readonly implementationpublic final void setTablemodel(javax.swing.table.TableModel tablemodel)
setTablemodel
in class DataRowBackend
tablemodel
- the tablemodel used as base for the reporting.
java.lang.IllegalStateException
- as this is a readonly implementationpublic final void setReportProperties(ReportPropertiesList properties)
setReportProperties
in class DataRowBackend
properties
- the report properties.public final DataRowBackend previewNextRow()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |