Package de.uplanet.lucy.server.renderer
Class RenderingContext
- java.lang.Object
-
- de.uplanet.lucy.server.renderer.RenderingContext
-
- All Implemented Interfaces:
IRenderingContext,Cloneable
public class RenderingContext extends Object implements IRenderingContext, Cloneable
-
-
Constructor Summary
Constructors Constructor Description RenderingContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()StringgetCurrencyDecimalSeparator()Get the currency decimal separator.StringgetCurrencyDigitSeparator()Get the currency digit separator.intgetCurrencyFractionDigits()Get the number of fraction digits for currency values.StringgetDateFormat()Get the date format string.StringgetDateTimeFormat()Get the date/time format string.intgetFirstDayOfWeek()Get the first day of the week.StringgetIntegerDigitSeparator()Get the integer digit separator.StringgetLanguage()Get the language identifier.StringgetLongDateFormat()Get the long date format string.StringgetNumberDecimalSeparator()Get the number decimal separator.StringgetNumberDigitSeparator()Get the number digit separator.intgetNumberFractionDigits()Get the number of fraction digits of floating point numbers.ObjectgetParam(String p_strName)Get a parameter.RoundingModegetRoundingMode()Get the rounding mode.StringgetShortDateFormat()Get the short date format string.StringgetTimeFormat()Get the time format string.TimeZonegetTimeZone()Get the time zone.booleanisCurrencyAlwaysShowIntegerPart()Determine if currency values less than1and greater than-1should have a zero digit on the left hand side of the decimal seperator, or not.booleanisNumberAlwaysShowIntegerPart()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.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.voidsetLongDateFormat(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.voidsetParam(String p_strName, String p_value)Set 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.
-
-
-
Method Detail
-
clone
public Object clone()
-
getParam
public Object getParam(String p_strName)
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
public void setParam(String p_strName, String p_value)
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
public String getLanguage()
Description copied from interface:IRenderingContextGet the language identifier.- Specified by:
getLanguagein interfaceIRenderingContext- Returns:
- The language identifier.
-
setLanguage
public void setLanguage(String p_strLang)
Description copied from interface:IRenderingContextSet the language identifier.- Specified by:
setLanguagein interfaceIRenderingContext- Parameters:
p_strLang- The language identifier.
-
setRoundingMode
public void setRoundingMode(RoundingMode p_roundingMode)
Description copied from interface:IRenderingContextSet the rounding mode.- Specified by:
setRoundingModein interfaceIRenderingContext- Parameters:
p_roundingMode- The rounding mode.
-
getRoundingMode
public RoundingMode getRoundingMode()
Description copied from interface:IRenderingContextGet the rounding mode.- Specified by:
getRoundingModein interfaceIRenderingContext- Returns:
- The rounding mode.
-
getTimeZone
public TimeZone getTimeZone()
Description copied from interface:IRenderingContextGet the time zone.- Specified by:
getTimeZonein interfaceIRenderingContext- Returns:
- The time zone.
-
setTimeZone
public void setTimeZone(TimeZone p_tz)
Description copied from interface:IRenderingContextSet the time zone.- Specified by:
setTimeZonein interfaceIRenderingContext- Parameters:
p_tz- The time zone.
-
setTimeZoneById
public void setTimeZoneById(String p_strTimeZone)
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
public String getDateTimeFormat()
Description copied from interface:IRenderingContextGet the date/time format string.- Specified by:
getDateTimeFormatin interfaceIRenderingContext- Returns:
- The date/time format string.
-
setDateTimeFormat
public void setDateTimeFormat(String p_strDateTimeFormat)
Description copied from interface:IRenderingContextSet the date/time format string.- Specified by:
setDateTimeFormatin interfaceIRenderingContext- Parameters:
p_strDateTimeFormat- The date/time format string.
-
getDateFormat
public String getDateFormat()
Description copied from interface:IRenderingContextGet the date format string.- Specified by:
getDateFormatin interfaceIRenderingContext- Returns:
- The date format string.
-
setDateFormat
public void setDateFormat(String p_strDateFormat)
Description copied from interface:IRenderingContextSet the date format string.- Specified by:
setDateFormatin interfaceIRenderingContext- Parameters:
p_strDateFormat- The date format string.
-
getShortDateFormat
public String getShortDateFormat()
Description copied from interface:IRenderingContextGet the short date format string.- Specified by:
getShortDateFormatin interfaceIRenderingContext- Returns:
- The short date format string.
-
setShortDateFormat
public void setShortDateFormat(String p_strDateFormat)
Description copied from interface:IRenderingContextSet the short date format string.- Specified by:
setShortDateFormatin interfaceIRenderingContext- Parameters:
p_strDateFormat- The short date format string.
-
getLongDateFormat
public String getLongDateFormat()
Description copied from interface:IRenderingContextGet the long date format string.- Specified by:
getLongDateFormatin interfaceIRenderingContext- Returns:
- The long date format string.
-
setLongDateFormat
public void setLongDateFormat(String p_strDateFormat)
Description copied from interface:IRenderingContextSet the long date format string.- Specified by:
setLongDateFormatin interfaceIRenderingContext- Parameters:
p_strDateFormat- The long date format string.
-
getTimeFormat
public String getTimeFormat()
Description copied from interface:IRenderingContextGet the time format string.- Specified by:
getTimeFormatin interfaceIRenderingContext- Returns:
- The time format string.
-
setTimeFormat
public void setTimeFormat(String p_strTimeFormat)
Description copied from interface:IRenderingContextSet the time format string.- Specified by:
setTimeFormatin interfaceIRenderingContext- Parameters:
p_strTimeFormat- The time format string.
-
getNumberDecimalSeparator
public String getNumberDecimalSeparator()
Description copied from interface:IRenderingContextGet the number decimal separator.- Specified by:
getNumberDecimalSeparatorin interfaceIRenderingContext- Returns:
- The number decimal separator.
-
setNumberDecimalSeparator
public void setNumberDecimalSeparator(String p_strSeparator)
Description copied from interface:IRenderingContextSet the number decimal separator.- Specified by:
setNumberDecimalSeparatorin interfaceIRenderingContext- Parameters:
p_strSeparator- The number decimal separator.
-
getNumberDigitSeparator
public String getNumberDigitSeparator()
Description copied from interface:IRenderingContextGet the number digit separator.- Specified by:
getNumberDigitSeparatorin interfaceIRenderingContext- Returns:
- The number digit separator.
-
setNumberDigitSeparator
public void setNumberDigitSeparator(String p_strSeparator)
Description copied from interface:IRenderingContextSet the number digit separator.- Specified by:
setNumberDigitSeparatorin interfaceIRenderingContext- Parameters:
p_strSeparator- The number digit separator.
-
getIntegerDigitSeparator
public String getIntegerDigitSeparator()
Description copied from interface:IRenderingContextGet the integer digit separator.- Specified by:
getIntegerDigitSeparatorin interfaceIRenderingContext- Returns:
- The Integer digit separator.
-
setIntegerDigitSeparator
public void setIntegerDigitSeparator(String p_strSeparator)
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
public String getCurrencyDecimalSeparator()
Description copied from interface:IRenderingContextGet the currency decimal separator.- Specified by:
getCurrencyDecimalSeparatorin interfaceIRenderingContext- Returns:
- The currency decimal separator.
-
setCurrencyDecimalSeparator
public void setCurrencyDecimalSeparator(String p_strSeparator)
Description copied from interface:IRenderingContextSet the currency decimal separator.- Specified by:
setCurrencyDecimalSeparatorin interfaceIRenderingContext- Parameters:
p_strSeparator- The currency decimal separator.
-
getCurrencyDigitSeparator
public String 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
public void setCurrencyDigitSeparator(String p_strSeparator)
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.
-
-