Package de.uplanet.lucy.server.renderer
Class RenderingContext
java.lang.Object
de.uplanet.lucy.server.renderer.RenderingContext
- All Implemented Interfaces:
IRenderingContext
,Cloneable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Get 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
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.
-
Constructor Details
-
RenderingContext
public RenderingContext()
-
-
Method Details
-
clone
-
getParam
Description copied from interface:IRenderingContext
Get a parameter.- Specified by:
getParam
in interfaceIRenderingContext
- Parameters:
p_strName
- The name of the parameter.- Returns:
- The value of the parameter.
-
setParam
Description copied from interface:IRenderingContext
Set a parameter.- Specified by:
setParam
in interfaceIRenderingContext
- Parameters:
p_strName
- The name of the parameter.p_value
- The value of the parameter.
-
getLanguage
Description copied from interface:IRenderingContext
Get the language identifier.- Specified by:
getLanguage
in interfaceIRenderingContext
- Returns:
- The language identifier.
-
setLanguage
Description copied from interface:IRenderingContext
Set the language identifier.- Specified by:
setLanguage
in interfaceIRenderingContext
- Parameters:
p_strLang
- The language identifier.
-
setRoundingMode
Description copied from interface:IRenderingContext
Set the rounding mode.- Specified by:
setRoundingMode
in interfaceIRenderingContext
- Parameters:
p_roundingMode
- The rounding mode.
-
getRoundingMode
Description copied from interface:IRenderingContext
Get the rounding mode.- Specified by:
getRoundingMode
in interfaceIRenderingContext
- Returns:
- The rounding mode.
-
getTimeZone
Description copied from interface:IRenderingContext
Get the time zone.- Specified by:
getTimeZone
in interfaceIRenderingContext
- Returns:
- The time zone.
-
setTimeZone
Description copied from interface:IRenderingContext
Set the time zone.- Specified by:
setTimeZone
in interfaceIRenderingContext
- Parameters:
p_tz
- The time zone.
-
setTimeZoneById
Description copied from interface:IRenderingContext
Set the time zone by it's identifier.- Specified by:
setTimeZoneById
in interfaceIRenderingContext
- Parameters:
p_strTimeZone
- The Java time zone identifier.
-
getDateTimeFormat
Description copied from interface:IRenderingContext
Get the date/time format string.- Specified by:
getDateTimeFormat
in interfaceIRenderingContext
- Returns:
- The date/time format string.
-
setDateTimeFormat
Description copied from interface:IRenderingContext
Set the date/time format string.- Specified by:
setDateTimeFormat
in interfaceIRenderingContext
- Parameters:
p_strDateTimeFormat
- The date/time format string.
-
getDateFormat
Description copied from interface:IRenderingContext
Get the date format string.- Specified by:
getDateFormat
in interfaceIRenderingContext
- Returns:
- The date format string.
-
setDateFormat
Description copied from interface:IRenderingContext
Set the date format string.- Specified by:
setDateFormat
in interfaceIRenderingContext
- Parameters:
p_strDateFormat
- The date format string.
-
getShortDateFormat
Description copied from interface:IRenderingContext
Get the short date format string.- Specified by:
getShortDateFormat
in interfaceIRenderingContext
- Returns:
- The short date format string.
-
setShortDateFormat
Description copied from interface:IRenderingContext
Set the short date format string.- Specified by:
setShortDateFormat
in interfaceIRenderingContext
- Parameters:
p_strDateFormat
- The short date format string.
-
getLongDateFormat
Description copied from interface:IRenderingContext
Get the long date format string.- Specified by:
getLongDateFormat
in interfaceIRenderingContext
- Returns:
- The long date format string.
-
setLongDateFormat
Description copied from interface:IRenderingContext
Set the long date format string.- Specified by:
setLongDateFormat
in interfaceIRenderingContext
- Parameters:
p_strDateFormat
- The long date format string.
-
getTimeFormat
Description copied from interface:IRenderingContext
Get the time format string.- Specified by:
getTimeFormat
in interfaceIRenderingContext
- Returns:
- The time format string.
-
setTimeFormat
Description copied from interface:IRenderingContext
Set the time format string.- Specified by:
setTimeFormat
in interfaceIRenderingContext
- Parameters:
p_strTimeFormat
- The time format string.
-
getNumberDecimalSeparator
Description copied from interface:IRenderingContext
Get the number decimal separator.- Specified by:
getNumberDecimalSeparator
in interfaceIRenderingContext
- Returns:
- The number decimal separator.
-
setNumberDecimalSeparator
Description copied from interface:IRenderingContext
Set the number decimal separator.- Specified by:
setNumberDecimalSeparator
in interfaceIRenderingContext
- Parameters:
p_strSeparator
- The number decimal separator.
-
getNumberDigitSeparator
Description copied from interface:IRenderingContext
Get the number digit separator.- Specified by:
getNumberDigitSeparator
in interfaceIRenderingContext
- Returns:
- The number digit separator.
-
setNumberDigitSeparator
Description copied from interface:IRenderingContext
Set the number digit separator.- Specified by:
setNumberDigitSeparator
in interfaceIRenderingContext
- Parameters:
p_strSeparator
- The number digit separator.
-
getIntegerDigitSeparator
Description copied from interface:IRenderingContext
Get the integer digit separator.- Specified by:
getIntegerDigitSeparator
in interfaceIRenderingContext
- Returns:
- The Integer digit separator.
-
setIntegerDigitSeparator
Description copied from interface:IRenderingContext
Set the integer digit separator.- Specified by:
setIntegerDigitSeparator
in interfaceIRenderingContext
- Parameters:
p_strSeparator
- The number digit separator.
-
getNumberFractionDigits
public int getNumberFractionDigits()Description copied from interface:IRenderingContext
Get the number of fraction digits of floating point numbers.- Specified by:
getNumberFractionDigits
in interfaceIRenderingContext
- Returns:
- The number of fraction digits of floating point numbers.
-
setNumberFractionDigits
public void setNumberFractionDigits(int p_iFractionDigits) Description copied from interface:IRenderingContext
Set the number of fraction digits of floating point numbers.- Specified by:
setNumberFractionDigits
in interfaceIRenderingContext
- Parameters:
p_iFractionDigits
- The number of fraction digits of floating point numbers.
-
isNumberAlwaysShowIntegerPart
public boolean isNumberAlwaysShowIntegerPart()Description copied from interface:IRenderingContext
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.- Specified by:
isNumberAlwaysShowIntegerPart
in interfaceIRenderingContext
-
setNumberAlwaysShowIntegerPart
public void setNumberAlwaysShowIntegerPart(boolean p_bAlwaysShowIntegerPart) Description copied from interface:IRenderingContext
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.- Specified by:
setNumberAlwaysShowIntegerPart
in interfaceIRenderingContext
-
getCurrencyDecimalSeparator
Description copied from interface:IRenderingContext
Get the currency decimal separator.- Specified by:
getCurrencyDecimalSeparator
in interfaceIRenderingContext
- Returns:
- The currency decimal separator.
-
setCurrencyDecimalSeparator
Description copied from interface:IRenderingContext
Set the currency decimal separator.- Specified by:
setCurrencyDecimalSeparator
in interfaceIRenderingContext
- Parameters:
p_strSeparator
- The currency decimal separator.
-
getCurrencyDigitSeparator
Description copied from interface:IRenderingContext
Get the currency digit separator. It is used for seperating groups of digits, e.g. in steps of thousand- Specified by:
getCurrencyDigitSeparator
in interfaceIRenderingContext
- Returns:
- The currency digit separator.
-
setCurrencyDigitSeparator
Description copied from interface:IRenderingContext
Set the currency digit separator. It is used for seperating groups of digits, e.g. in steps of thousand- Specified by:
setCurrencyDigitSeparator
in interfaceIRenderingContext
- Parameters:
p_strSeparator
- The currency digit separator.
-
getCurrencyFractionDigits
public int getCurrencyFractionDigits()Description copied from interface:IRenderingContext
Get the number of fraction digits for currency values.- Specified by:
getCurrencyFractionDigits
in interfaceIRenderingContext
- Returns:
- The number of fraction digits for currency values.
-
setCurrencyFractionDigits
public void setCurrencyFractionDigits(int p_iFractionDigits) Description copied from interface:IRenderingContext
Set the number of fraction digits for currency values.- Specified by:
setCurrencyFractionDigits
in interfaceIRenderingContext
- Parameters:
p_iFractionDigits
- The number of fraction digits for currency values.
-
isCurrencyAlwaysShowIntegerPart
public boolean isCurrencyAlwaysShowIntegerPart()Description copied from interface:IRenderingContext
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.- Specified by:
isCurrencyAlwaysShowIntegerPart
in interfaceIRenderingContext
-
setCurrencyAlwaysShowIntegerPart
public void setCurrencyAlwaysShowIntegerPart(boolean p_bAlwaysShowIntegerPart) Description copied from interface:IRenderingContext
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.- Specified by:
setCurrencyAlwaysShowIntegerPart
in interfaceIRenderingContext
-
getFirstDayOfWeek
public int getFirstDayOfWeek()Description copied from interface:IRenderingContext
Get the first day of the week.- Specified by:
getFirstDayOfWeek
in interfaceIRenderingContext
- Returns:
1
for Sunday,2
for monday, ...,7
for saturday.
-
setFirstDayOfWeek
public void setFirstDayOfWeek(int p_iFirstDayOfWeek) Description copied from interface:IRenderingContext
Set the first day of the week.- Specified by:
setFirstDayOfWeek
in interfaceIRenderingContext
- Parameters:
p_iFirstDayOfWeek
- The first day of the week;1
for Sunday,2
for monday, ...,7
for saturday.
-