Class JRDesignPart
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBasePart
-
- net.sf.jasperreports.engine.design.JRDesignPart
-
- All Implemented Interfaces:
Serializable
,Cloneable
,JRChangeEventsSupport
,JRCloneable
,JRIdentifiable
,JRPart
,JRPropertiesHolder
public class JRDesignPart extends JRBasePart
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_COMPONENT
static String
PROPERTY_EVALUATION_TIME
static String
PROPERTY_PART_NAME_EXPRESSION
static String
PROPERTY_PRINT_WHEN_EXPRESSION
static String
PROPERTY_PROPERTY_EXPRESSIONS
-
Fields inherited from class net.sf.jasperreports.engine.base.JRBasePart
component, evaluationTime, partNameExpression, printWhenExpression, uuid
-
-
Constructor Summary
Constructors Constructor Description JRDesignPart()
Creates an empty report part.
-
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 report part.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
setComponent(PartComponent component)
Sets the component instance wrapped by this part.void
setEvaluationTime(PartEvaluationTime evaluationTime)
void
setPartNameExpression(JRExpression expression)
void
setPrintWhenExpression(JRExpression expression)
void
setUUID(UUID uuid)
-
Methods inherited from class net.sf.jasperreports.engine.base.JRBasePart
getComponent, getEvaluationTime, getEventSupport, getParentProperties, getPartNameExpression, getPrintWhenExpression, getPropertiesMap, getUUID, hasProperties
-
-
-
-
Field Detail
-
PROPERTY_PROPERTY_EXPRESSIONS
public static final String PROPERTY_PROPERTY_EXPRESSIONS
- See Also:
- Constant Field Values
-
PROPERTY_PRINT_WHEN_EXPRESSION
public static final String PROPERTY_PRINT_WHEN_EXPRESSION
- See Also:
- Constant Field Values
-
PROPERTY_PART_NAME_EXPRESSION
public static final String PROPERTY_PART_NAME_EXPRESSION
- See Also:
- Constant Field Values
-
PROPERTY_COMPONENT
public static final String PROPERTY_COMPONENT
- See Also:
- Constant Field Values
-
PROPERTY_EVALUATION_TIME
public static final String PROPERTY_EVALUATION_TIME
- See Also:
- Constant Field Values
-
-
Method Detail
-
setUUID
public void setUUID(UUID uuid)
-
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:JRPart
Returns the list of dynamic/expression-based properties for this report part.- Specified by:
getPropertyExpressions
in interfaceJRPart
- Overrides:
getPropertyExpressions
in classJRBasePart
- Returns:
- an array containing the expression-based properties of this report part
-
setPrintWhenExpression
public void setPrintWhenExpression(JRExpression expression)
-
setPartNameExpression
public void setPartNameExpression(JRExpression expression)
-
setComponent
public void setComponent(PartComponent component)
Sets the component instance wrapped by this part.- Parameters:
component
- the component instance- See Also:
JRBasePart.getComponent()
-
setEvaluationTime
public void setEvaluationTime(PartEvaluationTime evaluationTime)
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classJRBasePart
-
-