Package net.sf.jasperreports.engine.base
Class JRBaseScriptlet
java.lang.Object
net.sf.jasperreports.engine.base.JRBaseScriptlet
- All Implemented Interfaces:
Serializable,Cloneable,JRChangeEventsSupport,JRCloneable,JRPropertiesHolder,JRScriptlet
- Direct Known Subclasses:
JRDesignScriptlet
public class JRBaseScriptlet
extends Object
implements JRScriptlet, Serializable, JRChangeEventsSupport
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected JRPropertiesMapstatic final Stringprotected Class<?> protected Stringprotected StringFields inherited from interface net.sf.jasperreports.engine.JRScriptlet
SCRIPTLET_PARAMETER_NAME_SUFFIX -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedJRBaseScriptlet(JRScriptlet scriptlet, JRBaseObjectFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns the property change support object for this instance.getName()Returns the parent properties holder, whose properties are used as defaults for this object.Returns this object's properties map.Returns the list of dynamic/expression-based properties for this scriptlet.Class<?> booleanChecks whether the object has any properties.voidsetDescription(String description)
-
Field Details
-
PROPERTY_DESCRIPTION
- See Also:
-
name
-
description
-
valueClassName
-
valueClassRealName
-
valueClass
-
propertiesMap
-
-
Constructor Details
-
JRBaseScriptlet
protected JRBaseScriptlet() -
JRBaseScriptlet
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceJRScriptlet
-
getDescription
- Specified by:
getDescriptionin interfaceJRScriptlet
-
setDescription
- Specified by:
setDescriptionin interfaceJRScriptlet
-
getValueClass
- Specified by:
getValueClassin interfaceJRScriptlet
-
getValueClassName
- Specified by:
getValueClassNamein interfaceJRScriptlet
-
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
Description copied from interface:JRPropertiesHolderReturns this object's properties map.- Specified by:
getPropertiesMapin interfaceJRPropertiesHolder- Returns:
- this object's properties map
-
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
Description copied from interface:JRScriptletReturns the list of dynamic/expression-based properties for this scriptlet.- Specified by:
getPropertyExpressionsin interfaceJRScriptlet- Returns:
- an array containing the expression-based properties of this scriptlet
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-
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
-