|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.4.0) E15995-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.webcenter.generalsettings.model.GeneralSettingsBean
public class GeneralSettingsBean
A Managed Bean to access shared preference values from within ADF Faces pages. The Expression Language for this bean is #{generalSettings.[accessor]}
.
Constructor Summary | |
---|---|
GeneralSettingsBean() |
Method Summary | |
---|---|
java.lang.String |
getFormattedCurrentDate() Gets the current date string in the format chosen by the current user. |
java.lang.String |
getFormattedCurrentDateTime() Gets the current date and time string in the format chosen by the current user. |
java.lang.String |
getFormattedCurrentTime() Gets the current time string in the format chosen by the current user. |
java.lang.String |
getPreferredAccessibilityMode() Gets the preferred accessibility mode. |
java.lang.String |
getPreferredDatePattern() Gets the preferred date pattern. |
java.lang.String |
getPreferredDateStyle() Gets the preferred date style. |
java.lang.String |
getPreferredDateTimePattern() Gets the preferred date and time pattern. |
java.lang.String |
getPreferredSkinName() Gets the preferred skin name. |
java.lang.String |
getPreferredTimePattern() Gets the preferred time pattern. |
java.lang.String |
getPreferredTimeStyle() Gets the preferred time style. |
java.util.TimeZone |
getUserTimeZone() Gets the time zone for the current user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeneralSettingsBean()
Method Detail |
---|
public java.lang.String getFormattedCurrentDate()
#{generalSettings.formattedCurrentDate}
public java.lang.String getFormattedCurrentDateTime()
#{generalSettings.formattedCurrentDateTime}
public java.lang.String getFormattedCurrentTime()
#{generalSettings.formattedCurrentTime}
public java.lang.String getPreferredDateStyle()
#{generalSettings.preferredDateStyle}
This method will never return null. See DateFormatSetting.getDateStyle()
for the details of the date style returned if the user preference does not exist. The value returned can be used directly in the dateStyle
attribute of af:convertDateTime
or f:convertDateTime
tags. This value, along with an appropriate value for the locale
attribute, will format/parse your date output/input in accordance with the current Locale.DateFormatSetting.getDateStyle()
public java.lang.String getPreferredDatePattern()
#{generalSettings.preferredDatePattern}
The value returned can be used directly in the pattern attribute of af:convertDateTime
tags with the type="date". This will return null if date styles are used instead of date patterns.DateFormatSetting.getDatePattern()
public java.lang.String getPreferredTimeStyle()
#{generalSettings.preferredTimeStyle}
This method will never return null. See DateFormatSetting.getTimeStyle()
for the details of the time style returned if the user preference does not exist. The value returned can be used directly in the timeStyle
attribute of af:convertDateTime
or f:convertDateTime
tags. This value, along with an appropriate value for the locale
attribute, will format/parse your date output/input in accordance with the current Locale.DateFormatSetting.getTimeStyle()
public java.lang.String getPreferredTimePattern()
#{generalSettings.preferredTimePattern}
The value returned can be used directly in the pattern attribute of af:convertDateTime tags with the type="time". This will return null if time styles are used instead of time patterns.DateFormatSetting.getTimePattern()
public java.lang.String getPreferredDateTimePattern()
#{generalSettings.preferredDateTimePattern}
The value returned can be used directly in the pattern attribute of af:convertDateTime
tags with the type="both"
. This will return null if time and date styles are used instead of time and date patterns.DateFormatSetting.getDateTimePattern()
public java.util.TimeZone getUserTimeZone()
#{generalSettings.userTimeZone}
public java.lang.String getPreferredAccessibilityMode()
#{generalSettings.preferrredAccessibilityMode}
This may be used in trinidad-config.xml
in order to set the <accessibility-mode>
element using #{generalSettings.preferredAccessibilityMode}
public java.lang.String getPreferredSkinName()
#{generalSettings.preferredSkinName}
This may be used in trinidad-config.xml
in order to set the <skin-family>
element using #{generalSettings.preferredSkinName}
|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.4.0) E15995-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |