Class ContentFieldType
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.filter.types.AbstractElementType
-
- org.pentaho.reporting.engine.classic.core.filter.types.ContentType
-
- org.pentaho.reporting.engine.classic.core.filter.types.ContentFieldType
-
- All Implemented Interfaces:
Serializable
,Cloneable
,DataSource
,ElementType
public class ContentFieldType extends ContentType
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.pentaho.reporting.engine.classic.core.filter.types.ContentType
ContentType.ContentTypeContext
-
-
Field Summary
Fields Modifier and Type Field Description static ContentFieldType
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description ContentFieldType()
protected
ContentFieldType(String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getDesignValue(ExpressionRuntime runtime, ReportElement element)
Compute a design-time value.Object
getValue(ExpressionRuntime runtime, ReportElement element)
Returns the current value for the data source.-
Methods inherited from class org.pentaho.reporting.engine.classic.core.filter.types.ContentType
configureDesignTimeDefaults, createComponentDrawable, filter
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.filter.types.AbstractElementType
clone, create, equals, getId, getMetaData, hashCode
-
-
-
-
Field Detail
-
INSTANCE
public static final ContentFieldType INSTANCE
-
-
Constructor Detail
-
ContentFieldType
public ContentFieldType()
-
ContentFieldType
protected ContentFieldType(String id)
-
-
Method Detail
-
getDesignValue
public Object getDesignValue(ExpressionRuntime runtime, ReportElement element)
Description copied from interface:ElementType
Compute a design-time value. This value will be displayed when editing the element in the Pentaho Report Designer. If there is not enough data available to produce a sensible output, return a mock-object so that the user can interact with the element in a sensible fashion. When the element is called, all style and attribute expressions have been resolved and can be accessed via the normal static style and attribute accessor methods. If the content of your element depends on style information, the fully computed style must be retrieved via the.Element#getComputedStyle()
method. The local style-sheet for the element may not have all information.- Specified by:
getDesignValue
in interfaceElementType
- Overrides:
getDesignValue
in classContentType
- Parameters:
runtime
- the expression runtime holding the current report state.element
- the element.- Returns:
- the computed value.
-
getValue
public Object getValue(ExpressionRuntime runtime, ReportElement element)
Returns the current value for the data source.- Specified by:
getValue
in interfaceDataSource
- Overrides:
getValue
in classContentType
- 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.
-
-