Class AnchorFieldTemplate
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.filter.templates.AbstractTemplate
-
- org.pentaho.reporting.engine.classic.core.filter.templates.AnchorFieldTemplate
-
- All Implemented Interfaces:
Serializable
,Cloneable
,DataSource
,Template
public class AnchorFieldTemplate extends AbstractTemplate
Deprecated.the Anchor-Field has been deprecated. Use the style-key "anchor" instead.The anchor-field template provides the default field for assigning anchors to an location within the document.- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AnchorFieldTemplate()
Deprecated.Creates a new string field template.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AnchorFieldTemplate
clone()
Deprecated.Clones the template.protected DataRowDataSource
getDataRowDataSource()
Deprecated.Returns the datarow data source used in this template.String
getField()
Deprecated.Returns the field name.String
getFormula()
Deprecated.Returns the formula used to compute the value of the data source.Object
getValue(ExpressionRuntime runtime, ReportElement element)
Deprecated.Returns the current value for the data source.void
setField(String field)
Deprecated.Sets the field name.void
setFormula(String formula)
Deprecated.Defines the formula used to compute the value of this data source.-
Methods inherited from class org.pentaho.reporting.engine.classic.core.filter.templates.AbstractTemplate
getInstance, getName, setName
-
-
-
-
Method Detail
-
getField
public String getField()
Deprecated.Returns the field name.- Returns:
- The field name.
-
setField
public void setField(String field)
Deprecated.Sets the field name.- Parameters:
field
- the field name.
-
getFormula
public String getFormula()
Deprecated.Returns the formula used to compute the value of the data source.- Returns:
- the formula.
-
setFormula
public void setFormula(String formula)
Deprecated.Defines the formula used to compute the value of this data source.- Parameters:
formula
- the formula for the data source.
-
getValue
public Object getValue(ExpressionRuntime runtime, ReportElement element)
Deprecated.Returns the current value for the data source.- Parameters:
runtime
- the expression runtime that is used to evaluate formulas and expressions when computing the value of this filter.element
-- Returns:
- the value.
-
clone
public AnchorFieldTemplate clone() throws CloneNotSupportedException
Deprecated.Clones the template.- Specified by:
clone
in interfaceDataSource
- Overrides:
clone
in classAbstractTemplate
- Returns:
- the clone.
- Throws:
CloneNotSupportedException
- this should never happen.
-
getDataRowDataSource
protected DataRowDataSource getDataRowDataSource()
Deprecated.Returns the datarow data source used in this template.- Returns:
- the datarow data source.
-
-