Common interface for an algorithm to calculate the value of a
org.apache.cocoon.forms.formmodel.CalculatedField .
version: $Id: CalculatedFieldAlgorithm.java 449149 2006-09-23 03:58:05Z crossley $
calculate(Form form, Widget parent, Datatype datatype) Performs the actual calculation.
Parameters: form - The form. Parameters: parent - The parent widget of the CalculatedField widget (may be the same as form) Parameters: datatype - The target datatype.
Performs the actual calculation.
Parameters: form - The form. Parameters: parent - The parent widget of the CalculatedField widget (may be the same as form) Parameters: datatype - The target datatype. the calculated value for the CalculatedField.
Returns an iterator on trigger widget paths. When the value of a trigger widget changes,
then the
CalculatedField value must be recalculated.
An iterator of Strings representing widget paths as interpreted by org.apache.cocoon.forms.util.WidgetFinder.
Checks wether this algorithm is able to return the given datatype. For example,
an arithmetic algorithm like sum should check that the given datatype is a number.
Parameters: dataType - The target datatype. true if this algorithm can return a compatible value, false otherwise.