net.sf.jasperreports.crosstabs
Interface JRCrosstabBucket

All Known Implementing Classes:
JRBaseCrosstabBucket

public interface JRCrosstabBucket

Crosstab groups bucketing information interface.

The bucketing informartion consists of the grouping expression and sorting information. The buckets can be sorted according to the natural sorting (if the values implement Comparable) or using a comparator.

Version:
$Id: JRCrosstabBucket.java,v 1.2 2005/11/28 09:20:43 teodord Exp $
Author:
Lucian Chirita (lucianc@users.sourceforge.net)

Method Summary
 JRExpression getComparatorExpression()
          Returns the comparator expression.
 JRExpression getExpression()
          Returns the grouping expression.
 byte getOrder()
          Returns the bucket sorting type.
 

Method Detail

getOrder

public byte getOrder()
Returns the bucket sorting type.

The possible values are:

Returns:
the bucket sorting type

getExpression

public JRExpression getExpression()
Returns the grouping expression.

Returns:
the grouping expression

getComparatorExpression

public JRExpression getComparatorExpression()
Returns the comparator expression.

The result of this expression is used to sort the buckets, in ascending or descending order (given by getOrder().

Returns:
the comparator expression


© 2001-2005 JasperSoft Corporation www.jaspersoft.com