Package net.sf.jasperreports.engine.fill
Class JRFillField
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRFillField
-
- All Implemented Interfaces:
java.lang.Cloneable,JRCloneable,JRField,JRPropertiesHolder
public class JRFillField extends java.lang.Object implements JRField
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description protected JRFillExpressionEvaluatorexpressionEvaluatorprotected JRPropertiesMapmergedPropertiesprotected JRFieldparentprotected java.util.List<JRPropertyExpression>propertyExpressionsprotected JRPropertiesMapstaticProperties
-
Constructor Summary
Constructors Modifier Constructor Description protectedJRFillField(JRField field, JRFillObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()protected java.lang.ObjectevaluateExpression(JRExpression expression)protected voidevaluateProperties()java.lang.StringgetDescription()Gets the field optional description.java.lang.StringgetName()Gets the field unique name.java.lang.ObjectgetOldValue()JRPropertiesHoldergetParentProperties()Returns the parent properties holder, whose properties are used as defaults for this object.java.lang.ObjectgetPreviousOldValue()JRPropertiesMapgetPropertiesMap()Returns this object's properties map.JRPropertyExpression[]getPropertyExpressions()Returns the list of dynamic/expression-based properties for this field.java.lang.ObjectgetValue()java.lang.ObjectgetValue(byte evaluation)java.lang.Class<?>getValueClass()Gets the field value class.java.lang.StringgetValueClassName()Gets the field value class name.booleanhasProperties()Checks whether the object has any properties.voidoverwriteValue(java.lang.Object newValue, byte evaluation)voidrestoreValue(byte evaluation)voidsetDescription(java.lang.String description)Sets the field description.voidsetOldValue(java.lang.Object oldValue)voidsetPreviousOldValue(java.lang.Object previousOldValue)voidsetValue(java.lang.Object value)
-
-
-
Field Detail
-
parent
protected JRField parent
-
expressionEvaluator
protected JRFillExpressionEvaluator expressionEvaluator
-
propertyExpressions
protected java.util.List<JRPropertyExpression> propertyExpressions
-
staticProperties
protected JRPropertiesMap staticProperties
-
mergedProperties
protected JRPropertiesMap mergedProperties
-
-
Constructor Detail
-
JRFillField
protected JRFillField(JRField field, JRFillObjectFactory factory)
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:JRFieldGets the field unique name.
-
getDescription
public java.lang.String getDescription()
Description copied from interface:JRFieldGets the field optional description.- Specified by:
getDescriptionin interfaceJRField
-
setDescription
public void setDescription(java.lang.String description)
Description copied from interface:JRFieldSets the field description.- Specified by:
setDescriptionin interfaceJRField
-
getValueClass
public java.lang.Class<?> getValueClass()
Description copied from interface:JRFieldGets the field value class. Field types cannot be primitives.- Specified by:
getValueClassin interfaceJRField
-
getValueClassName
public java.lang.String getValueClassName()
Description copied from interface:JRFieldGets the field value class name.- Specified by:
getValueClassNamein interfaceJRField
-
getOldValue
public java.lang.Object getOldValue()
-
setOldValue
public void setOldValue(java.lang.Object oldValue)
-
getValue
public java.lang.Object getValue()
-
setValue
public void setValue(java.lang.Object value)
-
getValue
public java.lang.Object getValue(byte evaluation)
-
overwriteValue
public void overwriteValue(java.lang.Object newValue, byte evaluation)
-
restoreValue
public void restoreValue(byte evaluation)
-
getPreviousOldValue
public java.lang.Object getPreviousOldValue()
-
setPreviousOldValue
public void setPreviousOldValue(java.lang.Object previousOldValue)
-
hasProperties
public boolean hasProperties()
Description copied from interface:JRPropertiesHolderChecks whether the object has any properties.- Specified by:
hasPropertiesin interfaceJRPropertiesHolder- Returns:
- whether the object has any properties
-
getPropertiesMap
public JRPropertiesMap getPropertiesMap()
Description copied from interface:JRPropertiesHolderReturns this object's properties map.- Specified by:
getPropertiesMapin interfaceJRPropertiesHolder- Returns:
- this object's properties map
-
getParentProperties
public JRPropertiesHolder getParentProperties()
Description copied from interface:JRPropertiesHolderReturns the parent properties holder, whose properties are used as defaults for this object.- Specified by:
getParentPropertiesin interfaceJRPropertiesHolder- Returns:
- the parent properties holder, or
nullif no parent
-
getPropertyExpressions
public JRPropertyExpression[] getPropertyExpressions()
Description copied from interface:JRFieldReturns the list of dynamic/expression-based properties for this field.- Specified by:
getPropertyExpressionsin interfaceJRField- Returns:
- an array containing the expression-based properties of this field
-
evaluateProperties
protected void evaluateProperties() throws JRException- Throws:
JRException
-
evaluateExpression
protected final java.lang.Object evaluateExpression(JRExpression expression) throws JRException
- Throws:
JRException
-
clone
public java.lang.Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classjava.lang.Object
-
-