org.jfree.report.demo.cards
Class SelectCardFunction

java.lang.Object
  extended byorg.jfree.report.function.AbstractFunction
      extended byorg.jfree.report.demo.cards.SelectCardFunction
All Implemented Interfaces:
java.lang.Cloneable, java.util.EventListener, Expression, Function, ReportListener, java.io.Serializable

public class SelectCardFunction
extends AbstractFunction
implements java.io.Serializable

The SelectCardFunction defines the visiblity of the card bands depending on the current card type. Valid property names are:

Author:
Thomas Morgner.
See Also:
Serialized Form

Field Summary
static java.lang.String BASECARD_PROPERTY
          Literal text for the baseCard property.
static java.lang.String FIELD_PROPERTY
          Literal text for the field property.
 
Fields inherited from interface org.jfree.report.function.Expression
AUTOACTIVATE_PROPERTY
 
Constructor Summary
SelectCardFunction()
          Default constructor.
 
Method Summary
 java.lang.Object getValue()
          Return the current expression value.
 void initialize()
          Checks that the function has been correctly initialized.
 void itemsAdvanced(ReportEvent event)
          Receives notification that a row of data is being processed.
 
Methods inherited from class org.jfree.report.function.AbstractFunction
clone, getDataRow, getDependencyLevel, getInstance, getName, getProperties, getProperty, getProperty, groupFinished, groupStarted, isActive, itemsFinished, itemsStarted, reportDone, reportFinished, reportInitialized, reportStarted, setDataRow, setDependencyLevel, setName, setProperties, setProperty
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD_PROPERTY

public static final java.lang.String FIELD_PROPERTY
Literal text for the field property.

See Also:
Constant Field Values

BASECARD_PROPERTY

public static final java.lang.String BASECARD_PROPERTY
Literal text for the baseCard property.

See Also:
Constant Field Values
Constructor Detail

SelectCardFunction

public SelectCardFunction()
Default constructor.

Method Detail

itemsAdvanced

public void itemsAdvanced(ReportEvent event)
Receives notification that a row of data is being processed.

Specified by:
itemsAdvanced in interface ReportListener
Overrides:
itemsAdvanced in class AbstractFunction
Parameters:
event - the event.

initialize

public void initialize()
                throws FunctionInitializeException
Checks that the function has been correctly initialized.

The only check performed at present is to make sure the name is not null.

Specified by:
initialize in interface Expression
Overrides:
initialize in class AbstractFunction
Throws:
FunctionInitializeException - in case the function is not initialized properly.

getValue

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

The value depends (obviously) on the expression implementation.

Specified by:
getValue in interface Expression
Returns:
the value of the function.