borland Packages  Class Hierarchy  jbcl.dataset Package  Index 

CalcFieldsListener interface

java.util.EventListener
   +----borland.jbcl.dataset.CalcFieldsListener

About the CalcFieldsListener interface

Methods  

This class is used for notification that a row that contains a calculated column has been added to a DataSet, or that a row that contains a calculated column in a DataSet has been modified. When the notification is received, the listener can initiate a recalculation of that row. This listener has to be added manually using the calcFields event in the Inspector when any column in the data set is marked with a calcType of calcType.aggregate.

This class differs from the CalcAggFieldsListener in that this class is used to do calculations on rows. The CalcAggFieldsListener class is used for calculations on aggregates.


CalcFieldsListener methods

Methods defined in this interface


CalcFieldsListener methods

calcFields(borland.jbcl.dataset.ReadRow, borland.jbcl.dataset.DataRow, boolean)

  public void calcFields(borland.jbcl.dataset.ReadRow changedRow, borland.jbcl.dataset.DataRow calcRow, boolean isPosted)
Called whenever a field value is modified or added in the listener's data set. The isPosted parameter indicates that the row is being posted. You may not want to recalculate fields on rows that are not yet posted.

Parameters:

changedRow
The current values in the row, including the field that was just added or modified.
calcRow
The values to be left in the row when calcFields returns. Typically, the code in calcFields only modifies values in the calculated columns of calcRow.
isPosted
Indicates whether or not the row is being posted.