|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BlockBreak
Warning: This interface is no longer functional from the SAP BusinessObjects 4.0 release onwards.
TheBlockBreak
interface is a collection of all breaks in an
axis.
Method Summary | |
---|---|
BreakElement |
createBreakElement(ReportExpression expr)
Creates a break on a report expression. |
boolean |
equals(java.lang.Object o)
Compares the specified Object o with this BlockBreak for
equality. |
BreakElement |
findBreak(ReportExpression expr)
Search for the break element matching a given expression. |
BreakElement |
getBreakElement(int index)
Returns the break element at the specified position. |
int |
getCount()
Returns the number of breaks in this axis. |
void |
move(int fromIndex,
int toIndex)
Moves a break from one place to another in the hierarchy. |
void |
removeAll()
Removes all breaks in this axis. |
void |
removeBreak(int index)
Remove a break element at a given index. |
void |
removeBreak(ReportExpression expr)
Remove any break element for an expression. |
Method Detail |
---|
BreakElement createBreakElement(ReportExpression expr) throws REException
Creates a break on a report expression. If there is already a break on that expression, the old break element is replaced by the new one.
The break value in the footer is always placed relative to the first
occurrence of expr
in this BlockAxis
.
expr
- the expression to create a break on
ReportException
- when expr
is not in the axis
java.lang.NullPointerException
- when expr
is null
REException
void removeBreak(ReportExpression expr)
expr
(in this BlockBreak
, or when
expr == null
, nothing happens.
expr
- the break expression to be removed.void removeBreak(int index)
index
- the index of the break to be removed.
ArrayIndexOutOfBoundException
- when index
is out of range (index < 0 || index >= getCount()
)void removeAll()
int getCount()
BreakElement getBreakElement(int index)
index
- the index of the break element to return (0 based)
java.lang.ArrayIndexOutOfBoundsException
- if index
is out of range (index < 0 || index >= getCount()
)BreakElement findBreak(ReportExpression expr)
expr
- the expression to be searched for.
BreakElement.getExpression()
.equals(expr)
,
or null
when expr
could not be
foundvoid move(int fromIndex, int toIndex)
fromIndex
- the index of the break to move.toIndex
- the index to which break will be moved.
java.lang.IndexOutOfBoundsException
- when fromIndex
or toIndex
are
invalidboolean equals(java.lang.Object o)
o
with this BlockBreak for
equality. Returns true
if and only if the specified Object
is also a BlockBreak and has the same BreakElement
s, in
the same order.
equals
in class java.lang.Object
o
- the Object to be compared for equality with this BlockBreak
true
if the specified Object is equal to this
BlockBreak
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |