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 StringPROPERTY_COMPONENTstatic StringPROPERTY_COMPONENT_KEYstatic StringPROPERTY_EVALUATION_TIMEstatic StringPROPERTY_PART_NAME_EXPRESSIONstatic StringPROPERTY_PRINT_WHEN_EXPRESSIONstatic StringPROPERTY_PROPERTY_EXPRESSIONS-
Fields inherited from class net.sf.jasperreports.engine.base.JRBasePart
component, componentKey, 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 voidaddPropertyExpression(JRPropertyExpression propertyExpression)Add a dynamic/expression-based property.Objectclone()JRPropertyExpression[]getPropertyExpressions()Returns the list of dynamic/expression-based properties for this report part.List<JRPropertyExpression>getPropertyExpressionsList()Returns the list of property expressions.JRPropertyExpressionremovePropertyExpression(String name)Remove a property expression.voidremovePropertyExpression(JRPropertyExpression propertyExpression)Remove a property expression.voidsetComponent(PartComponent component)Sets the component instance wrapped by this part.voidsetComponentKey(ComponentKey componentKey)Sets the component type key that corresponds to the component instance.voidsetEvaluationTime(PartEvaluationTime evaluationTime)voidsetPartNameExpression(JRExpression expression)voidsetPrintWhenExpression(JRExpression expression)voidsetUUID(UUID uuid)-
Methods inherited from class net.sf.jasperreports.engine.base.JRBasePart
getComponent, getComponentKey, 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_COMPONENT_KEY
public static final String PROPERTY_COMPONENT_KEY
- 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 (
JRPropertyExpressioninstances) - See Also:
addPropertyExpression(JRPropertyExpression)
-
getPropertyExpressions
public JRPropertyExpression[] getPropertyExpressions()
Description copied from interface:JRPartReturns the list of dynamic/expression-based properties for this report part.- Specified by:
getPropertyExpressionsin interfaceJRPart- Overrides:
getPropertyExpressionsin 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)
-
setComponentKey
public void setComponentKey(ComponentKey componentKey)
Sets the component type key that corresponds to the component instance.- Parameters:
componentKey- the component type key- See Also:
JRBasePart.getComponentKey()
-
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:
clonein interfaceJRCloneable- Overrides:
clonein classJRBasePart
-
-