|
|||||||||
| 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.olap.query.SortRankBase
public abstract class SortRankBase
| Field Summary | |
|---|---|
protected Quax |
quaxToSort
|
protected boolean |
sorting
|
protected int |
sortMode
|
protected Member[] |
sortPosMembers
|
protected int |
topBottomCount
|
| 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 | |
|---|---|
SortRankBase()
|
|
| Method Summary | |
|---|---|
int |
activeQuaxToSort()
|
abstract void |
addSortToQuery()
apply sort to query must be implemented for specific olap sources |
int |
getQuaxToSort()
|
int |
getSortMode()
|
Member[] |
getSortPosMembers()
|
int |
getTopBottomCount()
number of members for topcount and bottomcount |
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) |
boolean |
isSortOnQuery()
|
void |
quaxChanged(Quax quax,
java.lang.Object source,
boolean changedByNavi)
implement QuaxChangeListener |
void |
reset()
reset to initial state |
void |
setQuaxToSort(int ordinal)
set quax to sort |
void |
setSorting(boolean sorting)
|
void |
setSortMode(int sortMode)
|
void |
setSortPosMembers(Member[] sortPosMembers)
|
void |
setTopBottomCount(int topBottomCount)
|
void |
sort(Axis membersToSort,
Position position)
changes current sorting. |
| 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 |
| Field Detail |
|---|
protected int topBottomCount
protected int sortMode
protected boolean sorting
protected Member[] sortPosMembers
protected Quax quaxToSort
| Constructor Detail |
|---|
public SortRankBase()
| Method Detail |
|---|
public void quaxChanged(Quax quax,
java.lang.Object source,
boolean changedByNavi)
quaxChanged in interface QuaxChangeListenerpublic int getTopBottomCount()
SortRank
getTopBottomCount in interface SortRankSortRank.getTopBottomCount()public void setTopBottomCount(int topBottomCount)
setTopBottomCount in interface SortRanktop/bottom - countcom.tonbeller.jpivot.mondrian.olap.navi.SortRank#setTopBottomCount(int)public int getSortMode()
getSortMode in interface SortRankSortRank.getSortMode()public void setSortMode(int sortMode)
setSortMode in interface SortRanksort - mode (ASC,DESC,BASC,BDESC)SortRank.setSortMode(int)public boolean isCurrentSorting(Position position)
SortRank
isCurrentSorting in interface SortRankposition - to be checked
SortRank.isCurrentSorting(Position)public boolean isSortable(Position position)
isSortable in interface SortRankposition - the position to check for sortability
SortRank.isSortable(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 - Axis containing the members to be sortedposition - Position on "other axis" defining the members by which
the membersToSort are sortedSortRank.sort(Axis, Position)public boolean isSorting()
SortRank
isSorting in interface SortRankpublic void setSorting(boolean sorting)
setSorting in interface SortRankpublic void reset()
public Member[] getSortPosMembers()
public void setSortPosMembers(Member[] sortPosMembers)
members - public abstract void addSortToQuery()
public int getQuaxToSort()
public int activeQuaxToSort()
public void setQuaxToSort(int ordinal)
public boolean isSortOnQuery()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||