org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.jsLibs
Class LocaleInfoScriptlet

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.jsLibs.Scriptlet
      extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.jsLibs.LibraryScriptlet
          extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.jsLibs.LocaleInfoScriptlet

public class LocaleInfoScriptlet
extends LibraryScriptlet

Scriptlet for registering locale information.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/renderkit/core/xhtml/jsLibs/LocaleInfoScriptlet.java#0 $) $Date: 10-nov-2005.19:02:47 $

Field Summary
static java.lang.String LOCALE_INFO_KEY
           
 
Constructor Summary
LocaleInfoScriptlet()
           
 
Method Summary
protected  java.lang.String getExtraParameters(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc)
           
protected  java.util.Locale getFormattingLocale(org.apache.myfaces.trinidad.context.RenderingContext rc)
           
protected  java.lang.String getLibraryName(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc)
           
 java.lang.String getSupportedLocaleVariant(org.apache.myfaces.trinidad.context.RenderingContext arc)
          Returns the locale variant type to use when formatting dates.
protected  void outputScriptletImpl(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc)
          Outputs the scriptlet.
static Scriptlet sharedInstance()
           
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.jsLibs.LibraryScriptlet
embedInScriptTagImpl, getBaseLibURL, getLibraryNameWithVersion, getLibraryURL, getScriptletKey, outputScriptletContent, registerSelf
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.jsLibs.Scriptlet
embedInScriptTag, outputDependency, outputScriptlet, registerSelfWithKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCALE_INFO_KEY

public static final java.lang.String LOCALE_INFO_KEY
See Also:
Constant Field Values
Constructor Detail

LocaleInfoScriptlet

public LocaleInfoScriptlet()
Method Detail

sharedInstance

public static Scriptlet sharedInstance()

outputScriptletImpl

protected void outputScriptletImpl(javax.faces.context.FacesContext context,
                                   org.apache.myfaces.trinidad.context.RenderingContext arc)
                            throws java.io.IOException
Description copied from class: Scriptlet
Outputs the scriptlet.

Overrides:
outputScriptletImpl in class LibraryScriptlet
Throws:
java.io.IOException

getLibraryName

protected java.lang.String getLibraryName(javax.faces.context.FacesContext context,
                                          org.apache.myfaces.trinidad.context.RenderingContext arc)
Overrides:
getLibraryName in class LibraryScriptlet

getExtraParameters

protected java.lang.String getExtraParameters(javax.faces.context.FacesContext context,
                                              org.apache.myfaces.trinidad.context.RenderingContext arc)
Overrides:
getExtraParameters in class LibraryScriptlet

getFormattingLocale

protected java.util.Locale getFormattingLocale(org.apache.myfaces.trinidad.context.RenderingContext rc)

getSupportedLocaleVariant

public java.lang.String getSupportedLocaleVariant(org.apache.myfaces.trinidad.context.RenderingContext arc)
Returns the locale variant type to use when formatting dates. The locale variant is a configuration parameter. It defaults to Java style locale data, but it can be set to a variant Locale (e.g. 'ORACLE10G' or 'ORACLE9I') in which case the appropriate data should be used. Currently, the only Locale variant supported is 'ORACLE10G'.

Parameters:
context - The current RenderingContext.


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.