org.jfree.report.function
Class HideNullValuesFunction

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

public class HideNullValuesFunction
extends AbstractElementFormatFunction

Hides the specified elements if the given field contains empty strings or zero numbers.

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
HideNullValuesFunction()
           
 
Method Summary
 java.lang.String getField()
           
 java.lang.Object getValue()
          Return the current expression value.
protected  boolean isVisible(java.lang.Object value)
           
protected  void processRootBand(Band b)
           
 void setField(java.lang.String field)
           
 
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

HideNullValuesFunction

public HideNullValuesFunction()
Method Detail

getField

public java.lang.String getField()

setField

public void setField(java.lang.String field)

processRootBand

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

isVisible

protected boolean isVisible(java.lang.Object value)

getValue

public java.lang.Object getValue()
Description copied from interface: Expression
Return the current expression value.

The value depends (obviously) on the expression implementation.

Tags copied from interface: Expression
Returns:
the value of the function.