|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.crosstabs.base.JRBaseCrosstabBucket
public class JRBaseCrosstabBucket
Base read-only implementation of JRCrosstabBucket
.
Field Summary | |
---|---|
protected JRExpression |
comparatorExpression
|
protected JRExpression |
expression
|
protected JRExpression |
orderByExpression
|
protected SortOrderEnum |
orderValue
|
protected java.lang.Class<?> |
valueClass
|
protected java.lang.String |
valueClassName
|
protected java.lang.String |
valueClassRealName
|
Constructor Summary | |
---|---|
protected |
JRBaseCrosstabBucket()
|
|
JRBaseCrosstabBucket(JRCrosstabBucket bucket,
JRBaseObjectFactory factory)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
JRExpression |
getComparatorExpression()
Returns the comparator expression. |
JRExpression |
getExpression()
Returns the grouping expression. |
JRExpression |
getOrderByExpression()
Returns an expression that provides order by values for group buckets. |
SortOrderEnum |
getOrderValue()
Returns the bucket sorting type. |
java.lang.Class<?> |
getValueClass()
Returns the class of the bucket value. |
java.lang.String |
getValueClassName()
Returns the string name of the bucket value class. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String valueClassName
protected java.lang.String valueClassRealName
protected java.lang.Class<?> valueClass
protected SortOrderEnum orderValue
protected JRExpression expression
protected JRExpression orderByExpression
protected JRExpression comparatorExpression
Constructor Detail |
---|
protected JRBaseCrosstabBucket()
public JRBaseCrosstabBucket(JRCrosstabBucket bucket, JRBaseObjectFactory factory)
Method Detail |
---|
public java.lang.String getValueClassName()
JRCrosstabBucket
getValueClassName
in interface JRCrosstabBucket
public SortOrderEnum getOrderValue()
JRCrosstabBucket
The possible values are:
getOrderValue
in interface JRCrosstabBucket
public JRExpression getExpression()
JRCrosstabBucket
getExpression
in interface JRCrosstabBucket
public JRExpression getOrderByExpression()
JRCrosstabBucket
JRCrosstabBucket.getExpression()
are used to order the buckets.
The expression is evaluated in the context of the crosstab group and can reference measure variables, which evaluate to group totals.
getOrderByExpression
in interface JRCrosstabBucket
public JRExpression getComparatorExpression()
JRCrosstabBucket
The result of this expression is used to sort the buckets, in ascending or
descending order (given by getOrderValue()
.
If the bucket has an order by expression, the comparator will be used to
compare values as produced by that expression.
If no comparator expression is specified, the natural order will be used.
getComparatorExpression
in interface JRCrosstabBucket
JRCrosstabBucket.getOrderByExpression()
public java.lang.Class<?> getValueClass()
JRCrosstabBucket
getValueClass
in interface JRCrosstabBucket
public java.lang.Object clone()
clone
in interface JRCloneable
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |