Interface PartFillComponent

All Known Implementing Classes:
BasePartFillComponent, SubreportFillPart

public interface PartFillComponent
A component handler used while filling the report.

The fill component implementation is responsible for managing a component at fill time. A typical implementation would evaluate a set of expressions and create a print element to be included in the generated report.

Author:
Lucian Chirita (lucianc@users.sourceforge.net)
  • Method Summary

    Modifier and Type
    Method
    Description
    evaluate(byte evaluation)
    Evaluates the fill component.
    void
    fill(EvaluatedPart evaluatedPart, PartPrintOutput output)
    Fills the component by creating a print element which will be included in the generated report.
    void
    Initializes the fill component with the fill context.
  • Method Details

    • initialize

      void initialize(PartFillContext fillContext)
      Initializes the fill component with the fill context.

      This method is called before the fill component is used.

      Parameters:
      fillContext - the fill context
    • evaluate

      Object evaluate(byte evaluation) throws JRException
      Evaluates the fill component.

      This method would evaluate the component expressions and store the results to be used in

      invalid reference
      #fill(PartPrintOutput)
      .
      Parameters:
      evaluation - the evaluation type
      Returns:
      the evaluated part component
      Throws:
      JRException
    • fill

      void fill(EvaluatedPart evaluatedPart, PartPrintOutput output) throws JRException
      Fills the component by creating a print element which will be included in the generated report.
      Throws:
      JRException