Save This Page
Home » pentaho-reporting-engine-classic-0.8.10 » org » jfree » report » function » [javadoc | source]
org.jfree.report.function
abstract public class: AbstractElementFormatFunction [javadoc | source]
java.lang.Object
   org.jfree.report.function.AbstractExpression
      org.jfree.report.function.AbstractFunction
         org.jfree.report.function.AbstractElementFormatFunction

All Implemented Interfaces:
    LayoutProcessorFunction, PageEventListener, Function, Expression, Serializable

Direct Known Subclasses:
    ShowElementByNameFunction, AttributeExpressionsEvaluator, ElementTrafficLightFunction, CellFormatFunction, ElementColorFunction, DataSchemaFormatFunction, HideElementIfDataAvailableExpression, MetaDataStyleEvaluator, ShowElementIfDataAvailableExpression, HideNullValuesFunction, HideElementByNameFunction, StyleExpressionsEvaluator, SheetNameFunction, NegativeNumberPaintChangeFunction, CreateHyperLinksFunction, ElementVisibilityFunction

The AbstractElementFormatFunction provides a common base implementation for all functions that need to modify the report definition or the style of an report element or band during the report processing.

The Expression retrieves the next root-level band that will be printed and uses this band as parameter for the AbstractElementFormatFunction#processRootBand(org.jfree.report.Band) method.

Constructor:
 protected AbstractElementFormatFunction() 
Method from org.jfree.report.function.AbstractElementFormatFunction Summary:
getElement,   getValue,   groupFinished,   groupStarted,   itemsAdvanced,   itemsFinished,   itemsStarted,   pageFinished,   pageStarted,   processFooterBands,   processGroup,   processRootBand,   reportFinished,   reportInitialized,   reportStarted,   setElement
Methods from org.jfree.report.function.AbstractFunction:
groupFinished,   groupStarted,   itemsAdvanced,   itemsFinished,   itemsStarted,   reportDone,   reportFinished,   reportInitialized,   reportStarted
Methods from org.jfree.report.function.AbstractExpression:
clone,   getDataRow,   getDependencyLevel,   getInstance,   getName,   getReportConfiguration,   getResourceBundleFactory,   getRuntime,   isActive,   isDeepTraversing,   isPreserve,   setActive,   setDependencyLevel,   setName,   setPreserve,   setRuntime
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.report.function.AbstractElementFormatFunction Detail:
 public String getElement() 
    Returns the element name.
 public Object getValue() 
    Format-Functions usually are not expected to return anything.
 public  void groupFinished(ReportEvent event) 
    Processes the group footer of the current group.
 public  void groupStarted(ReportEvent event) 
    Processes the group header of the current group.
 public  void itemsAdvanced(ReportEvent event) 
    Processes the ItemBand.
 public  void itemsFinished(ReportEvent event) 
    Receives notification that a group of item bands has been completed.

    The itemBand is finished, the report starts to close open groups.

 public  void itemsStarted(ReportEvent event) 
    Processes the No-Data-Band.
 public  void pageFinished(ReportEvent event) 
    Processes the page footer.
 public  void pageStarted(ReportEvent event) 
    Processes the page header.
 protected  void processFooterBands(ReportState state) 
 protected  void processGroup(Group group) 
 abstract protected  void processRootBand(Band b)
    Processes the root band for the current event. This method must be implemented by all subclasses and contains all code necessary to update the style or structure of the given band. The update must be deterministic, calls must result in the same layout for all calls for a given report processing state.
 public  void reportFinished(ReportEvent event) 
    Processes the Report-Footer.
 public  void reportInitialized(ReportEvent event) 
    Receives notification that report generation initializes the current run.

    The event carries a ReportState.Started state. Use this to initialize the report.

 public  void reportStarted(ReportEvent event) 
    Processes the Report-Header.
 public  void setElement(String name) 
    Sets the element name. The name denotes an element or band within the root-band or the root-band itself. It is possible to define multiple elements with the same name to apply the modification to all of these elements.