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
public class JRDesignCrosstabMeasure extends JRBaseCrosstabMeasure implements JRChangeEventsSupport
Crosstab measure implementation to be used for report designing.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JRDesignVariable
designVariable
static String
PROPERTY_CALCULATION
static String
PROPERTY_INCREMENTER_FACTORY_CLASS_NAME
static String
PROPERTY_NAME
static String
PROPERTY_PERCENTAGE_CALCULATION_CLASS_NAME
static String
PROPERTY_PERCENTAGE_OF_TYPE
static String
PROPERTY_VALUE_CLASS
static String
PROPERTY_VALUE_EXPRESSION
-
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 Constructor Description JRDesignCrosstabMeasure()
Creates a crosstab measure.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPropertyChangeListener(PropertyChangeListener l)
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.Object
clone()
JRPropertyChangeSupport
getEventSupport()
Returns the property change support object for this instance.protected PropertyChangeSupport
getPropertyChangeSupport()
Get the property change support object for this class.void
removePropertyChangeListener(PropertyChangeListener l)
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
setName(String name)
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 Detail
-
PROPERTY_CALCULATION
public static final String PROPERTY_CALCULATION
- See Also:
- Constant Field Values
-
PROPERTY_INCREMENTER_FACTORY_CLASS_NAME
public static final String PROPERTY_INCREMENTER_FACTORY_CLASS_NAME
- See Also:
- Constant Field Values
-
PROPERTY_NAME
public static final String PROPERTY_NAME
- See Also:
- Constant Field Values
-
PROPERTY_PERCENTAGE_CALCULATION_CLASS_NAME
public static final String PROPERTY_PERCENTAGE_CALCULATION_CLASS_NAME
- See Also:
- Constant Field Values
-
PROPERTY_PERCENTAGE_OF_TYPE
public static final String PROPERTY_PERCENTAGE_OF_TYPE
- See Also:
- Constant Field Values
-
PROPERTY_VALUE_CLASS
public static final String PROPERTY_VALUE_CLASS
- See Also:
- Constant Field Values
-
PROPERTY_VALUE_EXPRESSION
public static final String PROPERTY_VALUE_EXPRESSION
- See Also:
- Constant Field Values
-
designVariable
protected JRDesignVariable designVariable
-
-
Method Detail
-
setCalculation
public void setCalculation(CalculationEnum calculation)
Sets the calculation type.- Parameters:
calculation
- the calculation type- See Also:
JRCrosstabMeasure.getCalculation()
-
setValueExpression
public void setValueExpression(JRExpression expression)
Sets the measure value expression.- Parameters:
expression
- the measure value expression.- See Also:
JRCrosstabMeasure.getValueExpression()
-
setIncrementerFactoryClassName
public void setIncrementerFactoryClassName(String incrementerFactoryClassName)
Sets the incrementer factory class name.- Parameters:
incrementerFactoryClassName
- the incrementer factory class name- See Also:
JRCrosstabMeasure.getIncrementerFactoryClassName()
-
setName
public void setName(String name)
Sets the measure name.- Parameters:
name
- the measure name- See Also:
JRCrosstabMeasure.getName()
-
setPercentageType
public void setPercentageType(CrosstabPercentageEnum percentageType)
Sets the percentage calculation type.- Parameters:
percentageType
- the percentage calculation type- See Also:
JRCrosstabMeasure.getPercentageType()
-
setPercentageCalculatorClassName
public void setPercentageCalculatorClassName(String percentageCalculatorClassName)
Sets the percentage calculator class name.- Parameters:
percentageCalculatorClassName
- the percentage calculator class name- See Also:
JRCrosstabMeasure.getPercentageCalculatorClassName()
-
setValueClassName
public void setValueClassName(String valueClassName)
Sets the measure value class name.- Parameters:
valueClassName
- the measure value class name- See Also:
JRCrosstabMeasure.getValueClassName()
-
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener l)
Add a property listener to listen to all properties of this class.- Parameters:
l
- The property listener to add.- See Also:
removePropertyChangeListener(PropertyChangeListener)
-
addPropertyChangeListener
public void addPropertyChangeListener(String propName, 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.- See Also:
removePropertyChangeListener(String, PropertyChangeListener)
-
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener l)
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
public void removePropertyChangeListener(String propName, PropertyChangeListener l)
Remove a property change listener registered for a specific property.- Parameters:
propName
- The property to listen to.l
- The listener to remove.
-
getPropertyChangeSupport
protected 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.
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classJRBaseCrosstabMeasure
-
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
-
-