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 StringPROPERTY_BUCKET_PROPERTIESstatic StringPROPERTY_COMPARATOR_EXPRESSIONstatic StringPROPERTY_EXPRESSIONstatic StringPROPERTY_LABEL_EXPRESSIONstatic StringPROPERTY_ORDERstatic StringPROPERTY_VALUE_CLASS-
Fields inherited from class net.sf.jasperreports.engine.analytics.dataset.BaseDataLevelBucket
bucketProperties, comparatorExpression, EXCEPTION_MESSAGE_KEY_BUCKET_LOAD_ERROR, expression, labelExpression, order, orderValue, 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 voidaddBucketProperty(DataLevelBucketProperty property)Objectclone()JRPropertyChangeSupportgetEventSupport()Returns the property change support object for this instance.voidremoveBucketProperty(DataLevelBucketProperty property)voidsetComparatorExpression(JRExpression comparatorExpression)Sets the comparator expression.voidsetExpression(JRExpression expression)Sets the grouping expression.voidsetLabelExpression(JRExpression expression)Sets the label expression.voidsetOrder(BucketOrder order)Sets the sorting type.voidsetValueClassName(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:
clonein interfaceJRCloneable- Overrides:
clonein classBaseDataLevelBucket
-
getEventSupport
public JRPropertyChangeSupport 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
-
-