net.sf.jasperreports.engine.base
Class JRBaseField

java.lang.Object
  extended by 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

Version:
$Id: JRBaseField.java 5180 2012-03-29 13:23:12Z teodord $
Author:
Teodor Danciu (teodord@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
protected  String description
           
protected  String name
           
protected  JRPropertiesMap propertiesMap
           
static String PROPERTY_DESCRIPTION
           
protected  Class<?> valueClass
           
protected  String valueClassName
           
protected  String valueClassRealName
           
 
Constructor Summary
protected JRBaseField()
           
protected JRBaseField(JRField field, JRBaseObjectFactory factory)
           
 
Method Summary
 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.
 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.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

Specified by:
getName in interface JRField

getDescription

public String getDescription()
Description copied from interface: JRField
Gets the field optional description.

Specified by:
getDescription in interface JRField

setDescription

public void setDescription(String description)
Description copied from interface: JRField
Sets the field description.

Specified by:
setDescription in interface JRField

getValueClass

public Class<?> getValueClass()
Description copied from interface: JRField
Gets the field value class. Field types cannot be primitives.

Specified by:
getValueClass in interface JRField

getValueClassName

public String getValueClassName()
Description copied from interface: JRField
Gets the field value class name.

Specified by:
getValueClassName in interface JRField

hasProperties

public boolean hasProperties()
Description copied from interface: JRPropertiesHolder
Checks whether the object has any properties.

Specified by:
hasProperties in interface JRPropertiesHolder
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 interface JRPropertiesHolder
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 interface JRPropertiesHolder
Returns:
the parent properties holder, or null if no parent

clone

public Object clone()
Specified by:
clone in interface JRCloneable
Overrides:
clone in class Object

getEventSupport

public JRPropertyChangeSupport getEventSupport()
Description copied from interface: JRChangeEventsSupport
Returns the property change support object for this instance.

Specified by:
getEventSupport in interface JRChangeEventsSupport
Returns:
the property change support object for this instance


Copyright © 2012. All Rights Reserved.