org.pentaho.reporting.engine.classic.core.filter.types.bands
Class BandType
java.lang.Object
org.pentaho.reporting.engine.classic.core.filter.types.bands.BandType
- All Implemented Interfaces:
- Serializable, Cloneable, DataSource, ElementType, SectionType
public class BandType
- extends Object
- implements SectionType
Todo: Document Me
- Author:
- Thomas Morgner
- See Also:
- Serialized Form
INSTANCE
public static final ElementType INSTANCE
BandType
public BandType()
isRestricted
public boolean isRestricted()
- A band that serves a specific purpose within a slotted parent should return "true" here. Plain elemetns and bands
that can be freely combined should return false.
- Specified by:
isRestricted
in interface SectionType
- Returns:
- true, if the usage is restricted.
getMetaData
public ElementMetaData getMetaData()
- Specified by:
getMetaData
in interface ElementType
getValue
public Object getValue(ExpressionRuntime runtime,
Element element)
- Returns the current value for the data source.
- Specified by:
getValue
in interface DataSource
- Parameters:
runtime
- the expression runtime that is used to evaluate formulas and expressions when computing the value of
this filter.element
- the element for which the data is computed.
- Returns:
- the value.
getDesignValue
public Object getDesignValue(ExpressionRuntime runtime,
Element element)
- Specified by:
getDesignValue
in interface ElementType
clone
public Object clone()
throws CloneNotSupportedException
- Clones this
DataSource
.
- Specified by:
clone
in interface DataSource
- Overrides:
clone
in class Object
- Returns:
- the clone.
- Throws:
CloneNotSupportedException
- this should never happen.
configureDesignTimeDefaults
public void configureDesignTimeDefaults(Element element,
Locale locale)
- Specified by:
configureDesignTimeDefaults
in interface ElementType