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 JRFillExpressionEvaluator
expressionEvaluator
protected JRPropertiesMap
mergedProperties
protected JRField
parent
protected List<JRPropertyExpression>
propertyExpressions
protected JRPropertiesMap
staticProperties
-
Constructor Summary
Constructors Modifier Constructor Description protected
JRFillField(JRField field, JRFillObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
protected Object
evaluateExpression(JRExpression expression)
protected void
evaluateProperties()
String
getDescription()
Gets the field optional description.String
getName()
Gets the field unique name.Object
getOldValue()
JRPropertiesHolder
getParentProperties()
Returns the parent properties holder, whose properties are used as defaults for this object.Object
getPreviousOldValue()
JRPropertiesMap
getPropertiesMap()
Returns this object's properties map.JRPropertyExpression[]
getPropertyExpressions()
Returns the list of dynamic/expression-based properties for this field.Object
getValue()
Object
getValue(byte evaluation)
Class<?>
getValueClass()
Gets the field value class.String
getValueClassName()
Gets the field value class name.boolean
hasProperties()
Checks whether the object has any properties.void
overwriteValue(Object newValue, byte evaluation)
void
restoreValue(byte evaluation)
void
setDescription(String description)
Sets the field description.void
setOldValue(Object oldValue)
void
setPreviousOldValue(Object previousOldValue)
void
setValue(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:JRField
Gets the field unique name.
-
getDescription
public String getDescription()
Description copied from interface:JRField
Gets the field optional description.- Specified by:
getDescription
in interfaceJRField
-
setDescription
public void setDescription(String description)
Description copied from interface:JRField
Sets the field description.- Specified by:
setDescription
in interfaceJRField
-
getValueClass
public Class<?> getValueClass()
Description copied from interface:JRField
Gets the field value class. Field types cannot be primitives.- Specified by:
getValueClass
in interfaceJRField
-
getValueClassName
public String getValueClassName()
Description copied from interface:JRField
Gets the field value class name.- Specified by:
getValueClassName
in 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:JRPropertiesHolder
Checks whether the object has any properties.- Specified by:
hasProperties
in interfaceJRPropertiesHolder
- Returns:
- whether the object has any properties
-
getPropertiesMap
public JRPropertiesMap getPropertiesMap()
Description copied from interface:JRPropertiesHolder
Returns this object's properties map.- Specified by:
getPropertiesMap
in interfaceJRPropertiesHolder
- Returns:
- this object's properties map
-
getParentProperties
public JRPropertiesHolder getParentProperties()
Description copied from interface:JRPropertiesHolder
Returns the parent properties holder, whose properties are used as defaults for this object.- Specified by:
getParentProperties
in interfaceJRPropertiesHolder
- Returns:
- the parent properties holder, or
null
if no parent
-
getPropertyExpressions
public JRPropertyExpression[] getPropertyExpressions()
Description copied from interface:JRField
Returns the list of dynamic/expression-based properties for this field.- Specified by:
getPropertyExpressions
in 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:
clone
in interfaceJRCloneable
- Overrides:
clone
in classObject
-
-