| java.lang.Object java.util.Observable jimm.datavision.Element jimm.datavision.field.Field jimm.datavision.field.FormulaField
FormulaField | public class FormulaField extends Field implements Observer(Code) | | A formula field represents a formula calculated on-the-fly. The value of a
formula field holds a
Formula object. (In the XML, the formula
field's value is the id of the formula.)
author: Jim Menard, jimm@io.com |
Constructor Summary | |
public | FormulaField(Long id, Report report, Section section, Object value, boolean visible) Constructs a formula field with the specified id in the specified report
section whose
Formula 's id is value. |
FormulaField | public FormulaField(Long id, Report report, Section section, Object value, boolean visible)(Code) | | Constructs a formula field with the specified id in the specified report
section whose
Formula 's id is value.
Parameters: id - the new field's id Parameters: report - the report containing this element Parameters: section - the report section in which the field resides Parameters: value - the id of a formula Parameters: visible - show/hide flag |
canBeAggregated | public boolean canBeAggregated()(Code) | | This override returns true if this formula is in a detail
section. We don't really know that this formula returns a number, so
we'll err on the side of allowing aggregation.
true if this field can be aggregated |
dragString | public String dragString()(Code) | | Not really used; we drag formulas, not formula fields.
|
getFormula | public Formula getFormula()(Code) | | Returns the formula.
the formula |
getValue | public Object getValue()(Code) | | Returns the value of this field. For formula fields, this is the
value generated by evaluating the
Formula .
the result of evaluating the formula |
setFormula | public void setFormula(Formula newFormula)(Code) | | Sets the formula.
Parameters: newFormula - the new formula |
|
|