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 JRDesignVariablestatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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 TypeMethodDescriptionvoidAdd a property listener to listen to all properties of this class.voidaddPropertyChangeListener(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 PropertyChangeSupportGet the property change support object for this class.voidRemove a property change listener registered for all properties.voidremovePropertyChangeListener(String propName, PropertyChangeListener l) Remove a property change listener registered for a specific property.voidsetCalculation(CalculationEnum calculation) Sets the calculation type.voidsetIncrementerFactoryClassName(String incrementerFactoryClassName) Sets the incrementer factory class name.voidSets the measure name.voidsetPercentageCalculatorClassName(String percentageCalculatorClassName) Sets the percentage calculator class name.voidsetPercentageType(CrosstabPercentageEnum percentageType) Sets the percentage calculation type.voidsetValueClassName(String valueClassName) Sets the measure value class name.voidsetValueExpression(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:
clonein interfaceJRCloneable- Overrides:
clonein classJRBaseCrosstabMeasure
-
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
-