com.jrefinery.report.function
Class ItemColumnQuotientFunction

java.lang.Object
  |
  +--com.jrefinery.report.function.AbstractExpression
        |
        +--com.jrefinery.report.function.ItemColumnQuotientExpression
              |
              +--com.jrefinery.report.function.ItemColumnQuotientFunction
All Implemented Interfaces:
java.lang.Cloneable, java.util.EventListener, Expression, Function, ReportListener, java.io.Serializable

Deprecated. use ItemColumnQuotientExpression instead

public class ItemColumnQuotientFunction
extends ItemColumnQuotientExpression
implements java.io.Serializable, Function

A report function that calculates the quotient of two fields (columns) from the current row.

This function expects its input values to be either java.lang.Number instances or Strings that can be parsed to java.lang.Number instances using a java.text.DecimalFormat.

The function undestands two parameters. The dividend parameter is required and denotes the name of an ItemBand-field which is used as dividend. The divisor parameter is required and denotes the name of an ItemBand-field which is uses as divisor.

Author:
Heiko Evermann
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jrefinery.report.function.ItemColumnQuotientExpression
DIVIDEND_PROPERTY, DIVISOR_PROPERTY
 
Fields inherited from interface com.jrefinery.report.function.Expression
AUTOACTIVATE_PROPERTY
 
Constructor Summary
ItemColumnQuotientFunction()
          Deprecated. Default Constructor.
 
Method Summary
 void groupFinished(ReportEvent event)
          Deprecated. Receives notification that a group is finished.
 void groupStarted(ReportEvent event)
          Deprecated. Receives notification that a new group has started.
 void itemsAdvanced(ReportEvent event)
          Deprecated. Receives notification that a new row has been read.
 void itemsFinished(ReportEvent event)
          Deprecated. Receives notification that a group of item bands has been completed.
 void itemsStarted(ReportEvent event)
          Deprecated. Receives notification that a group of item bands is about to be processed.
 void pageFinished(ReportEvent event)
          Deprecated. Receives notification that a page is completed.
 void pageStarted(ReportEvent event)
          Deprecated. Receives notification that a new page is being started.
 void reportDone(ReportEvent event)
          Deprecated. Receives notification that report generation has completed, the report footer was printed, no more output is done.
 void reportFinished(ReportEvent event)
          Deprecated. Receives notification that report generation has finished (the last record is read and all groups are closed).
 void reportInitialized(ReportEvent event)
          Deprecated. Receives notification that report generation initializes the current run.
 void reportStarted(ReportEvent event)
          Deprecated. Receives notification that report generation has started.
 
Methods inherited from class com.jrefinery.report.function.ItemColumnQuotientExpression
clone, getDividend, getDivisor, getInstance, getValue, initialize, setDividend, setDivisor
 
Methods inherited from class com.jrefinery.report.function.AbstractExpression
getDataRow, getDependencyLevel, getName, getProperties, getProperty, getProperty, isActive, setDataRow, setDependencyLevel, setName, setProperties, setProperty
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jrefinery.report.function.Function
clone
 
Methods inherited from interface com.jrefinery.report.function.Expression
getDataRow, getDependencyLevel, getInstance, getName, getProperties, getValue, initialize, isActive, setDataRow, setDependencyLevel, setName, setProperties
 

Constructor Detail

ItemColumnQuotientFunction

public ItemColumnQuotientFunction()
Deprecated. 
Default Constructor.

Method Detail

reportInitialized

public void reportInitialized(ReportEvent event)
Deprecated. 
Receives notification that report generation initializes the current run.

The event carries a ReportState.Started state. Use this to initialize the report.

Specified by:
reportInitialized in interface ReportListener
Parameters:
event - The event.

reportStarted

public void reportStarted(ReportEvent event)
Deprecated. 
Receives notification that report generation has started.

The event carries a ReportState.Started state. Use this to prepare the report header.

Specified by:
reportStarted in interface ReportListener
Parameters:
event - The event.

reportFinished

public void reportFinished(ReportEvent event)
Deprecated. 
Receives notification that report generation has finished (the last record is read and all groups are closed).

Specified by:
reportFinished in interface ReportListener
Parameters:
event - The event.

reportDone

public void reportDone(ReportEvent event)
Deprecated. 
Receives notification that report generation has completed, the report footer was printed, no more output is done. This is a helper event to shut down the output service.

Specified by:
reportDone in interface ReportListener
Parameters:
event - The event.

pageStarted

public void pageStarted(ReportEvent event)
Deprecated. 
Receives notification that a new page is being started.

Specified by:
pageStarted in interface ReportListener
Parameters:
event - The event.

pageFinished

public void pageFinished(ReportEvent event)
Deprecated. 
Receives notification that a page is completed.

Specified by:
pageFinished in interface ReportListener
Parameters:
event - The event.

groupStarted

public void groupStarted(ReportEvent event)
Deprecated. 
Receives notification that a new group has started.

The group can be determined by the report state's getCurrentGroup() function.

Specified by:
groupStarted in interface ReportListener
Parameters:
event - The event.

groupFinished

public void groupFinished(ReportEvent event)
Deprecated. 
Receives notification that a group is finished.

The group can be determined by the report state's getCurrentGroup() function.

Specified by:
groupFinished in interface ReportListener
Parameters:
event - The event.

itemsStarted

public void itemsStarted(ReportEvent event)
Deprecated. 
Receives notification that a group of item bands is about to be processed.

The next events will be itemsAdvanced events until the itemsFinished event is raised.

Specified by:
itemsStarted in interface ReportListener
Parameters:
event - The event.

itemsFinished

public void itemsFinished(ReportEvent event)
Deprecated. 
Receives notification that a group of item bands has been completed.

The itemBand is finished, the report starts to close open groups.

Specified by:
itemsFinished in interface ReportListener
Parameters:
event - The event.

itemsAdvanced

public void itemsAdvanced(ReportEvent event)
Deprecated. 
Receives notification that a new row has been read.

This event is raised before an ItemBand is printed.

Specified by:
itemsAdvanced in interface ReportListener
Parameters:
event - The event.