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.String
PROPERTY_NAME
static java.lang.String
PROPERTY_PROPERTY_EXPRESSIONS
static java.lang.String
PROPERTY_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 void
addPropertyExpression(JRPropertyExpression propertyExpression)
Add a dynamic/expression-based property.java.lang.Object
clone()
JRPropertyExpression[]
getPropertyExpressions()
Returns the list of dynamic/expression-based properties for this field.java.util.List<JRPropertyExpression>
getPropertyExpressionsList()
Returns the list of property expressions.JRPropertyExpression
removePropertyExpression(java.lang.String name)
Remove a property expression.void
removePropertyExpression(JRPropertyExpression propertyExpression)
Remove a property expression.void
setName(java.lang.String name)
void
setValueClass(java.lang.Class<?> clazz)
void
setValueClassName(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 (
JRPropertyExpression
instances) - See Also:
addPropertyExpression(JRPropertyExpression)
-
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
- Overrides:
getPropertyExpressions
in classJRBaseField
- Returns:
- an array containing the expression-based properties of this field
-
clone
public java.lang.Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classJRBaseField
-
-