Class JRDesignField
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseField
-
- net.sf.jasperreports.engine.design.JRDesignField
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,JRChangeEventsSupport,JRCloneable,JRField,JRPropertiesHolder
public class JRDesignField extends JRBaseField
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROPERTY_NAMEstatic java.lang.StringPROPERTY_PROPERTY_EXPRESSIONSstatic java.lang.StringPROPERTY_VALUE_CLASS_NAME-
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseField
description, name, propertiesMap, PROPERTY_DESCRIPTION, valueClass, valueClassName, valueClassRealName
-
-
Constructor Summary
Constructors Constructor Description JRDesignField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPropertyExpression(JRPropertyExpression propertyExpression)Add a dynamic/expression-based property.java.lang.Objectclone()JRPropertyExpression[]getPropertyExpressions()Returns the list of dynamic/expression-based properties for this field.java.util.List<JRPropertyExpression>getPropertyExpressionsList()Returns the list of property expressions.JRPropertyExpressionremovePropertyExpression(java.lang.String name)Remove a property expression.voidremovePropertyExpression(JRPropertyExpression propertyExpression)Remove a property expression.voidsetName(java.lang.String name)voidsetValueClass(java.lang.Class<?> clazz)voidsetValueClassName(java.lang.String className)-
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseField
getDescription, getEventSupport, getName, getParentProperties, getPropertiesMap, getValueClass, getValueClassName, hasProperties, setDescription
-
-
-
-
Field Detail
-
PROPERTY_NAME
public static final java.lang.String PROPERTY_NAME
- See Also:
- Constant Field Values
-
PROPERTY_VALUE_CLASS_NAME
public static final java.lang.String PROPERTY_VALUE_CLASS_NAME
- See Also:
- Constant Field Values
-
PROPERTY_PROPERTY_EXPRESSIONS
public static final java.lang.String PROPERTY_PROPERTY_EXPRESSIONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
setName
public void setName(java.lang.String name)
-
setValueClass
public void setValueClass(java.lang.Class<?> clazz)
-
setValueClassName
public void setValueClassName(java.lang.String className)
-
addPropertyExpression
public void addPropertyExpression(JRPropertyExpression propertyExpression)
Add a dynamic/expression-based property.- Parameters:
propertyExpression- the property to add- See Also:
getPropertyExpressions()
-
removePropertyExpression
public void removePropertyExpression(JRPropertyExpression propertyExpression)
Remove a property expression.- Parameters:
propertyExpression- the property expression to remove- See Also:
addPropertyExpression(JRPropertyExpression)
-
removePropertyExpression
public JRPropertyExpression removePropertyExpression(java.lang.String name)
Remove a property expression.- Parameters:
name- the name of the property to remove- Returns:
- the removed property expression (if found)
-
getPropertyExpressionsList
public java.util.List<JRPropertyExpression> getPropertyExpressionsList()
Returns the list of property expressions.- Returns:
- the list of property expressions (
JRPropertyExpressioninstances) - See Also:
addPropertyExpression(JRPropertyExpression)
-
getPropertyExpressions
public JRPropertyExpression[] getPropertyExpressions()
Description copied from interface:JRFieldReturns the list of dynamic/expression-based properties for this field.- Specified by:
getPropertyExpressionsin interfaceJRField- Overrides:
getPropertyExpressionsin classJRBaseField- Returns:
- an array containing the expression-based properties of this field
-
clone
public java.lang.Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classJRBaseField
-
-