HMS
Class Report

java.lang.Object
  |
  +--HMS.Report
All Implemented Interfaces:
java.awt.print.Printable

public class Report
extends java.lang.Object
implements java.awt.print.Printable

This class is a frame that represents the entity class Report. It provides the methods for generating and printing the following system reports, which are listed below with the required fields needed to generate them, shown as sub-bullets:


Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
Report(java.lang.String rType, java.lang.String bDate, java.lang.String eDate)
          This is the constructor for the Report class that instantiates the selected report.
 
Method Summary
 int print(java.awt.Graphics g, java.awt.print.PageFormat pageFormat, int pageIndex)
          This function prints the entire scrollable JTable containing the report.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Report

public Report(java.lang.String rType,
              java.lang.String bDate,
              java.lang.String eDate)
This is the constructor for the Report class that instantiates the selected report.
Parameters:
rType - The report type (revenue, occupancy, checkout, exceptions)
bDate - The begin date of the report.
eDate - The end date of the report.
Method Detail

print

public int print(java.awt.Graphics g,
                 java.awt.print.PageFormat pageFormat,
                 int pageIndex)
          throws java.awt.print.PrinterException
This function prints the entire scrollable JTable containing the report. Many thanks to JDC member Isaac Elias for developing the initial version of this function.
Specified by:
print in interface java.awt.print.Printable
Parameters:
g - Graphics
pageFormat - PageFormat
pageIndex -  
Returns:
int PrintablePage.PAGE_EXISTS