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