Class JRDesignCrosstabMeasure
java.lang.Object
net.sf.jasperreports.crosstabs.base.JRBaseCrosstabMeasure
net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure
- All Implemented Interfaces:
Serializable
,Cloneable
,CrosstabBaseCloneable
,JRCrosstabMeasure
,JRChangeEventsSupport
,JRCloneable
Crosstab measure implementation to be used for report designing.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JRDesignVariable
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class net.sf.jasperreports.crosstabs.base.JRBaseCrosstabMeasure
calculation, EXCEPTION_MESSAGE_KEY_MEASURE_INCREMENTER_CLASS_LOAD_ERROR, EXCEPTION_MESSAGE_KEY_MEASURE_PERCENTAGE_CALCULATOR_CLASS_LOAD_ERROR, EXCEPTION_MESSAGE_KEY_MEASURE_VALUE_CLASS_LOAD_ERROR, expression, incrementerFactoryClass, incrementerFactoryClassName, incrementerFactoryClassRealName, name, percentageCalculatorClass, percentageCalculatorClassName, percentageCalculatorClassRealName, percentageType, valueClass, valueClassName, valueClassRealName, variable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a property listener to listen to all properties of this class.void
addPropertyChangeListener
(String propName, PropertyChangeListener l) Add a property listener to receive property change events for only one specific property.clone()
Returns the property change support object for this instance.protected PropertyChangeSupport
Get the property change support object for this class.void
Remove a property change listener registered for all properties.void
removePropertyChangeListener
(String propName, PropertyChangeListener l) Remove a property change listener registered for a specific property.void
setCalculation
(CalculationEnum calculation) Sets the calculation type.void
setIncrementerFactoryClassName
(String incrementerFactoryClassName) Sets the incrementer factory class name.void
Sets the measure name.void
setPercentageCalculatorClassName
(String percentageCalculatorClassName) Sets the percentage calculator class name.void
setPercentageType
(CrosstabPercentageEnum percentageType) Sets the percentage calculation type.void
setValueClassName
(String valueClassName) Sets the measure value class name.void
setValueExpression
(JRExpression expression) Sets the measure value expression.Methods inherited from class net.sf.jasperreports.crosstabs.base.JRBaseCrosstabMeasure
clone, getCalculation, getIncrementerFactoryClass, getIncrementerFactoryClassName, getName, getPercentageCalculatorClass, getPercentageCalculatorClassName, getPercentageType, getValueClass, getValueClassName, getValueExpression, getVariable
-
Field Details
-
PROPERTY_CALCULATION
- See Also:
-
PROPERTY_INCREMENTER_FACTORY_CLASS_NAME
- See Also:
-
PROPERTY_NAME
- See Also:
-
PROPERTY_PERCENTAGE_CALCULATION_CLASS_NAME
- See Also:
-
PROPERTY_PERCENTAGE_OF_TYPE
- See Also:
-
PROPERTY_VALUE_CLASS
- See Also:
-
PROPERTY_VALUE_EXPRESSION
- See Also:
-
designVariable
-
-
Constructor Details
-
JRDesignCrosstabMeasure
public JRDesignCrosstabMeasure()Creates a crosstab measure.
-
-
Method Details
-
setCalculation
Sets the calculation type.- Parameters:
calculation
- the calculation type- See Also:
-
setValueExpression
Sets the measure value expression.- Parameters:
expression
- the measure value expression.- See Also:
-
setIncrementerFactoryClassName
Sets the incrementer factory class name.- Parameters:
incrementerFactoryClassName
- the incrementer factory class name- See Also:
-
setName
Sets the measure name.- Parameters:
name
- the measure name- See Also:
-
setPercentageType
Sets the percentage calculation type.- Parameters:
percentageType
- the percentage calculation type- See Also:
-
setPercentageCalculatorClassName
Sets the percentage calculator class name.- Parameters:
percentageCalculatorClassName
- the percentage calculator class name- See Also:
-
setValueClassName
Sets the measure value class name.- Parameters:
valueClassName
- the measure value class name- See Also:
-
addPropertyChangeListener
Add a property listener to listen to all properties of this class.- Parameters:
l
- The property listener to add.- See Also:
-
addPropertyChangeListener
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.- See Also:
-
removePropertyChangeListener
Remove a property change listener registered for all properties. This will only remove listeners that were added through theaddPropertyChangeListener(PropertyChangeListener)
method.- Parameters:
l
- The listener to remove.
-
removePropertyChangeListener
Remove a property change listener registered for a specific property.- Parameters:
propName
- The property to listen to.l
- The listener to remove.
-
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.
-
clone
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classJRBaseCrosstabMeasure
-
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
-