|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 SortRank
public boolean isCurrentSorting(Position position)
SortRank
isCurrentSorting
in interface SortRank
SortRank.isCurrentSorting(Position)
public void sort(Axis membersToSort, Position position)
SortRank
mode
is TOPCOUNT
or BOTTOMCOUNT
the current value of topBottomCount
will be
used.
sort
in interface SortRank
membersToSort
- 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 SortRank
public int getTopBottomCount()
getTopBottomCount
in interface SortRank
public void setSortMode(int sortMode)
setSortMode
in interface SortRank
sortMode
- The sortMode to setpublic void setTopBottomCount(int topBottomCount)
setTopBottomCount
in interface SortRank
topBottomCount
- The topBottomCount to setpublic boolean isSorting()
SortRank
isSorting
in interface SortRank
public void setSorting(boolean sorting)
setSorting
in interface SortRank
enabled
- The enabled to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |