|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.visuals.dataselectors.Util
public class Util
Utility class to hold static, re-usable methods uses by Selectors.
Field Summary | |
---|---|
static java.lang.String |
RB_KEY
|
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static javax.swing.ComboBoxModel |
getKeysComboModel(java.util.Map map)
Given a Map returns a ComboBoxModel containing the keys of the map. |
static javax.swing.ComboBoxModel |
getValuesComboModel(java.util.Map map)
Given a Map returns a ComboBoxModel containing the values of the map. |
static java.lang.String |
localizeBasedOnMeasureDesc(java.lang.String measureDesc,
java.lang.String[] whereClauses)
Using the JVM locale, generates a localized description of a based on measure with where clauses applied. |
static java.lang.String |
localizeBasedOnMeasureDesc(java.lang.String measureDesc,
java.lang.String[] whereClauses,
java.util.Locale locale)
Generates a localized description of a based on measure with where clauses applied. |
static java.lang.String |
localizeRankStatus(java.lang.String rankOrder,
int rankValue,
java.lang.String rankType,
boolean isIncludeTies)
Deprecated. use getLocalizedRankStatus() instead |
static java.lang.String |
localizeRankStatus(java.lang.String rankOrder,
int rankValue,
java.lang.String rankType,
boolean isIncludeTies,
java.lang.String byRankName)
Deprecated. use getLocalizedRankStatus() instead |
static java.lang.String |
localizeRankStatus(java.lang.String rankOrder,
int rankValue,
java.lang.String rankType,
boolean isIncludeTies,
java.lang.String byRankName,
java.util.Locale locale)
Deprecated. use getLocalizedRankStatus() instead |
static java.lang.String |
localizeRankStatus(java.lang.String rankOrder,
int rankValue,
java.lang.String rankType,
java.lang.String isIncludeTies,
java.lang.String byRankName)
Deprecated. use getLocalizedRankStatus() instead |
static java.lang.String |
localizeRankStatus(java.lang.String rankOrder,
int rankValue,
java.lang.String rankType,
java.lang.String isIncludeTies,
java.lang.String byRankName,
java.util.Locale locale)
Deprecated. use getLocalizedRankStatus() instead |
static java.lang.String |
localizeWhereClause(java.lang.String dataItemDescription,
java.lang.String whereClauseDescription)
Using the JVM locale, generates a localized description of a where clause. |
static java.lang.String |
localizeWhereClause(java.lang.String dataItemDescription,
java.lang.String whereClauseDescription,
java.util.Locale locale)
Generates a localized description of a where clause. |
Field Detail |
---|
public static final java.lang.String RB_KEY
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static javax.swing.ComboBoxModel getKeysComboModel(java.util.Map map)
map
- The Map to read
Map
,
ComboBoxModel
public static javax.swing.ComboBoxModel getValuesComboModel(java.util.Map map)
map
- The Map to read
Map
,
ComboBoxModel
public static java.lang.String localizeRankStatus(java.lang.String rankOrder, int rankValue, java.lang.String rankType, boolean isIncludeTies, java.lang.String byRankName)
rankOrder
- either Top or BottomrankValue
- how much to rankrankType
- either Count Percent or SumisIncludeTies
- true if the ties must be included, false otherwisebyRankName
- the name of the measure on which the rank is based on
public static java.lang.String localizeRankStatus(java.lang.String rankOrder, int rankValue, java.lang.String rankType, boolean isIncludeTies, java.lang.String byRankName, java.util.Locale locale)
rankOrder
- either Top or Bottom (comes in already localized)rankValue
- how much to rankrankType
- either Count Percent or Sum (comes in already localized)isIncludeTies
- true if the ties must be included, false otherwisebyRankName
- the name of the measure on which the rank is based onlocale
- the locale to use to localize the string to be returned
public static java.lang.String localizeRankStatus(java.lang.String rankOrder, int rankValue, java.lang.String rankType, boolean isIncludeTies)
rankOrder
- either Top or BottomrankValue
- how much to rankrankType
- either Count Percent or SumisIncludeTies
- true if the ties must be included, false otherwise
public static java.lang.String localizeRankStatus(java.lang.String rankOrder, int rankValue, java.lang.String rankType, java.lang.String isIncludeTies, java.lang.String byRankName)
rankOrder
- typically Top or BottomrankValue
- how much to rankrankType
- typically Count Percent or SumisIncludeTies
- either one of the following:
RankingSelectorComponents.INCLUDE_TIES
,
RankingSelectorComponents.NOT_INCLUDE_TIES
,
RankingSelectorComponents.TIES_NOT_APPLICABLE
byRankName
- the name of the measure on which the rank is based on
public static java.lang.String localizeRankStatus(java.lang.String rankOrder, int rankValue, java.lang.String rankType, java.lang.String isIncludeTies, java.lang.String byRankName, java.util.Locale locale)
rankOrder
- typically Top or Bottom (comes in already localized)rankValue
- how much to rankrankType
- typically Count Percent or Sum (comes in already localized)isIncludeTies
- either one of the following:
RankingSelectorComponents.INCLUDE_TIES
,
RankingSelectorComponents.NOT_INCLUDE_TIES
,
RankingSelectorComponents.TIES_NOT_APPLICABLE
byRankName
- the name of the measure on which the rank is based onlocale
- the locale to use to localize the string to be returned
public static java.lang.String localizeBasedOnMeasureDesc(java.lang.String measureDesc, java.lang.String[] whereClauses)
measureDesc
- the description of the based on measurewhereClauses
- the already localized set of where clauses
public static java.lang.String localizeBasedOnMeasureDesc(java.lang.String measureDesc, java.lang.String[] whereClauses, java.util.Locale locale)
measureDesc
- the description of the based on measurewhereClauses
- the already localized set of where clauseslocale
- the locale to use to localize the string to be returned
public static java.lang.String localizeWhereClause(java.lang.String dataItemDescription, java.lang.String whereClauseDescription)
dataItemDescription
- the description of the DataItem which the where clause applies to (like Time)whereClauseDescription
- the description of the where clause applied to the DataItem (like Jan)
public static java.lang.String localizeWhereClause(java.lang.String dataItemDescription, java.lang.String whereClauseDescription, java.util.Locale locale)
dataItemDescription
- the description of the DataItem which the where clause applies to (like Time)whereClauseDescription
- the description of the where clause applied to the DataItem (like Jan)locale
- the locale to use to localize the string to be returned
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |