org.jfree.report.function
Class ShowElementIfDataAvailableExpression

java.lang.Object
  |
  +--org.jfree.report.function.AbstractExpression
        |
        +--org.jfree.report.function.AbstractFunction
              |
              +--org.jfree.report.function.AbstractElementFormatFunction
                    |
                    +--org.jfree.report.function.ShowElementIfDataAvailableExpression

public class ShowElementIfDataAvailableExpression
extends AbstractElementFormatFunction

This functions checks the tablemodel and hides the named band, if there is no data available.

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
ShowElementIfDataAvailableExpression()
           
 
Method Summary
 java.lang.Object getValue()
          Return the current expression value.
protected  void processRootBand(Band b)
           
 
Methods inherited from class org.jfree.report.function.AbstractElementFormatFunction
getElement, groupFinished, groupStarted, itemsAdvanced, pageCanceled, pageFinished, pageRolledBack, pageStarted, reportFinished, reportStarted, setElement
 
Methods inherited from class org.jfree.report.function.AbstractFunction
clone, itemsFinished, itemsStarted, reportDone, reportInitialized
 
Methods inherited from class org.jfree.report.function.AbstractExpression
getDataRow, getDependencyLevel, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, setActive, setDependencyLevel, setName, setRuntime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShowElementIfDataAvailableExpression

public ShowElementIfDataAvailableExpression()
Method Detail

processRootBand

protected void processRootBand(Band b)
Overrides:
processRootBand in class AbstractElementFormatFunction

getValue

public java.lang.Object getValue()
Return the current expression value.

The value depends (obviously) on the expression implementation.

Returns:
the value of the function.