|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BlockAxis
Warning: This interface is no longer functional from the SAP BusinessObjects 4.0 release onwards.
TheBlockAxis interface represents a collection of expressions, in a certain part of a block. Each block has its own parts
(axes), see the various BlockType sub-interfaces for a description.
| Method Summary | |
|---|---|
void |
addExpr(ReportExpression expr)
Adds an expression to this axis. |
BlockBreak |
getBlockBreak()
Gets an object representing any breaks on this axis. |
BlockSort |
getBlockSort()
Gets an object representing any sorts on this axis. |
int |
getCount()
Gets the number of expressions in this axis. |
ReportExpression |
getExpr(int index)
Returns the expression at the specified position in the axis. |
BlockCalculation |
getHBlockCalculation()
Gets an object representing any horizontal calculations on this axis. |
BlockCalculation |
getVBlockCalculation()
Gets an object representing any vertical calculations on this axis. |
void |
insertExpr(ReportExpression expr,
int index)
Inserts an expression in this axis. |
void |
removeAll()
Removes any expressions from this axis. |
void |
removeExpr(ReportExpression expr)
Removes all occurrences of an expression from this axis. |
void |
removeExprAt(int index)
Removes the expression at the given index. |
void |
replaceExprAt(int index,
ReportExpression newExpr)
Replaces the current expression at index by
newExpr. |
| Method Detail |
|---|
void addExpr(ReportExpression expr)
throws REException
Adds an expression to this axis. An expression can be added several times to the same axis.
Since version 6.5.0, it is possible to call this method with an aggregated formula or a variable based on one.
expr - the expression to add
ReportException - when expr is of an illegal type for this axis
ReportException - when expr is a measure and this
BlockAxis belongs to a section
ReportException - when this BlockAxis belongs to a
section and there already is an expression in this axis
java.lang.NullPointerException - when expr is null
REExceptionFormulaExpression.isAggregation()
void insertExpr(ReportExpression expr,
int index)
throws REException
Since version 6.5.0, it is possible to call this method with an aggregated formula or a variable based on one.
expr - the expression to addindex - the index to add the expression at
ReportException - when expr is of an illegal type for this axis
java.lang.ArrayIndexOutOfBoundsException - when index is invalid
java.lang.NullPointerException - when expr is null
REExceptionFormulaExpression.isAggregation()void removeExprAt(int index)
index - the index from which to remove an expression
java.lang.ArrayIndexOutOfBoundsException - when index is invalid
void replaceExprAt(int index,
ReportExpression newExpr)
throws REException
Replaces the current expression at index by
newExpr.
If this is the last occurrence of the current expression, any breaks or sorts based on that expression will be removed.
If this is an axis for a table with calculations and the
ObjectType of the current expression is different from the type
of newExpr, all calculations for the current expression at
index that would not be valid for the type of
newExpr will be removed.
If this is an axis for a section and there is a section cell, that cell will be updated too.
index - the index of the expression to replacenewExpr - the new expression to place at index
ReportException - when newExpr is of an illegal type
for this axis
java.lang.ArrayIndexOutOfBoundsException - when index is invalid
java.lang.NullPointerException - when newExpr is
null
REExceptionvoid removeExpr(ReportExpression expr)
BlockAxis.removeExprAt(int).
expr - The expression to remove. When the expression is not defined in this axis (or
expr is null), nothing happens.void removeAll()
int getCount()
ReportExpression getExpr(int index)
index - the index of the expression to return (0 based)
java.lang.ArrayIndexOutOfBoundsException - if index is out of range
(index < 0 || index >= getCount())BlockBreak getBlockBreak()
BlockSort getBlockSort()
BlockSort objects are shared between block axes, to be able
to correctly set priorities between the sort elements (the first created
is the most important sort).
BlockCalculation getVBlockCalculation()
BlockCalculation getHBlockCalculation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||