|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BlockSort
Warning: This interface is no longer functional from the SAP BusinessObjects 4.0 release onwards.
TheBloackSort is a collection of all sorts in an axis. Note
that one BlockSort can be shared between several
BlockAxis. See BlockAxis.getBlockSort() for more
details.
| Method Summary | |
|---|---|
SortElement |
createSortElement(ReportExpression expr,
SortType type)
Create a sort on a report expression. |
boolean |
equals(java.lang.Object o)
Compares the specified Object o with this BlockSort for
equality. |
SortElement |
findSort(ReportExpression expr)
Searches for a sort element matching a given expression. |
int |
getCount()
Returns the number of sorts in this axis. |
SortElement |
getSortElement(int index)
Returns the sort element at the specified position. |
boolean |
isHorizontal()
Returns true if the sort list is horizontal to the corresponding block. |
void |
move(int fromIndex,
int toIndex)
Moves a sort element from one place to another in the hierarchy. |
void |
removeAll()
Removes all sorts in this axis. |
void |
removeSort(int index)
Remove a sort element at a given index. |
void |
removeSort(ReportExpression expr)
Remove the sort element that matches the expression expr. |
| Method Detail |
|---|
SortElement createSortElement(ReportExpression expr,
SortType type)
throws REException
expr - The expression to create a sort on.
ReportException - when expr is not in the axis
java.lang.NullPointerException - when expr is null
REExceptionvoid removeSort(ReportExpression expr)
expr.
No action occurs if there is no sort on expr in this
BlockSort, or expr == null.
expr - the sort expression to be removed.void removeSort(int index)
index - the index at which to remove the sort
java.lang.ArrayIndexOutOfBoundsException - when index is out of range (index < 0 || index >= getCount())void removeAll()
BlockSort object could represent
sorts for several BlockAxis.
int getCount()
SortElement getSortElement(int index)
index - the index of the sort element to return (0 based)
java.lang.ArrayIndexOutOfBoundsException - if index is out of range (index < 0 || index >= getCount())SortElement findSort(ReportExpression expr)
expr - the expression to look for
SortElement.getExpression().equals(expr),
or null when expr could not be
foundboolean isHorizontal()
false.
true if this sort list is horizontalBlockAxis.getBlockSort(),
ReportBlock.getBlockSort(boolean)
void move(int fromIndex,
int toIndex)
fromIndex - the index of the sort element to move.toIndex - the index to which the sort is to be moved.
java.lang.IndexOutOfBoundsException - when fromIndex or toIndex are
invalid.boolean equals(java.lang.Object o)
o with this BlockSort for
equality. Returns true if and only if the specified Object
is also a BlockSort and has the same SortElements, in the
same order.
equals in class java.lang.Objecto - the Object to be compared for equality with this BlockSort
true if the specified Object is equal to this
BlockSort
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||