Package net.sf.jasperreports.engine.base
Class JRBasePart
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBasePart
-
- All Implemented Interfaces:
Serializable,Cloneable,JRChangeEventsSupport,JRCloneable,JRIdentifiable,JRPart,JRPropertiesHolder
- Direct Known Subclasses:
JRDesignPart
public class JRBasePart extends Object implements JRPart, Serializable, JRChangeEventsSupport
A read-onlyJRPartimplementation which is included in compiled reports.- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected PartComponentcomponentprotected ComponentKeycomponentKeyprotected PartEvaluationTimeevaluationTimeprotected JRExpressionpartNameExpressionprotected JRExpressionprintWhenExpressionprotected UUIDuuid
-
Constructor Summary
Constructors Modifier Constructor Description protectedJRBasePart()JRBasePart(JRPart part, JRBaseObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()PartComponentgetComponent()Returns the component instance wrapped by this part.ComponentKeygetComponentKey()Returns the component type key for this part.PartEvaluationTimegetEvaluationTime()Determines the moment at which this part is to be evaluated.JRPropertyChangeSupportgetEventSupport()Returns the property change support object for this instance.JRPropertiesHoldergetParentProperties()Returns the parent properties holder, whose properties are used as defaults for this object.JRExpressiongetPartNameExpression()JRExpressiongetPrintWhenExpression()Returns the boolean expression that specifies if the part will be displayed.JRPropertiesMapgetPropertiesMap()Returns this object's properties map.JRPropertyExpression[]getPropertyExpressions()Returns the list of dynamic/expression-based properties for this report part.UUIDgetUUID()booleanhasProperties()Checks whether the object has any properties.
-
-
-
Field Detail
-
uuid
protected UUID uuid
-
printWhenExpression
protected JRExpression printWhenExpression
-
partNameExpression
protected JRExpression partNameExpression
-
componentKey
protected ComponentKey componentKey
-
component
protected PartComponent component
-
evaluationTime
protected PartEvaluationTime evaluationTime
-
-
Constructor Detail
-
JRBasePart
protected JRBasePart()
-
JRBasePart
public JRBasePart(JRPart part, JRBaseObjectFactory factory)
-
-
Method Detail
-
getUUID
public UUID getUUID()
- Specified by:
getUUIDin interfaceJRIdentifiable
-
getComponent
public PartComponent getComponent()
Description copied from interface:JRPartReturns the component instance wrapped by this part.- Specified by:
getComponentin interfaceJRPart- Returns:
- the component instance
-
getComponentKey
public ComponentKey getComponentKey()
Description copied from interface:JRPartReturns the component type key for this part.The component type key needs to be set in order to locate the component manager.
- Specified by:
getComponentKeyin interfaceJRPart- Returns:
- the component type key
-
getEvaluationTime
public PartEvaluationTime getEvaluationTime()
Description copied from interface:JRPartDetermines the moment at which this part is to be evaluated.- Specified by:
getEvaluationTimein interfaceJRPart- Returns:
- the evaluation time of this part
-
getPrintWhenExpression
public JRExpression getPrintWhenExpression()
Description copied from interface:JRPartReturns the boolean expression that specifies if the part will be displayed.- Specified by:
getPrintWhenExpressionin interfaceJRPart
-
getPartNameExpression
public JRExpression getPartNameExpression()
- Specified by:
getPartNameExpressionin interfaceJRPart
-
hasProperties
public boolean hasProperties()
Description copied from interface:JRPropertiesHolderChecks whether the object has any properties.- Specified by:
hasPropertiesin interfaceJRPropertiesHolder- Returns:
- whether the object has any properties
-
getPropertiesMap
public JRPropertiesMap getPropertiesMap()
Description copied from interface:JRPropertiesHolderReturns this object's properties map.- Specified by:
getPropertiesMapin interfaceJRPropertiesHolder- Returns:
- this object's properties map
-
getParentProperties
public JRPropertiesHolder getParentProperties()
Description copied from interface:JRPropertiesHolderReturns the parent properties holder, whose properties are used as defaults for this object.- Specified by:
getParentPropertiesin interfaceJRPropertiesHolder- Returns:
- the parent properties holder, or
nullif no parent
-
getPropertyExpressions
public JRPropertyExpression[] getPropertyExpressions()
Description copied from interface:JRPartReturns the list of dynamic/expression-based properties for this report part.- Specified by:
getPropertyExpressionsin interfaceJRPart- Returns:
- an array containing the expression-based properties of this report part
-
getEventSupport
public JRPropertyChangeSupport getEventSupport()
Description copied from interface:JRChangeEventsSupportReturns the property change support object for this instance.- Specified by:
getEventSupportin interfaceJRChangeEventsSupport- Returns:
- the property change support object for this instance
-
clone
public Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-
-