net.ponec.jworksheet.report
Class SuperReport

Package class diagram package SuperReport
java.lang.Object
  extended by net.ponec.jworksheet.report.SuperReport
All Implemented Interfaces:
Calculator
Direct Known Subclasses:
ReportA, ReportAttendance, ReportC, ReportTab

public abstract class SuperReport
extends java.lang.Object
implements Calculator

Standard report


Field Summary
protected  ApplContext applContext
          An application context
protected  YearMonthDay dateFrom
           
protected  YearMonthDay dateTo
           
protected  java.lang.String reportTitle
           
protected  int workDayCount
          Work Day Count
 
Constructor Summary
SuperReport()
           
 
Method Summary
protected  java.lang.String escape(java.lang.Object aText)
          Escape a text parameter
protected  java.lang.String formatTime(int minutes)
          Format the time in minutes.
protected  java.lang.String formatTimeZero(int minutes)
          Format the time in minutes.
 ApplContext getApplContext()
          An application context
 java.lang.String getReport(java.lang.String body, java.lang.String title)
          Create HTML report
protected  java.lang.String getText(java.lang.CharSequence key)
          Translate key pro UjoProperty
 int getWorkDayCount()
          Get work day count.
protected  void init()
          An initialization code, overwrite it by a child.
 void init(ApplContext applContext, YearMonthDay dateFrom, YearMonthDay dateTo, java.lang.String reportTitle)
          General initialization, calculate all report.
protected  boolean isDayOff(YearMonthDay aDay)
          Is the day a DayOff?
 void printFilter(java.lang.StringBuilder sb)
          Create HTML report
protected  void printTableBeg(java.lang.StringBuilder sb)
           
protected  void printTableEnd(java.lang.StringBuilder sb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.ponec.jworksheet.core.Calculator
calculate, print
 

Field Detail

applContext

protected ApplContext applContext
An application context


dateFrom

protected YearMonthDay dateFrom

dateTo

protected YearMonthDay dateTo

reportTitle

protected java.lang.String reportTitle

workDayCount

protected int workDayCount
Work Day Count

Constructor Detail

SuperReport

public SuperReport()
Method Detail

getText

protected java.lang.String getText(java.lang.CharSequence key)
Translate key pro UjoProperty


init

public void init(ApplContext applContext,
                 YearMonthDay dateFrom,
                 YearMonthDay dateTo,
                 java.lang.String reportTitle)
General initialization, calculate all report. Call "init()" method on the start. For each Event call "calculate()" method.

Specified by:
init in interface Calculator

init

protected void init()
An initialization code, overwrite it by a child.


getApplContext

public ApplContext getApplContext()
An application context

Specified by:
getApplContext in interface Calculator

getWorkDayCount

public int getWorkDayCount()
Get work day count.


escape

protected java.lang.String escape(java.lang.Object aText)
Escape a text parameter


printFilter

public void printFilter(java.lang.StringBuilder sb)
Create HTML report


getReport

public java.lang.String getReport(java.lang.String body,
                                  java.lang.String title)
Create HTML report


printTableBeg

protected void printTableBeg(java.lang.StringBuilder sb)
                      throws java.io.IOException
Throws:
java.io.IOException

printTableEnd

protected void printTableEnd(java.lang.StringBuilder sb)
                      throws java.io.IOException
Throws:
java.io.IOException

formatTime

protected java.lang.String formatTime(int minutes)
Format the time in minutes.


formatTimeZero

protected java.lang.String formatTimeZero(int minutes)
Format the time in minutes.


isDayOff

protected boolean isDayOff(YearMonthDay aDay)
Is the day a DayOff?



Copyright © 2007-2009 PPonec