| jimm.datavision.field.Field jimm.datavision.field.SpecialField
SpecialField | public class SpecialField extends Field (Code) | | A SpecialField represents a special value such as the report name or
current page number. The value of a SpecialField is a string that
identifies which value to display.
- report.name
- report.title
- report.author
- report.description
- report.date
- report.row
- page.number
- group.count
author: Jim Menard, jimm@io.com |
Constructor Summary | |
public | SpecialField(Long id, Report report, Section section, Object value, boolean visible) Constructs a special field with the specified id in the specified report
section whose special value is value. |
SpecialField | public SpecialField(Long id, Report report, Section section, Object value, boolean visible)(Code) | | Constructs a special field with the specified id in the specified report
section whose special value 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 magic string Parameters: visible - show/hide flag |
getValue | public Object getValue()(Code) | | Returns the value of this field.
a string |
groupCount | protected static Integer groupCount(Field f)(Code) | | Returns the group count for the group in which this field resides. If we
are in the detail section, return the count of the innermost group. Else
If the group is null (for example, we are in the report
footer), returns the report.row value. If f is
null , return 0.
Parameters: f - a field the number of records in the group or the current record numberwithin the group. |
specialFieldNames | public static HashMap specialFieldNames()(Code) | | Returns an array of all of the special field names. We read the map
each time because (in theory) the language could have changed and
all the strings could be different.
an array strings containing all of the special field names |
value | public static Object value(Field f, String str, Report report)(Code) | | Returns the value associated with the given special field name string.
Parameters: str - the special field name string Parameters: report - the report that is running a string |
|
|