Package de.uplanet.lucy.server.renderer
Interface IRenderingContext
- All Known Implementing Classes:
RenderingContext
public interface IRenderingContext
-
Method Summary
Modifier and TypeMethodDescriptionGet the currency decimal separator.Get the currency digit separator.int
Get the number of fraction digits for currency values.Get the date format string.Get the date/time format string.int
Get the first day of the week.Get the integer digit separator.Get the language identifier.Get the long date format string.Get the number decimal separator.Get the number digit separator.int
Get the number of fraction digits of floating point numbers.Get a parameter.Get the rounding mode.Get the short date format string.Get the time format string.Get the time zone.boolean
Determine if currency values less than1
and greater than-1
should have a zero digit on the left hand side of the decimal seperator, or not.boolean
Determine if floating point numbers less than1
and greater than-1
should have a zero digit on the left hand side of the decimal seperator, or not.void
setCurrencyAlwaysShowIntegerPart
(boolean p_bAlwaysShowIntegerPart) Determine if currency values less than1
and greater than-1
should have a zero digit on the left hand side of the decimal seperator, or not.void
setCurrencyDecimalSeparator
(String p_strSeparator) Set the currency decimal separator.void
setCurrencyDigitSeparator
(String p_strSeparator) Set the currency digit separator.void
setCurrencyFractionDigits
(int p_iFractionDigits) Set the number of fraction digits for currency values.void
setDateFormat
(String p_strDateFormat) Set the date format string.void
setDateTimeFormat
(String p_strDateTimeFormat) Set the date/time format string.void
setFirstDayOfWeek
(int p_iFirstDayOfWeek) Set the first day of the week.void
setIntegerDigitSeparator
(String p_strSeparator) Set the integer digit separator.void
setLanguage
(String p_strLang) Set the language identifier.void
void
setLongDateFormat
(String p_strDateFormat) Set the long date format string.void
setNumberAlwaysShowIntegerPart
(boolean p_bAlwaysShowIntegerPart) Determine if floating point numbers less than1
and greater than-1
should have a zero digit on the left hand side of the decimal seperator, or not.void
setNumberDecimalSeparator
(String p_strSeparator) Set the number decimal separator.void
setNumberDigitSeparator
(String p_strSeparator) Set the number digit separator.void
setNumberFractionDigits
(int p_iFractionDigits) Set the number of fraction digits of floating point numbers.void
Set a parameter.void
setRoundingMode
(RoundingMode p_roundingMode) Set the rounding mode.void
setShortDateFormat
(String p_strDateFormat) Set the short date format string.void
setTimeFormat
(String p_strTimeFormat) Set the time format string.void
setTimeZone
(TimeZone p_tz) Set the time zone.void
setTimeZoneById
(String p_strTimeZone) Set the time zone by it's identifier.
-
Method Details
-
getParam
Get a parameter.- Parameters:
p_strName
- The name of the parameter.- Returns:
- The value of the parameter.
-
setParam
Set a parameter.- Parameters:
p_strName
- The name of the parameter.p_strValue
- The value of the parameter.
-
getLanguage
String getLanguage()Get the language identifier.- Returns:
- The language identifier.
-
setLanguage
Set the language identifier.- Parameters:
p_strLang
- The language identifier.
-
getLocale
Locale getLocale()- Returns:
- Returns the locale
-
setLocale
- Parameters:
p_locale
- The locale to set.
-
getTimeZone
TimeZone getTimeZone()Get the time zone.- Returns:
- The time zone.
-
setTimeZone
Set the time zone.- Parameters:
p_tz
- The time zone.
-
setTimeZoneById
Set the time zone by it's identifier.- Parameters:
p_strTimeZone
- The Java time zone identifier.
-
getDateTimeFormat
String getDateTimeFormat()Get the date/time format string.- Returns:
- The date/time format string.
-
setDateTimeFormat
Set the date/time format string.- Parameters:
p_strDateTimeFormat
- The date/time format string.
-
getDateFormat
String getDateFormat()Get the date format string.- Returns:
- The date format string.
-
setDateFormat
Set the date format string.- Parameters:
p_strDateFormat
- The date format string.
-
getShortDateFormat
String getShortDateFormat()Get the short date format string.- Returns:
- The short date format string.
-
setShortDateFormat
Set the short date format string.- Parameters:
p_strDateFormat
- The short date format string.
-
getLongDateFormat
String getLongDateFormat()Get the long date format string.- Returns:
- The long date format string.
-
setLongDateFormat
Set the long date format string.- Parameters:
p_strDateFormat
- The long date format string.
-
getTimeFormat
String getTimeFormat()Get the time format string.- Returns:
- The time format string.
-
setTimeFormat
Set the time format string.- Parameters:
p_strTimeFormat
- The time format string.
-
getNumberDecimalSeparator
String getNumberDecimalSeparator()Get the number decimal separator.- Returns:
- The number decimal separator.
-
setNumberDecimalSeparator
Set the number decimal separator.- Parameters:
p_strSeparator
- The number decimal separator.
-
getIntegerDigitSeparator
String getIntegerDigitSeparator()Get the integer digit separator.- Returns:
- The Integer digit separator.
-
setIntegerDigitSeparator
Set the integer digit separator.- Parameters:
p_strSeparator
- The number digit separator.
-
getNumberDigitSeparator
String getNumberDigitSeparator()Get the number digit separator.- Returns:
- The number digit separator.
-
setNumberDigitSeparator
Set the number digit separator.- Parameters:
p_strSeparator
- The number digit separator.
-
getNumberFractionDigits
int getNumberFractionDigits()Get the number of fraction digits of floating point numbers.- Returns:
- The number of fraction digits of floating point numbers.
-
setNumberFractionDigits
void setNumberFractionDigits(int p_iFractionDigits) Set the number of fraction digits of floating point numbers.- Parameters:
p_iFractionDigits
- The number of fraction digits of floating point numbers.
-
isNumberAlwaysShowIntegerPart
boolean isNumberAlwaysShowIntegerPart()Determine if floating point numbers less than1
and greater than-1
should have a zero digit on the left hand side of the decimal seperator, or not. -
setRoundingMode
Set the rounding mode.- Parameters:
p_roundingMode
- The rounding mode.
-
getRoundingMode
RoundingMode getRoundingMode()Get the rounding mode.- Returns:
- The rounding mode.
-
setNumberAlwaysShowIntegerPart
void setNumberAlwaysShowIntegerPart(boolean p_bAlwaysShowIntegerPart) Determine if floating point numbers less than1
and greater than-1
should have a zero digit on the left hand side of the decimal seperator, or not. -
getCurrencyDecimalSeparator
String getCurrencyDecimalSeparator()Get the currency decimal separator.- Returns:
- The currency decimal separator.
-
setCurrencyDecimalSeparator
Set the currency decimal separator.- Parameters:
p_strSeparator
- The currency decimal separator.
-
getCurrencyDigitSeparator
String getCurrencyDigitSeparator()Get the currency digit separator. It is used for seperating groups of digits, e.g. in steps of thousand- Returns:
- The currency digit separator.
-
setCurrencyDigitSeparator
Set the currency digit separator. It is used for seperating groups of digits, e.g. in steps of thousand- Parameters:
p_strSeparator
- The currency digit separator.
-
getCurrencyFractionDigits
int getCurrencyFractionDigits()Get the number of fraction digits for currency values.- Returns:
- The number of fraction digits for currency values.
-
setCurrencyFractionDigits
void setCurrencyFractionDigits(int p_iFractionDigits) Set the number of fraction digits for currency values.- Parameters:
p_iFractionDigits
- The number of fraction digits for currency values.
-
isCurrencyAlwaysShowIntegerPart
boolean isCurrencyAlwaysShowIntegerPart()Determine if currency values less than1
and greater than-1
should have a zero digit on the left hand side of the decimal seperator, or not. -
setCurrencyAlwaysShowIntegerPart
void setCurrencyAlwaysShowIntegerPart(boolean p_bAlwaysShowIntegerPart) Determine if currency values less than1
and greater than-1
should have a zero digit on the left hand side of the decimal seperator, or not. -
getFirstDayOfWeek
int getFirstDayOfWeek()Get the first day of the week.- Returns:
1
for Sunday,2
for monday, ...,7
for saturday.
-
setFirstDayOfWeek
void setFirstDayOfWeek(int p_iFirstDayOfWeek) Set the first day of the week.- Parameters:
p_iFirstDayOfWeek
- The first day of the week;1
for Sunday,2
for monday, ...,7
for saturday.
-