Save This Page
Home » pentaho-reporting-engine-classic-0.8.10 » org » jfree » report » [javadoc | source]
org.jfree.report
abstract public class: AbstractReportDefinition [javadoc | source]
java.lang.Object
   org.jfree.report.Element
      org.jfree.report.Section
         org.jfree.report.AbstractReportDefinition

All Implemented Interfaces:
    ReportDefinition, ReportElement, DataTarget

Direct Known Subclasses:
    JFreeReport, SubReport

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.

Fields inherited from org.jfree.report.Element:
ANONYMOUS_ELEMENT_PREFIX
Constructor:
 protected AbstractReportDefinition() 
Method from org.jfree.report.AbstractReportDefinition Summary:
addExpression,   addGroup,   clone,   getContentBase,   getDataRow,   getDefinitionSource,   getDetailsFooter,   getDetailsHeader,   getDocumentMetaData,   getElement,   getElementCount,   getExpressions,   getGroup,   getGroupByName,   getGroupCount,   getItemBand,   getNoDataBand,   getPageFooter,   getPageHeader,   getPreProcessor,   getProperties,   getProperty,   getQuery,   getQueryLimit,   getQueryTimeout,   getReportDefinition,   getReportFooter,   getReportHeader,   getRootGroup,   getStyleSheetCollection,   getWatermark,   removeElement,   removeGroup,   setContentBase,   setDefinitionSource,   setDetailsFooter,   setDetailsHeader,   setDocumentMetaData,   setExpressions,   setGroups,   setItemBand,   setNoDataBand,   setPageFooter,   setPageHeader,   setPreProcessor,   setProperty,   setQuery,   setQueryLimit,   setQueryTimeout,   setReportFooter,   setReportHeader,   setRootGroup,   setWatermark
Methods from org.jfree.report.Section:
createGlobalDefaultStyle,   getElement,   getElementCount,   registerAsChild,   removeElement,   unregisterAsChild,   unregisterParent,   validateLooping
Methods from org.jfree.report.Element:
clone,   createGlobalDefaultStyle,   getAttribute,   getAttributeExpression,   getAttributeExpressionNames,   getAttributeExpressionNamespaces,   getAttributeNames,   getAttributeNamespaces,   getAttributes,   getContentBase,   getDataSource,   getDefinitionSource,   getElementType,   getElementTypeName,   getHRefTarget,   getId,   getMetaData,   getName,   getObjectID,   getParent,   getParentSection,   getReportDefinition,   getStyle,   getStyleExpression,   getStyleExpressions,   getTreeLock,   getValue,   isDynamicContent,   isVisible,   setAttribute,   setAttributeExpression,   setDataSource,   setDynamicContent,   setElementType,   setHRefTarget,   setId,   setName,   setParent,   setStyleExpression,   setVisible
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.report.AbstractReportDefinition Detail:
 public  void addExpression(Expression function) 
    Adds a function to the report's collection of expressions.
 public  void addGroup(Group group) 
    Adds a group to the report. This replaces the group body on the group with a new data-group-body composed of the existing itemband and no-databand.
 public Object clone() throws CloneNotSupportedException 
    Clones the report.
 public ResourceKey getContentBase() 
    Returns the content base of this report. The content base is used to resolve relative URLs during the report generation and resource loading. If there is no content base defined, it will be impossible to resolve relative paths.
 public DataRow getDataRow() 
    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.
 public ResourceKey getDefinitionSource() 
 public DetailsFooter getDetailsFooter() 
    Returns the details header band.
 public DetailsHeader getDetailsHeader() 
    Returns the details header band.
 public DefaultBundleMetaData getDocumentMetaData() 
 public ReportElement getElement(int index) 
 public int getElementCount() 
 public ExpressionCollection getExpressions() 
    Returns the expressions for the report.
 public Group getGroup(int groupIndex) 
    Returns the group at the specified index or null, if there is no such group.
 public Group getGroupByName(String name) 
    Searches a group by its defined name. This method returns null, if the group was not found.
 public int getGroupCount() 
    Returns the number of groups in this report.

    Every report has at least one group defined.

 public ItemBand getItemBand() 
    Returns the report's item band.
 public NoDataBand getNoDataBand() 
    Returns the report's watermark band.
 public PageFooter getPageFooter() 
    Returns the page footer.
 public PageHeader getPageHeader() 
    Returns the page header.
 public ReportPreProcessor getPreProcessor() 
 public ReportProperties getProperties() 
Deprecated! Report-Properties - should not be used anymore.

    Returns the report properties collection for this report.

    These properties are inherited to all ReportStates generated for this report.

 public Object getProperty(String key) 
Deprecated! Do - not use this method anymore. Use the master report's parameters instead.

    Returns the value of the property with the specified key.
 public String getQuery() 
    Returns a new query or query-name that is used when retrieving the data from the data-factory.
 public int getQueryLimit() 
 public int getQueryTimeout() 
 public ReportDefinition getReportDefinition() 
    Returns the currently assigned report definition.
 public ReportFooter getReportFooter() 
    Returns the page footer.
 public ReportHeader getReportHeader() 
    Returns the report header.
 public Group getRootGroup() 
 public StyleSheetCollection getStyleSheetCollection() 
    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.
 public Watermark getWatermark() 
    Returns the report's watermark band.
 protected  void removeElement(Element element) 
 public  void removeGroup(Group group) 
 public  void setContentBase(ResourceKey key) 
    Defines the content base for the report. The content base will be used to resolve relative URLs during the report generation and resource loading. If there is no content base defined, it will be impossible to resolve relative paths.
 public  void setDefinitionSource(ResourceKey key) 
 public  void setDetailsFooter(DetailsFooter band) 
    Sets the item band for the report.
 public  void setDetailsHeader(DetailsHeader band) 
    Sets the item band for the report.
 public  void setDocumentMetaData(DefaultBundleMetaData bundleMetaData) 
 public  void setExpressions(ExpressionCollection expressions) 
    Sets the expressions for the report.
 public  void setGroups(GroupList groupList) 
    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.
 public  void setItemBand(ItemBand band) 
    Sets the item band for the report.
 public  void setNoDataBand(NoDataBand band) 
    Sets the watermark band for the report.
 public  void setPageFooter(PageFooter footer) 
    Sets the page footer.
 public  void setPageHeader(PageHeader header) 
    Sets the page header.
 public  void setPreProcessor(ReportPreProcessor preProcessor) 
 public  void setProperty(String key,
    Object value) 
Deprecated! Properties - should not be used. Use the master-report's parameters instead.

    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.

 public  void setQuery(String query) 
    Defines a new query or query-name that is used when retrieving the data from the data-factory.
 public  void setQueryLimit(int queryLimit) 
 public  void setQueryTimeout(int queryTimeout) 
 public  void setReportFooter(ReportFooter footer) 
    Sets the report footer.
 public  void setReportHeader(ReportHeader header) 
    Sets the report header.
 public  void setRootGroup(Group rootGroup) 
 public  void setWatermark(Watermark band) 
    Sets the watermark band for the report.