Package com.microstrategy.web.app.beans
Class GridFormatHelper
- java.lang.Object
-
- com.microstrategy.web.beans.GridWebFormatHelper
-
- com.microstrategy.web.app.beans.GridFormatHelper
-
public class GridFormatHelper extends GridWebFormatHelper
This class provides a series of methods that aid on the manipulation of grid formatting properties.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Field Summary
-
Fields inherited from class com.microstrategy.web.beans.GridWebFormatHelper
LOCAL_TARGET_ALL_METRICS, LOCAL_TARGET_ALL_REPORT, LOCAL_TARGET_GRID_BORDER, LOCAL_TARGET_GRID_CONTAINER
-
-
Constructor Summary
Constructors Constructor Description GridFormatHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getDefaultNumberDateDescriptor(AppContext appContext, java.lang.String numberDateLocale, java.lang.String descriptorId)
For the specified locale, obtain which is the descriptor to be usedstatic java.lang.String
getNumberDateLocale(AppContext appContext)
Based on the user's preferences, obtain which locale should be used for formatting number and dates-
Methods inherited from class com.microstrategy.web.beans.GridWebFormatHelper
constructNumberFormat, convertColorDecimalToHTMLHex, getAxis, getComparedPropertyValue, getComparedPropertyValue, getGridFormatObjectsArray, getGridFormatObjectsArray, getGridFormatObjectsArray, getGridFormatObjectsArray, getGridFormatObjectsArray, getGridTemplate, getMetric, getPropertyUseDefault, getPropertyValue, getPropertyValue, getTemplateUnit, getUnitType
-
-
-
-
Method Detail
-
getNumberDateLocale
public static java.lang.String getNumberDateLocale(AppContext appContext)
Based on the user's preferences, obtain which locale should be used for formatting number and dates- Parameters:
appContext
-AppContext
initialized instance- Returns:
- the string code of the locale selected by the user on his/her preferences
-
getDefaultNumberDateDescriptor
public static java.lang.String getDefaultNumberDateDescriptor(AppContext appContext, java.lang.String numberDateLocale, java.lang.String descriptorId)
For the specified locale, obtain which is the descriptor to be used- Parameters:
appContext
-AppContext
initialized instancenumberDateLocale
- the string code of the locale selected by the userdescriptorId
- the id of the descriptor requested- Returns:
- the
String
value corresponding to the descriptor id sent as parameter
-
-