Class DesignDataLevelBucket
- java.lang.Object
-
- net.sf.jasperreports.engine.analytics.dataset.BaseDataLevelBucket
-
- net.sf.jasperreports.engine.analytics.dataset.DesignDataLevelBucket
-
- All Implemented Interfaces:
Serializable
,Cloneable
,DataLevelBucket
,JRChangeEventsSupport
,JRCloneable
public class DesignDataLevelBucket extends BaseDataLevelBucket implements JRChangeEventsSupport
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_BUCKET_PROPERTIES
static String
PROPERTY_COMPARATOR_EXPRESSION
static String
PROPERTY_EXPRESSION
static String
PROPERTY_LABEL_EXPRESSION
static String
PROPERTY_ORDER
static String
PROPERTY_VALUE_CLASS
-
Fields inherited from class net.sf.jasperreports.engine.analytics.dataset.BaseDataLevelBucket
bucketProperties, comparatorExpression, EXCEPTION_MESSAGE_KEY_BUCKET_LOAD_ERROR, expression, labelExpression, order, valueClass, valueClassName, valueClassRealName
-
-
Constructor Summary
Constructors Constructor Description DesignDataLevelBucket()
Creates a bucket.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBucketProperty(DataLevelBucketProperty property)
Object
clone()
JRPropertyChangeSupport
getEventSupport()
Returns the property change support object for this instance.void
removeBucketProperty(DataLevelBucketProperty property)
void
setComparatorExpression(JRExpression comparatorExpression)
Sets the comparator expression.void
setExpression(JRExpression expression)
Sets the grouping expression.void
setLabelExpression(JRExpression expression)
Sets the label expression.void
setOrder(BucketOrder order)
Sets the sorting type.void
setValueClassName(String valueClassName)
Sets the bucket value class name.-
Methods inherited from class net.sf.jasperreports.engine.analytics.dataset.BaseDataLevelBucket
getBucketProperties, getComparatorExpression, getExpression, getLabelExpression, getOrder, getValueClass, getValueClassName
-
-
-
-
Field Detail
-
PROPERTY_COMPARATOR_EXPRESSION
public static final String PROPERTY_COMPARATOR_EXPRESSION
- See Also:
- Constant Field Values
-
PROPERTY_EXPRESSION
public static final String PROPERTY_EXPRESSION
- See Also:
- Constant Field Values
-
PROPERTY_LABEL_EXPRESSION
public static final String PROPERTY_LABEL_EXPRESSION
- See Also:
- Constant Field Values
-
PROPERTY_ORDER
public static final String PROPERTY_ORDER
- See Also:
- Constant Field Values
-
PROPERTY_VALUE_CLASS
public static final String PROPERTY_VALUE_CLASS
- See Also:
- Constant Field Values
-
PROPERTY_BUCKET_PROPERTIES
public static final String PROPERTY_BUCKET_PROPERTIES
- See Also:
- Constant Field Values
-
-
Method Detail
-
setComparatorExpression
public void setComparatorExpression(JRExpression comparatorExpression)
Sets the comparator expression.The expressions's type should be compatible with
java.util.Comparator
.- Parameters:
comparatorExpression
- the comparator expression- See Also:
DataLevelBucket.getComparatorExpression()
-
setExpression
public void setExpression(JRExpression expression)
Sets the grouping expression.- Parameters:
expression
- the grouping expression- See Also:
DataLevelBucket.getExpression()
-
setLabelExpression
public void setLabelExpression(JRExpression expression)
Sets the label expression.- Parameters:
expression
- the label expression- See Also:
DataLevelBucket.getLabelExpression()
-
setOrder
public void setOrder(BucketOrder order)
Sets the sorting type.- Parameters:
order
- one of- See Also:
DataLevelBucket.getOrder()
-
setValueClassName
public void setValueClassName(String valueClassName)
Sets the bucket value class name.- Parameters:
valueClassName
- the bucket value class name- See Also:
DataLevelBucket.getValueClassName()
-
addBucketProperty
public void addBucketProperty(DataLevelBucketProperty property)
-
removeBucketProperty
public void removeBucketProperty(DataLevelBucketProperty property)
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classBaseDataLevelBucket
-
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
-
-