Package net.sf.jasperreports.engine.base
Class JRBaseField
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseField
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,JRChangeEventsSupport,JRCloneable,JRField,JRPropertiesHolder
- Direct Known Subclasses:
JRDesignField
public class JRBaseField extends java.lang.Object implements JRField, java.io.Serializable, JRChangeEventsSupport
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringdescriptionprotected java.lang.Stringnameprotected JRPropertiesMappropertiesMapstatic java.lang.StringPROPERTY_DESCRIPTIONprotected java.lang.Class<?>valueClassprotected java.lang.StringvalueClassNameprotected java.lang.StringvalueClassRealName
-
Constructor Summary
Constructors Modifier Constructor Description protectedJRBaseField()protectedJRBaseField(JRField field, JRBaseObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()java.lang.StringgetDescription()Gets the field optional description.JRPropertyChangeSupportgetEventSupport()Returns the property change support object for this instance.java.lang.StringgetName()Gets the field unique name.JRPropertiesHoldergetParentProperties()Returns the parent properties holder, whose properties are used as defaults for this object.JRPropertiesMapgetPropertiesMap()Returns this object's properties map.JRPropertyExpression[]getPropertyExpressions()Returns the list of dynamic/expression-based properties for this field.java.lang.Class<?>getValueClass()Gets the field value class.java.lang.StringgetValueClassName()Gets the field value class name.booleanhasProperties()Checks whether the object has any properties.voidsetDescription(java.lang.String description)Sets the field description.
-
-
-
Field Detail
-
PROPERTY_DESCRIPTION
public static final java.lang.String PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
name
protected java.lang.String name
-
description
protected java.lang.String description
-
valueClassName
protected java.lang.String valueClassName
-
valueClassRealName
protected java.lang.String valueClassRealName
-
valueClass
protected transient java.lang.Class<?> valueClass
-
propertiesMap
protected JRPropertiesMap propertiesMap
-
-
Constructor Detail
-
JRBaseField
protected JRBaseField()
-
JRBaseField
protected JRBaseField(JRField field, JRBaseObjectFactory factory)
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:JRFieldGets the field unique name.
-
getDescription
public java.lang.String getDescription()
Description copied from interface:JRFieldGets the field optional description.- Specified by:
getDescriptionin interfaceJRField
-
setDescription
public void setDescription(java.lang.String description)
Description copied from interface:JRFieldSets the field description.- Specified by:
setDescriptionin interfaceJRField
-
getValueClass
public java.lang.Class<?> getValueClass()
Description copied from interface:JRFieldGets the field value class. Field types cannot be primitives.- Specified by:
getValueClassin interfaceJRField
-
getValueClassName
public java.lang.String getValueClassName()
Description copied from interface:JRFieldGets the field value class name.- Specified by:
getValueClassNamein interfaceJRField
-
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:JRFieldReturns the list of dynamic/expression-based properties for this field.- Specified by:
getPropertyExpressionsin interfaceJRField- Returns:
- an array containing the expression-based properties of this field
-
clone
public java.lang.Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classjava.lang.Object
-
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
-
-