Package net.sf.jasperreports.engine.base
Class JRBaseField
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseField
-
- All Implemented Interfaces:
Serializable
,Cloneable
,JRChangeEventsSupport
,JRCloneable
,JRField
,JRPropertiesHolder
- Direct Known Subclasses:
JRDesignField
public class JRBaseField extends Object implements JRField, Serializable, JRChangeEventsSupport
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
description
protected String
name
protected JRPropertiesMap
propertiesMap
static String
PROPERTY_DESCRIPTION
protected Class<?>
valueClass
protected String
valueClassName
protected String
valueClassRealName
-
Constructor Summary
Constructors Modifier Constructor Description protected
JRBaseField()
protected
JRBaseField(JRField field, JRBaseObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
String
getDescription()
Gets the field optional description.JRPropertyChangeSupport
getEventSupport()
Returns the property change support object for this instance.String
getName()
Gets the field unique name.JRPropertiesHolder
getParentProperties()
Returns the parent properties holder, whose properties are used as defaults for this object.JRPropertiesMap
getPropertiesMap()
Returns this object's properties map.JRPropertyExpression[]
getPropertyExpressions()
Returns the list of dynamic/expression-based properties for this field.Class<?>
getValueClass()
Gets the field value class.String
getValueClassName()
Gets the field value class name.boolean
hasProperties()
Checks whether the object has any properties.void
setDescription(String description)
Sets the field description.
-
-
-
Field Detail
-
PROPERTY_DESCRIPTION
public static final String PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
name
protected String name
-
description
protected String description
-
valueClassName
protected String valueClassName
-
valueClassRealName
protected String valueClassRealName
-
valueClass
protected transient Class<?> valueClass
-
propertiesMap
protected JRPropertiesMap propertiesMap
-
-
Constructor Detail
-
JRBaseField
protected JRBaseField()
-
JRBaseField
protected JRBaseField(JRField field, JRBaseObjectFactory factory)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:JRField
Gets the field unique name.
-
getDescription
public String getDescription()
Description copied from interface:JRField
Gets the field optional description.- Specified by:
getDescription
in interfaceJRField
-
setDescription
public void setDescription(String description)
Description copied from interface:JRField
Sets the field description.- Specified by:
setDescription
in interfaceJRField
-
getValueClass
public Class<?> getValueClass()
Description copied from interface:JRField
Gets the field value class. Field types cannot be primitives.- Specified by:
getValueClass
in interfaceJRField
-
getValueClassName
public String getValueClassName()
Description copied from interface:JRField
Gets the field value class name.- Specified by:
getValueClassName
in interfaceJRField
-
hasProperties
public boolean hasProperties()
Description copied from interface:JRPropertiesHolder
Checks whether the object has any properties.- Specified by:
hasProperties
in interfaceJRPropertiesHolder
- Returns:
- whether the object has any properties
-
getPropertiesMap
public JRPropertiesMap getPropertiesMap()
Description copied from interface:JRPropertiesHolder
Returns this object's properties map.- Specified by:
getPropertiesMap
in interfaceJRPropertiesHolder
- Returns:
- this object's properties map
-
getParentProperties
public JRPropertiesHolder getParentProperties()
Description copied from interface:JRPropertiesHolder
Returns the parent properties holder, whose properties are used as defaults for this object.- Specified by:
getParentProperties
in interfaceJRPropertiesHolder
- Returns:
- the parent properties holder, or
null
if no parent
-
getPropertyExpressions
public JRPropertyExpression[] getPropertyExpressions()
Description copied from interface:JRField
Returns the list of dynamic/expression-based properties for this field.- Specified by:
getPropertyExpressions
in interfaceJRField
- Returns:
- an array containing the expression-based properties of this field
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classObject
-
getEventSupport
public JRPropertyChangeSupport getEventSupport()
Description copied from interface:JRChangeEventsSupport
Returns the property change support object for this instance.- Specified by:
getEventSupport
in interfaceJRChangeEventsSupport
- Returns:
- the property change support object for this instance
-
-