net.sf.jasperreports.engine.design
Class JRDesignParameter

java.lang.Object
  extended bynet.sf.jasperreports.engine.base.JRBaseParameter
      extended bynet.sf.jasperreports.engine.design.JRDesignParameter
All Implemented Interfaces:
JRParameter, java.io.Serializable

public class JRDesignParameter
extends JRBaseParameter

Version:
$Id: JRDesignParameter.java,v 1.29 2005/10/09 21:34:26 teodord Exp $
Author:
Teodor Danciu (teodord@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
static java.lang.String DEFAULT_VALUE_EXPRESSION
          Bean property name for default value expression.
static java.lang.String NAME_PROPERTY
          Bean property name for the parameter's name.
static java.lang.String PROMPTING_PROPERTY
          Bean property name for prompting.
static java.lang.String SYSTEM_DEFINED_PROPERTY
          Bean property name for system defined parameter.
static java.lang.String VALUE_CLASS_PROPERTY
          Bean property name for the value class name.
 
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseParameter
defaultValueExpression, description, isForPrompting, isSystemDefined, name, valueClass, valueClassName
 
Fields inherited from interface net.sf.jasperreports.engine.JRParameter
IS_IGNORE_PAGINATION, REPORT_CLASS_LOADER, REPORT_CONNECTION, REPORT_DATA_SOURCE, REPORT_LOCALE, REPORT_MAX_COUNT, REPORT_PARAMETERS_MAP, REPORT_RESOURCE_BUNDLE, REPORT_SCRIPTLET, REPORT_VIRTUALIZER
 
Constructor Summary
JRDesignParameter()
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
          Add a property listener to listen to all properties of this class.
 void addPropertyChangeListener(java.lang.String propName, java.beans.PropertyChangeListener l)
          Add a property listener to receive property change events for only one specific property.
protected  java.beans.PropertyChangeSupport getPropertyChangeSupport()
          Get the property change support object for this class.
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
          Remove a property change listener.
 void setDefaultValueExpression(JRExpression expression)
           
 void setForPrompting(boolean isForPrompting)
           
 void setName(java.lang.String name)
           
 void setSystemDefined(boolean isSystemDefined)
           
 void setValueClass(java.lang.Class clazz)
           
 void setValueClassName(java.lang.String className)
           
 
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseParameter
getDefaultValueExpression, getDescription, getName, getValueClass, getValueClassName, isForPrompting, isSystemDefined, setDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME_PROPERTY

public static final java.lang.String NAME_PROPERTY
Bean property name for the parameter's name.

See Also:
Constant Field Values

VALUE_CLASS_PROPERTY

public static final java.lang.String VALUE_CLASS_PROPERTY
Bean property name for the value class name.

See Also:
Constant Field Values

SYSTEM_DEFINED_PROPERTY

public static final java.lang.String SYSTEM_DEFINED_PROPERTY
Bean property name for system defined parameter.

See Also:
Constant Field Values

PROMPTING_PROPERTY

public static final java.lang.String PROMPTING_PROPERTY
Bean property name for prompting.

See Also:
Constant Field Values

DEFAULT_VALUE_EXPRESSION

public static final java.lang.String DEFAULT_VALUE_EXPRESSION
Bean property name for default value expression.

See Also:
Constant Field Values
Constructor Detail

JRDesignParameter

public JRDesignParameter()
Method Detail

setName

public void setName(java.lang.String name)

setValueClass

public void setValueClass(java.lang.Class clazz)

setValueClassName

public void setValueClassName(java.lang.String className)

setSystemDefined

public void setSystemDefined(boolean isSystemDefined)

setForPrompting

public void setForPrompting(boolean isForPrompting)

setDefaultValueExpression

public void setDefaultValueExpression(JRExpression expression)

getPropertyChangeSupport

protected java.beans.PropertyChangeSupport getPropertyChangeSupport()
Get the property change support object for this class. Because the property change support object has to be transient, it may need to be created.

Returns:
The property change support object.

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a property listener to listen to all properties of this class.

Parameters:
l - The property listener to add.

addPropertyChangeListener

public void addPropertyChangeListener(java.lang.String propName,
                                      java.beans.PropertyChangeListener l)
Add a property listener to receive property change events for only one specific property.

Parameters:
propName - The property to listen to.
l - The property listener to add.

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a property change listener. This will remove any listener that was added through either of the addPropertyListener methods.

Parameters:
l - The listener to remove.


© 2001-2005 JasperSoft Corporation www.jaspersoft.com