The AbstractReportDefinition serves as base-implementation for both the SubReport and the global JFreeReport
instance. There's no point to subclass this class any further.
ReportDefinitions define the query string to "default" by default, change this to reflect the accepted queries
in your data-source.
author: Thomas Morgner
setProperty(String key, Object value) Adds a property to the report.
If a property with the given name already exists, the property will be updated with the new value.
public void
setQuery(String query) Defines a new query or query-name that is used when retrieving the data from the data-factory.
Creates a new instance. This initializes all properties to their defaults - especially for subreports you have to
set sensible values before you can use them later.
Returns the current datarow assigned to this report definition. JFreeReport objects do not hold a working DataRow,
as the final contents of the data cannot be known, until the reporting has started.
the default implementation for non-processed reports.
Returns the group at the specified index or null, if there is no such group.
Parameters: count - the group index. the requested group. throws: IllegalArgumentException - if the count is negative. throws: IndexOutOfBoundsException - if the count is greater than the number of defined groups.
Searches a group by its defined name. This method returns null, if the group was not found.
Parameters: name - the name of the group. the group or null if not found. See Also:org.jfree.report.GroupList.getGroupByName
Returns the report properties collection for this report.
These properties are inherited to all ReportStates generated for this report.
the report properties.
Returns the stylesheet collection of this report. The stylesheet collection is fixed for the report and all
elements of the report. When a band or group is added to the report it will get registered with this stylesheet
collection and cannot be used in an different report.
the stylesheet collection of the report, never null.
Sets the groups for this report. If no list (null) or an empty list is given, an default group is created. This
default group contains no elements and starts at the first record of the data and ends on the last record.
Parameters: groupList - the list of groups.
Adds a property to the report.
If a property with the given name already exists, the property will be updated with the new value. If the supplied
value is null, the property will be removed.
Developers are free to add any properties they want to a report, and then display those properties in the report.
For example, you might add a 'user.name' property, so that you can display the username in the header of a report.
Parameters: key - the key. Parameters: value - the value.
Defines a new query or query-name that is used when retrieving the data from the data-factory.
Parameters: query - the query-string. See Also:DataFactory.queryData(StringDataRow)