|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.tonbeller.jpivot.core.ExtensionSupport
com.tonbeller.jpivot.test.olap.TestExtensionSupport
com.tonbeller.jpivot.test.olap.TestSortRank
public class TestSortRank
Created on 24.10.2002
| Field Summary |
|---|
| Fields inherited from interface com.tonbeller.jpivot.olap.navi.SortRank |
|---|
ID |
| Fields inherited from interface com.tonbeller.jpivot.olap.model.ExpressionConstants |
|---|
ASC, BASC, BDESC, BOTTOMCOUNT, DESC, TOPCOUNT |
| Constructor Summary | |
|---|---|
TestSortRank()
|
|
| Method Summary | |
|---|---|
int |
getSortMode()
Returns the sortMode. |
int |
getTopBottomCount()
Returns the topBottomCount. |
boolean |
isCurrentSorting(Position position)
return true if the result is sorted by the members of the position |
boolean |
isSortable(Position position)
returns true, if one of the members is a measure |
boolean |
isSorting()
turns sorting on / off (off = natural sorting) |
void |
setSorting(boolean sorting)
Sets the enabled. |
void |
setSortMode(int sortMode)
Sets the sortMode. |
void |
setTopBottomCount(int topBottomCount)
Sets the topBottomCount. |
void |
sort(Axis membersToSort,
Position position)
changes current sorting. |
| Methods inherited from class com.tonbeller.jpivot.test.olap.TestExtensionSupport |
|---|
fireModelChanged, model |
| Methods inherited from class com.tonbeller.jpivot.core.ExtensionSupport |
|---|
decorate, getId, getModel, modelInitialized, setId, setModel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.tonbeller.jpivot.core.Extension |
|---|
decorate, getId, modelInitialized, setModel |
| Constructor Detail |
|---|
public TestSortRank()
| Method Detail |
|---|
public boolean isSortable(Position position)
isSortable in interface SortRankpublic boolean isCurrentSorting(Position position)
SortRank
isCurrentSorting in interface SortRankSortRank.isCurrentSorting(Position)
public void sort(Axis membersToSort,
Position position)
SortRankmode is TOPCOUNT
or BOTTOMCOUNT the current value of topBottomCount will be
used.
sort in interface SortRankmembersToSort - the axis to sort. Its one of the "other" axes, that do not
contain positionposition - the sort criteriaSortRank.sort(Axis, Position)public int getSortMode()
getSortMode in interface SortRankpublic int getTopBottomCount()
getTopBottomCount in interface SortRankpublic void setSortMode(int sortMode)
setSortMode in interface SortRanksortMode - The sortMode to setpublic void setTopBottomCount(int topBottomCount)
setTopBottomCount in interface SortRanktopBottomCount - The topBottomCount to setpublic boolean isSorting()
SortRank
isSorting in interface SortRankpublic void setSorting(boolean sorting)
setSorting in interface SortRankenabled - The enabled to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||