org.apache.myfaces.trinidadinternal.skin
Class SkinNotAvailable

java.lang.Object
  extended by org.apache.myfaces.trinidad.skin.Skin
      extended by org.apache.myfaces.trinidadinternal.skin.SkinImpl
          extended by org.apache.myfaces.trinidadinternal.skin.SkinNotAvailable
All Implemented Interfaces:
DocumentProviderSkin

public class SkinNotAvailable
extends SkinImpl

A Skin class used when no skin is available, to avoid null pointer exceptions, etc. (make this a singleton)


Method Summary
protected  java.lang.String getBundleName()
          Returns the name of the ResourceBundle for this Skin instance.
static SkinNotAvailable getSkinNotAvailable()
          returns the singleton instance of this class.
 java.lang.String getStyleSheetName()
          Returns the name of the style sheet for this Skin.
 java.lang.Object getTranslatedValue(org.apache.myfaces.trinidad.context.LocaleContext lContext, java.lang.String namespace, java.lang.String key)
           
protected  javax.el.ValueExpression getTranslationSourceValueExpression()
          Returns the ValueExpression of the translation source for this Skin instance.
 
Methods inherited from class org.apache.myfaces.trinidadinternal.skin.SkinImpl
addSkinAddition, getCachedTranslatedValue, getFamily, getIcon, getIcon, getId, getProperty, getRenderKitId, getSkinAdditions, getStyleClassMap, getStyleSheetDocument, getStyleSheetDocumentId, getTranslatedString, getTranslatedValue, getVersion, isDirty, putTranslatedValueInLocaleCache, registerIcon, registerStyleSheet, setDirty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSkinNotAvailable

public static SkinNotAvailable getSkinNotAvailable()
returns the singleton instance of this class.


getStyleSheetName

public java.lang.String getStyleSheetName()
Description copied from class: SkinImpl
Returns the name of the style sheet for this Skin.

Specified by:
getStyleSheetName in class SkinImpl

getTranslatedValue

public java.lang.Object getTranslatedValue(org.apache.myfaces.trinidad.context.LocaleContext lContext,
                                           java.lang.String namespace,
                                           java.lang.String key)

getBundleName

protected java.lang.String getBundleName()
Description copied from class: SkinImpl
Returns the name of the ResourceBundle for this Skin instance. This does not include the SkinAddition resource bundles. We differentiate between the two types of resource bundles so that the Skin's own resource bundle can take precedence. Note: A skin cannot have both a bundleName and a translation source value expression. If they do, then the bundlename takes precedence.

Specified by:
getBundleName in class SkinImpl

getTranslationSourceValueExpression

protected javax.el.ValueExpression getTranslationSourceValueExpression()
Description copied from class: SkinImpl
Returns the ValueExpression of the translation source for this Skin instance. This does not include the SkinAddition translation source. The Skin's own resource bundle or translation source can take precedence over the SkinAdditions resource bundle or translation source. Note: A skin cannot have both a bundleName and a translation source value expression. If they do, then the bundleName takes precedence.

Specified by:
getTranslationSourceValueExpression in class SkinImpl


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