net.sf.jasperreports.crosstabs.base
Class JRBaseCrosstabBucket

java.lang.Object
  extended by net.sf.jasperreports.crosstabs.base.JRBaseCrosstabBucket
All Implemented Interfaces:
java.io.Serializable, JRCrosstabBucket
Direct Known Subclasses:
JRDesignCrosstabBucket

public class JRBaseCrosstabBucket
extends java.lang.Object
implements JRCrosstabBucket, java.io.Serializable

Base read-only implementation of JRCrosstabBucket.

Version:
$Id: JRBaseCrosstabBucket.java 1229 2006-04-19 10:27:35Z teodord $
Author:
Lucian Chirita (lucianc@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
protected  JRExpression comparatorExpression
           
protected  JRExpression expression
           
protected  byte order
           
 
Constructor Summary
protected JRBaseCrosstabBucket()
           
  JRBaseCrosstabBucket(JRCrosstabBucket bucket, JRBaseObjectFactory factory)
           
 
Method Summary
 JRExpression getComparatorExpression()
          Returns the comparator expression.
 JRExpression getExpression()
          Returns the grouping expression.
 byte getOrder()
          Returns the bucket sorting type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

order

protected byte order

expression

protected JRExpression expression

comparatorExpression

protected JRExpression comparatorExpression
Constructor Detail

JRBaseCrosstabBucket

protected JRBaseCrosstabBucket()

JRBaseCrosstabBucket

public JRBaseCrosstabBucket(JRCrosstabBucket bucket,
                            JRBaseObjectFactory factory)
Method Detail

getOrder

public byte getOrder()
Description copied from interface: JRCrosstabBucket
Returns the bucket sorting type.

The possible values are:

Specified by:
getOrder in interface JRCrosstabBucket
Returns:
the bucket sorting type

getExpression

public JRExpression getExpression()
Description copied from interface: JRCrosstabBucket
Returns the grouping expression.

Specified by:
getExpression in interface JRCrosstabBucket
Returns:
the grouping expression

getComparatorExpression

public JRExpression getComparatorExpression()
Description copied from interface: JRCrosstabBucket
Returns the comparator expression.

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

Specified by:
getComparatorExpression in interface JRCrosstabBucket
Returns:
the comparator expression


© 2001-2006 JasperSoft Corporation www.jaspersoft.com