net.ponec.jworksheet.report
Class ReportTab

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

public class ReportTab
extends SuperReport

Day Report with a task resolution.


Field Summary
protected  UjoComparator comparator
           
protected  java.util.List<GroupSet> data
          Table of results
protected  WorkDay lastWorkDay
          Last WorkDay.
protected  ReportA report
          Last report
 
Fields inherited from class net.ponec.jworksheet.report.SuperReport
applContext, dateFrom, dateTo, reportTitle, workDayCount
 
Constructor Summary
ReportTab()
           
 
Method Summary
 void calculate(WorkDay workDay, Event event)
          Calculate required times.
protected  UjoComparator createUjoComparator()
          Create Comparator
 java.util.List<YearMonthDay> getDays()
           
 java.util.List<TaskGroup> getProjects()
          Get NoPrivate projects
 void init(ApplContext applContext, YearMonthDay dateFrom, YearMonthDay dateTo, java.lang.String reportTitle)
          General initialization, calculate all report.
 java.lang.String print()
          Print the result in HTML report.
 java.lang.String printBody()
           
 
Methods inherited from class net.ponec.jworksheet.report.SuperReport
escape, formatTime, formatTimeZero, getApplContext, getReport, getText, getWorkDayCount, init, isDayOff, printFilter, printTableBeg, printTableEnd
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

protected java.util.List<GroupSet> data
Table of results


lastWorkDay

protected WorkDay lastWorkDay
Last WorkDay.


comparator

protected UjoComparator comparator

report

protected ReportA report
Last report

Constructor Detail

ReportTab

public ReportTab()
Method Detail

init

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

Specified by:
init in interface Calculator
Overrides:
init in class SuperReport

calculate

public void calculate(WorkDay workDay,
                      Event event)
Description copied from interface: Calculator
Calculate required times.


createUjoComparator

protected UjoComparator createUjoComparator()
Create Comparator


print

public java.lang.String print()
                       throws java.io.IOException
Description copied from interface: Calculator
Print the result in HTML report.

Throws:
java.io.IOException

printBody

public java.lang.String printBody()
                           throws java.io.IOException
Throws:
java.io.IOException

getDays

public java.util.List<YearMonthDay> getDays()

getProjects

public java.util.List<TaskGroup> getProjects()
Get NoPrivate projects



Copyright © 2007-2009 PPonec