VKRep
Class TVKRptContainerCrossTab

java.lang.Object
  |
  +--VKRep.TVKRptContainerAbstract
        |
        +--VKRep.TVKRptContainerCrossTab
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable

public class TVKRptContainerCrossTab
extends TVKRptContainerAbstract

Title:

Description: This container combine horizontal and vertical report processing in one process. In a result is cross-tab report generator.

The output stream from horizontal report use as blank for vertical report. This is the main idea.

For XLS4 cross-tab report you should make one blank in XLS4 format with horizontal and virtical sections definition within.

Then make to objects TXLS4ReportHorizontal and TXLS4ReportVertical.

For TXLS4ReportHorizontal object set as input blank your design blank. For TXLS4ReportVertical object set as output report desired file. Set RptObjH and RptObjV property of TVKRptContainerCrossTab object, indicate horisontal and vertical listeners and call execute method.

Copyright: Copyright (c) 2003

Company:

Version:
1.0
Author:
Vlad Karpov
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class VKRep.TVKRptContainerAbstract
TVKRptContainerAbstract.BOutStream
 
Field Summary
protected  TVKRptContainerAbstract.BOutStream bOutStream
          Intermediate stream for hold stream from horizontal process to vertical process.
protected  VKRepListener listenerH
          The horizontal Listener object.
protected  VKRepListener listenerV
          The vertical Listener object.
protected  TReportHorizontal rptObjH
          The object of main horizontal report generator.
protected  TReportVertical rptObjV
          The object of main vertical report generator.
 
Constructor Summary
TVKRptContainerCrossTab()
          Only constructor.
 
Method Summary
 void execute()
          This method is start cross-tab generate report.
 VKRepListener getListenerH()
          The read property method of horizontal listener variable.
 VKRepListener getListenerV()
          The read property method of vertical listener variable.
 TReportHorizontal getRptObjH()
          The read property method of rptObj variable.
 TReportVertical getRptObjV()
          The read property method of rptObjV variable.
 void setListenerH(VKRepListener value)
          The write property method of horizontal listener variable.
 void setListenerV(VKRepListener value)
          The write property method of vertical listener variable.
 void setRptObjH(TReportHorizontal value)
          The write property method of rptObj variable.
 void setRptObjV(TReportVertical value)
          The write property method of rptObj variable.
 
Methods inherited from class VKRep.TVKRptContainerAbstract
run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rptObjH

protected TReportHorizontal rptObjH
The object of main horizontal report generator. It may be any TReportHorizontal descendant class object (TXLS4ReportHorizontal ( :-) it only one horizontal class now ), ....)


rptObjV

protected TReportVertical rptObjV
The object of main vertical report generator. It may be TReportVertical descendant class object (TXLS4ReportVertical, ....). You use only compatibility by format objects. It meens that you not use TXLS4ReportHorizontal as horizontal report and TWordReport as a vertical report. Now there is only one TReportHorizontal class - TXLS4ReportHorizontal, so you can do only XLS4 cross-tab report. Use for this TXLS4ReportHorizontal and TXLS4ReportVertical objects.


listenerH

protected VKRepListener listenerH
The horizontal Listener object. That is exactly "only one" code to fill data of rptObj "input blank".


listenerV

protected VKRepListener listenerV
The vertical Listener object. That is exactly "only one" code to fill data of rptObj "input blank".


bOutStream

protected TVKRptContainerAbstract.BOutStream bOutStream
Intermediate stream for hold stream from horizontal process to vertical process.

Constructor Detail

TVKRptContainerCrossTab

public TVKRptContainerCrossTab()
Only constructor.

Method Detail

getRptObjV

public TReportVertical getRptObjV()
The read property method of rptObjV variable.

Returns:
TReportVertical object is setting now.

setRptObjV

public void setRptObjV(TReportVertical value)
The write property method of rptObj variable.

Parameters:
value - TReportVertical object to setting now.

getRptObjH

public TReportHorizontal getRptObjH()
The read property method of rptObj variable.

Returns:
TReportHorizontal object is setting now.

setRptObjH

public void setRptObjH(TReportHorizontal value)
The write property method of rptObj variable.

Parameters:
value - TReportHorizontal object to setting now.

getListenerV

public VKRepListener getListenerV()
The read property method of vertical listener variable.

Returns:
VKRepListener object is setting now.

setListenerV

public void setListenerV(VKRepListener value)
The write property method of vertical listener variable.

Parameters:
value - VKRepListener object to setting now.

getListenerH

public VKRepListener getListenerH()
The read property method of horizontal listener variable.

Returns:
VKRepListener object is setting now.

setListenerH

public void setListenerH(VKRepListener value)
The write property method of horizontal listener variable.

Parameters:
value - VKRepListener object to setting now.

execute

public void execute()
This method is start cross-tab generate report.

Specified by:
execute in class TVKRptContainerAbstract