Class ReportPageStatus
java.lang.Object
net.sf.jasperreports.web.servlets.ReportPageStatus
Status of a page in a generated report.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReportPageStatusStatus that indicates that the requested page does not exist.static final ReportPageStatusStatus to indicate that a page in its final form has been generated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the timestamp of the last modification on the page.booleanDetermines whether the page has been modified since the last request.booleanDetermines whether the page is final.static ReportPageStatusnonFinal(long timestamp, boolean modified) Creates a status for a non-final generated page.booleanDetermines whether the page exists in the generated report.
-
Field Details
-
NO_SUCH_PAGE
Status that indicates that the requested page does not exist. -
PAGE_FINAL
Status to indicate that a page in its final form has been generated.
-
-
Constructor Details
-
ReportPageStatus
protected ReportPageStatus(long status)
-
-
Method Details
-
nonFinal
Creates a status for a non-final generated page.- Parameters:
timestamp- the timestamp of the last modification of the pagemodified- whether the page was modified since the last request
-
pageExists
public boolean pageExists()Determines whether the page exists in the generated report.- Returns:
- whether the page exists in the generated report
-
isPageFinal
public boolean isPageFinal()Determines whether the page is final.- Returns:
- whether the page is final
- See Also:
-
hasModified
public boolean hasModified()Determines whether the page has been modified since the last request.- Returns:
- whether the page has been modified since the last request
-
getTimestamp
public long getTimestamp()Returns the timestamp of the last modification on the page.- Returns:
- the timestamp of the last modification on the page
-