Package de.uplanet.lucy.server.renderer
Class RenderingContext
java.lang.Object
de.uplanet.lucy.server.renderer.RenderingContext
- All Implemented Interfaces:
IRenderingContext,Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Get the currency decimal separator.Get the currency digit separator.intGet the number of fraction digits for currency values.Get the date format string.Get the date/time format string.intGet 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.intGet 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.booleanDetermine if currency values less than1and greater than-1should have a zero digit on the left hand side of the decimal seperator, or not.booleanDetermine if floating point numbers less than1and greater than-1should have a zero digit on the left hand side of the decimal seperator, or not.voidsetCurrencyAlwaysShowIntegerPart(boolean p_bAlwaysShowIntegerPart) Determine if currency values less than1and greater than-1should have a zero digit on the left hand side of the decimal seperator, or not.voidsetCurrencyDecimalSeparator(String p_strSeparator) Set the currency decimal separator.voidsetCurrencyDigitSeparator(String p_strSeparator) Set the currency digit separator.voidsetCurrencyFractionDigits(int p_iFractionDigits) Set the number of fraction digits for currency values.voidsetDateFormat(String p_strDateFormat) Set the date format string.voidsetDateTimeFormat(String p_strDateTimeFormat) Set the date/time format string.voidsetFirstDayOfWeek(int p_iFirstDayOfWeek) Set the first day of the week.voidsetIntegerDigitSeparator(String p_strSeparator) Set the integer digit separator.voidsetLanguage(String p_strLang) Set the language identifier.voidvoidsetLongDateFormat(String p_strDateFormat) Set the long date format string.voidsetNumberAlwaysShowIntegerPart(boolean p_bAlwaysShowIntegerPart) Determine if floating point numbers less than1and greater than-1should have a zero digit on the left hand side of the decimal seperator, or not.voidsetNumberDecimalSeparator(String p_strSeparator) Set the number decimal separator.voidsetNumberDigitSeparator(String p_strSeparator) Set the number digit separator.voidsetNumberFractionDigits(int p_iFractionDigits) Set the number of fraction digits of floating point numbers.voidSet a parameter.voidsetRoundingMode(RoundingMode p_roundingMode) Set the rounding mode.voidsetShortDateFormat(String p_strDateFormat) Set the short date format string.voidsetTimeFormat(String p_strTimeFormat) Set the time format string.voidsetTimeZone(TimeZone p_tz) Set the time zone.voidsetTimeZoneById(String p_strTimeZone) Set the time zone by it's identifier.
-
Constructor Details
-
RenderingContext
public RenderingContext()
-
-
Method Details
-
clone
-
getParam
Description copied from interface:IRenderingContextGet a parameter.- Specified by:
getParamin interfaceIRenderingContext- Parameters:
p_strName- The name of the parameter.- Returns:
- The value of the parameter.
-
setParam
Description copied from interface:IRenderingContextSet a parameter.- Specified by:
setParamin interfaceIRenderingContext- Parameters:
p_strName- The name of the parameter.p_value- The value of the parameter.
-
getLanguage
Description copied from interface:IRenderingContextGet the language identifier.- Specified by:
getLanguagein interfaceIRenderingContext- Returns:
- The language identifier.
-
setLanguage
Description copied from interface:IRenderingContextSet the language identifier.- Specified by:
setLanguagein interfaceIRenderingContext- Parameters:
p_strLang- The language identifier.
-
getLocale
- Specified by:
getLocalein interfaceIRenderingContext- Returns:
- Returns the locale
-
setLocale
- Specified by:
setLocalein interfaceIRenderingContext- Parameters:
p_locale- The locale to set.
-
setRoundingMode
Description copied from interface:IRenderingContextSet the rounding mode.- Specified by:
setRoundingModein interfaceIRenderingContext- Parameters:
p_roundingMode- The rounding mode.
-
getRoundingMode
Description copied from interface:IRenderingContextGet the rounding mode.- Specified by:
getRoundingModein interfaceIRenderingContext- Returns:
- The rounding mode.
-
getTimeZone
Description copied from interface:IRenderingContextGet the time zone.- Specified by:
getTimeZonein interfaceIRenderingContext- Returns:
- The time zone.
-
setTimeZone
Description copied from interface:IRenderingContextSet the time zone.- Specified by:
setTimeZonein interfaceIRenderingContext- Parameters:
p_tz- The time zone.
-
setTimeZoneById
Description copied from interface:IRenderingContextSet the time zone by it's identifier.- Specified by:
setTimeZoneByIdin interfaceIRenderingContext- Parameters:
p_strTimeZone- The Java time zone identifier.
-
getDateTimeFormat
Description copied from interface:IRenderingContextGet the date/time format string.- Specified by:
getDateTimeFormatin interfaceIRenderingContext- Returns:
- The date/time format string.
-
setDateTimeFormat
Description copied from interface:IRenderingContextSet the date/time format string.- Specified by:
setDateTimeFormatin interfaceIRenderingContext- Parameters:
p_strDateTimeFormat- The date/time format string.
-
getDateFormat
Description copied from interface:IRenderingContextGet the date format string.- Specified by:
getDateFormatin interfaceIRenderingContext- Returns:
- The date format string.
-
setDateFormat
Description copied from interface:IRenderingContextSet the date format string.- Specified by:
setDateFormatin interfaceIRenderingContext- Parameters:
p_strDateFormat- The date format string.
-
getShortDateFormat
Description copied from interface:IRenderingContextGet the short date format string.- Specified by:
getShortDateFormatin interfaceIRenderingContext- Returns:
- The short date format string.
-
setShortDateFormat
Description copied from interface:IRenderingContextSet the short date format string.- Specified by:
setShortDateFormatin interfaceIRenderingContext- Parameters:
p_strDateFormat- The short date format string.
-
getLongDateFormat
Description copied from interface:IRenderingContextGet the long date format string.- Specified by:
getLongDateFormatin interfaceIRenderingContext- Returns:
- The long date format string.
-
setLongDateFormat
Description copied from interface:IRenderingContextSet the long date format string.- Specified by:
setLongDateFormatin interfaceIRenderingContext- Parameters:
p_strDateFormat- The long date format string.
-
getTimeFormat
Description copied from interface:IRenderingContextGet the time format string.- Specified by:
getTimeFormatin interfaceIRenderingContext- Returns:
- The time format string.
-
setTimeFormat
Description copied from interface:IRenderingContextSet the time format string.- Specified by:
setTimeFormatin interfaceIRenderingContext- Parameters:
p_strTimeFormat- The time format string.
-
getNumberDecimalSeparator
Description copied from interface:IRenderingContextGet the number decimal separator.- Specified by:
getNumberDecimalSeparatorin interfaceIRenderingContext- Returns:
- The number decimal separator.
-
setNumberDecimalSeparator
Description copied from interface:IRenderingContextSet the number decimal separator.- Specified by:
setNumberDecimalSeparatorin interfaceIRenderingContext- Parameters:
p_strSeparator- The number decimal separator.
-
getNumberDigitSeparator
Description copied from interface:IRenderingContextGet the number digit separator.- Specified by:
getNumberDigitSeparatorin interfaceIRenderingContext- Returns:
- The number digit separator.
-
setNumberDigitSeparator
Description copied from interface:IRenderingContextSet the number digit separator.- Specified by:
setNumberDigitSeparatorin interfaceIRenderingContext- Parameters:
p_strSeparator- The number digit separator.
-
getIntegerDigitSeparator
Description copied from interface:IRenderingContextGet the integer digit separator.- Specified by:
getIntegerDigitSeparatorin interfaceIRenderingContext- Returns:
- The Integer digit separator.
-
setIntegerDigitSeparator
Description copied from interface:IRenderingContextSet the integer digit separator.- Specified by:
setIntegerDigitSeparatorin interfaceIRenderingContext- Parameters:
p_strSeparator- The number digit separator.
-
getNumberFractionDigits
public int getNumberFractionDigits()Description copied from interface:IRenderingContextGet the number of fraction digits of floating point numbers.- Specified by:
getNumberFractionDigitsin interfaceIRenderingContext- Returns:
- The number of fraction digits of floating point numbers.
-
setNumberFractionDigits
public void setNumberFractionDigits(int p_iFractionDigits) Description copied from interface:IRenderingContextSet the number of fraction digits of floating point numbers.- Specified by:
setNumberFractionDigitsin interfaceIRenderingContext- Parameters:
p_iFractionDigits- The number of fraction digits of floating point numbers.
-
isNumberAlwaysShowIntegerPart
public boolean isNumberAlwaysShowIntegerPart()Description copied from interface:IRenderingContextDetermine if floating point numbers less than1and greater than-1should have a zero digit on the left hand side of the decimal seperator, or not.- Specified by:
isNumberAlwaysShowIntegerPartin interfaceIRenderingContext
-
setNumberAlwaysShowIntegerPart
public void setNumberAlwaysShowIntegerPart(boolean p_bAlwaysShowIntegerPart) Description copied from interface:IRenderingContextDetermine if floating point numbers less than1and greater than-1should have a zero digit on the left hand side of the decimal seperator, or not.- Specified by:
setNumberAlwaysShowIntegerPartin interfaceIRenderingContext
-
getCurrencyDecimalSeparator
Description copied from interface:IRenderingContextGet the currency decimal separator.- Specified by:
getCurrencyDecimalSeparatorin interfaceIRenderingContext- Returns:
- The currency decimal separator.
-
setCurrencyDecimalSeparator
Description copied from interface:IRenderingContextSet the currency decimal separator.- Specified by:
setCurrencyDecimalSeparatorin interfaceIRenderingContext- Parameters:
p_strSeparator- The currency decimal separator.
-
getCurrencyDigitSeparator
Description copied from interface:IRenderingContextGet the currency digit separator. It is used for seperating groups of digits, e.g. in steps of thousand- Specified by:
getCurrencyDigitSeparatorin interfaceIRenderingContext- Returns:
- The currency digit separator.
-
setCurrencyDigitSeparator
Description copied from interface:IRenderingContextSet the currency digit separator. It is used for seperating groups of digits, e.g. in steps of thousand- Specified by:
setCurrencyDigitSeparatorin interfaceIRenderingContext- Parameters:
p_strSeparator- The currency digit separator.
-
getCurrencyFractionDigits
public int getCurrencyFractionDigits()Description copied from interface:IRenderingContextGet the number of fraction digits for currency values.- Specified by:
getCurrencyFractionDigitsin interfaceIRenderingContext- Returns:
- The number of fraction digits for currency values.
-
setCurrencyFractionDigits
public void setCurrencyFractionDigits(int p_iFractionDigits) Description copied from interface:IRenderingContextSet the number of fraction digits for currency values.- Specified by:
setCurrencyFractionDigitsin interfaceIRenderingContext- Parameters:
p_iFractionDigits- The number of fraction digits for currency values.
-
isCurrencyAlwaysShowIntegerPart
public boolean isCurrencyAlwaysShowIntegerPart()Description copied from interface:IRenderingContextDetermine if currency values less than1and greater than-1should have a zero digit on the left hand side of the decimal seperator, or not.- Specified by:
isCurrencyAlwaysShowIntegerPartin interfaceIRenderingContext
-
setCurrencyAlwaysShowIntegerPart
public void setCurrencyAlwaysShowIntegerPart(boolean p_bAlwaysShowIntegerPart) Description copied from interface:IRenderingContextDetermine if currency values less than1and greater than-1should have a zero digit on the left hand side of the decimal seperator, or not.- Specified by:
setCurrencyAlwaysShowIntegerPartin interfaceIRenderingContext
-
getFirstDayOfWeek
public int getFirstDayOfWeek()Description copied from interface:IRenderingContextGet the first day of the week.- Specified by:
getFirstDayOfWeekin interfaceIRenderingContext- Returns:
1for Sunday,2for monday, ...,7for saturday.
-
setFirstDayOfWeek
public void setFirstDayOfWeek(int p_iFirstDayOfWeek) Description copied from interface:IRenderingContextSet the first day of the week.- Specified by:
setFirstDayOfWeekin interfaceIRenderingContext- Parameters:
p_iFirstDayOfWeek- The first day of the week;1for Sunday,2for monday, ...,7for saturday.
-