Class JRDesignField
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseField
-
- net.sf.jasperreports.engine.design.JRDesignField
-
- All Implemented Interfaces:
Serializable
,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 String
PROPERTY_NAME
static String
PROPERTY_PROPERTY_EXPRESSIONS
static 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.Object
clone()
JRPropertyExpression[]
getPropertyExpressions()
Returns the list of dynamic/expression-based properties for this field.List<JRPropertyExpression>
getPropertyExpressionsList()
Returns the list of property expressions.JRPropertyExpression
removePropertyExpression(String name)
Remove a property expression.void
removePropertyExpression(JRPropertyExpression propertyExpression)
Remove a property expression.void
setName(String name)
void
setValueClass(Class<?> clazz)
void
setValueClassName(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 String PROPERTY_NAME
- See Also:
- Constant Field Values
-
PROPERTY_VALUE_CLASS_NAME
public static final String PROPERTY_VALUE_CLASS_NAME
- See Also:
- Constant Field Values
-
PROPERTY_PROPERTY_EXPRESSIONS
public static final String PROPERTY_PROPERTY_EXPRESSIONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
setName
public void setName(String name)
-
setValueClass
public void setValueClass(Class<?> clazz)
-
setValueClassName
public void setValueClassName(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(String name)
Remove a property expression.- Parameters:
name
- the name of the property to remove- Returns:
- the removed property expression (if found)
-
getPropertyExpressionsList
public 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 Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classJRBaseField
-
-