|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RankingSelectorInterface
Represents an adapter for the Ranking Selector.
RankingCommand
Field Summary | |
---|---|
static int |
NO_RANK
Constant value indicating that a ranking is not applied for a specific data item. |
Method Summary | |
---|---|
int |
countRankTypeValue()
Returns the value associated to the "Count" ranking type. |
java.lang.String |
dataItemRankStatus(java.lang.String dataItemID)
Returns the localized string describing the rank status for a DataItem. |
java.lang.String |
getIncludeTies()
Says if the ties are included. |
java.lang.String |
getIncludeTies(java.lang.String dataItemID)
Given a data item id says if the ties are included in the ranking. |
java.util.Locale |
getLocale()
Returns the locale used by the adapter. |
java.lang.String |
getLocalizedInfoText(java.lang.String rankOrder,
int rankValue,
int rankType,
java.lang.String includeTies,
java.lang.String basedOnDesc)
Returns the localized string describing a rank status. |
java.lang.String |
getLocalizedText(java.lang.String text)
Returns the localized version of a text using the locale currently set on adapter and the related resource bundle. |
java.lang.Object |
getModel()
Return the model that contains the data. |
boolean |
includeTies()
Deprecated. replaced by getIncludeTies() |
void |
includeTies(boolean isIncludeTies)
Deprecated. replaced by setIncludeTies() |
boolean |
includeTies(java.lang.String dataItemID)
Deprecated. replaced by getIncludeTies(String dataItemID) |
boolean |
percentageRanking()
Says if the ranking is percentage or absolute. |
void |
percentageRanking(boolean isPercentage)
Sets the type of ranking to either percentage or absolute. |
int |
rankingCount()
Returns the amount of elements to rank. |
void |
rankingCount(int count)
Sets the amount of elements to rank. |
java.lang.String |
rankOrder(java.lang.String dataItemID)
Given a data item id return the associated rank order |
int |
rankType()
Returns the rank type. |
void |
rankType(int rankType)
Sets the rank type. |
int |
rankType(java.lang.String dataItemID)
Given a data item id return the associated rank type. |
java.util.Map |
rankTypes()
Returns the list of the available rank types. |
int |
rankValue(java.lang.String dataItemID)
Given a data item id return the associated rank value. |
void |
setIncludeTies(java.lang.String isIncludeTies)
Sets if the ties are included. |
void |
setLocale(java.util.Locale locale)
Sets the locale used by the adapter. |
void |
setModel(java.lang.Object model)
Set the model that contains the data. |
boolean |
topRanking()
Says if the ranking is top or bottom. |
void |
topRanking(boolean isTop)
Sets the type of ranking to either top or bottom. |
boolean |
valuesFromDataModel()
Returns true if the values must be read directly from the data model, false if the values must be read from the internal variables. |
void |
valuesFromDataModel(boolean valuesFromDataModel)
Sets if the the values must be read directly from the Data Model or from the internal variables. |
Field Detail |
---|
static final int NO_RANK
Method Detail |
---|
boolean topRanking()
int rankingCount()
boolean percentageRanking()
void topRanking(boolean isTop)
isTop
- true if it's a top ranking, false if it's a bottom rankingvoid percentageRanking(boolean isPercentage)
isPercentage
- true if it's a percentage ranking, false if it's an absolute rankingvoid rankingCount(int count)
count
- the amount of elements to rank, > 0.void includeTies(boolean isIncludeTies)
isIncludeTies
- true if the ties are included, false otherwiseboolean includeTies()
void setIncludeTies(java.lang.String isIncludeTies)
isIncludeTies
- valid values are:
RankingSelectorComponents.INCLUDE_TIES
,
RankingSelectorComponents.NOT_INCLUDE_TIES
,
RankingSelectorComponents.TIES_NOT_APPLICABLE
java.lang.String getIncludeTies()
RankingSelectorComponents.INCLUDE_TIES
,
RankingSelectorComponents.NOT_INCLUDE_TIES
,
RankingSelectorComponents.TIES_NOT_APPLICABLE
void rankType(int rankType)
rankType
- the rank type,
for OLAP valid values are:
DataItemRankFilter.COUNT
DataItemRankFilter.PERCENT
DataItemRankFilter.SUM
for relational
DataItemRankFilter.COUNT
int rankType()
DataItemRankFilter.COUNT
DataItemRankFilter.PERCENT
DataItemRankFilter.SUM
for relational DataItemRankFilter.COUNT
java.util.Map rankTypes()
java.lang.String dataItemRankStatus(java.lang.String dataItemID)
dataItemID
- the DataItam id
boolean valuesFromDataModel()
void valuesFromDataModel(boolean valuesFromDataModel)
valuesFromDataModel
- true if the the values must be read directly from the data model, false if the values must be read from the internal variablesjava.lang.String rankOrder(java.lang.String dataItemID)
dataItemID
- the data item unique identifier
RankingSelectorComponents.TOP_RANKING
,
RankingSelectorComponents.BOTTOM_RANKING
a null string is returned if the received dataItemID is either null or not found in the data model or there's no ranking appliedint rankValue(java.lang.String dataItemID)
dataItemID
- the data item unique identifier
NO_RANK
when the dataItemID has no ranking applied or when the received dataItemID is either null or not found in the data modelint rankType(java.lang.String dataItemID)
dataItemID
- the data item unique identifier
DataItemRankFilter.COUNT
DataItemRankFilter.PERCENT
DataItemRankFilter.SUM
for relational
DataItemRankFilter.COUNT
and in general NO_RANK
when the dataItemID has no ranking applied or when the received dataItemID is either null or not found in the data modelboolean includeTies(java.lang.String dataItemID)
dataItemID
- the data item unique identifier
java.lang.String getIncludeTies(java.lang.String dataItemID)
dataItemID
- the data item unique identifier
RankingSelectorComponents.INCLUDE_TIES
,
RankingSelectorComponents.NOT_INCLUDE_TIES
,
RankingSelectorComponents.TIES_NOT_APPLICABLE
int countRankTypeValue()
void setModel(java.lang.Object model)
BusinessQueryToOLAPDataSetAdapter
or similar.
model
- the model that contains the data.java.lang.Object getModel()
BusinessQueryToOLAPDataSetAdapter
or similar.void setLocale(java.util.Locale locale)
locale
- The locale the adapter will usejava.util.Locale getLocale()
java.lang.String getLocalizedInfoText(java.lang.String rankOrder, int rankValue, int rankType, java.lang.String includeTies, java.lang.String basedOnDesc)
rankOrder
- the rank order like top or bottomrankValue
- the amount of elements to rankrankType
- the rank type
for OLAP valid values are:
DataItemRankFilter.COUNT
DataItemRankFilter.PERCENT
DataItemRankFilter.SUM
for relational
DataItemRankFilter.COUNT
includeTies
- if the ties must be included or not included
RankingSelectorComponents.INCLUDE_TIES
,
RankingSelectorComponents.NOT_INCLUDE_TIES
,
RankingSelectorComponents.TIES_NOT_APPLICABLE
basedOnDesc
- the description of the based on measure, something like "ACTUAL_SUM for (1994, SOFA)" for OLAP,
a null String for relational
java.lang.String getLocalizedText(java.lang.String text)
text
- The text to be localized.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |