|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidad.skin.Skin
org.apache.myfaces.trinidadinternal.skin.SkinImpl
public abstract class SkinImpl
Defines the components (icons, styles, etc) which are used to implement a particular skin. This implementation class adds the details that should not be exposed outside of this API.
SkinFactory,
org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext#getSkinFactory| Constructor Summary | |
|---|---|
SkinImpl()
|
|
| Method Summary | |
|---|---|
void |
addSkinAddition(org.apache.myfaces.trinidad.skin.SkinAddition skinAddition)
Adds a SkinAddition on this Skin. |
protected abstract java.lang.String |
getBundleName()
Returns the name of the ResourceBundle for this Skin instance. |
protected java.lang.Object |
getCachedTranslatedValue(org.apache.myfaces.trinidad.context.LocaleContext lContext,
java.lang.String key)
Returns a translated value in the LocaleContext's translation Locale, or null if the key could not be found. |
java.lang.String |
getFamily()
Returns the name of the skin "family" for this skin. |
org.apache.myfaces.trinidad.skin.Icon |
getIcon(java.lang.String iconName)
Our renderers call this to get the icon. |
org.apache.myfaces.trinidad.skin.Icon |
getIcon(java.lang.String iconName,
boolean resolveIcon)
Returns an Icon object; can be a ReferenceIcon. |
java.lang.String |
getId()
Returns an string identifier which uniquely identies this Skin implementation. |
java.lang.Object |
getProperty(java.lang.Object key)
Retrieves a property that was set via a call to setProperty(). |
java.lang.String |
getRenderKitId()
Returns the renderKitId for the Skin. |
java.util.List<org.apache.myfaces.trinidad.skin.SkinAddition> |
getSkinAdditions()
Gets an unmodifiable List of SkinAdditions that have been added on this Skin. |
java.util.Map<java.lang.String,java.lang.String> |
getStyleClassMap(org.apache.myfaces.trinidad.context.RenderingContext arc)
Returns the style class map, or null if there is no map. |
StyleSheetDocument |
getStyleSheetDocument(StyleContext context)
Returns the StyleSheetDocument object which defines all of the styles for this Skin, including any styles that are contributed by skin-additions. |
java.lang.String |
getStyleSheetDocumentId(org.apache.myfaces.trinidad.context.RenderingContext arc)
Returns the id of the Skin's stylesheet document. |
abstract java.lang.String |
getStyleSheetName()
Returns the name of the style sheet for this Skin. |
java.lang.String |
getTranslatedString(org.apache.myfaces.trinidad.context.LocaleContext lContext,
java.lang.String key)
Returns a translated String in the LocaleContext's translation Locale. |
java.lang.Object |
getTranslatedValue(org.apache.myfaces.trinidad.context.LocaleContext lContext,
java.lang.String key)
Returns a translated value in the LocaleContext's translation Locale. |
protected abstract javax.el.ValueExpression |
getTranslationSourceValueExpression()
Returns the ValueExpression of the translation source for this Skin instance. |
org.apache.myfaces.trinidad.skin.SkinVersion |
getVersion()
|
boolean |
isDirty()
Check to see if this Skin has been marked dirty. |
protected void |
putTranslatedValueInLocaleCache(org.apache.myfaces.trinidad.context.LocaleContext lContext,
java.lang.String key,
java.lang.Object value)
Put the locale/key/value in the cache (i.e., translations map). |
void |
registerIcon(java.lang.String iconName,
org.apache.myfaces.trinidad.skin.Icon icon)
Registers an Icon for the specified icon name. |
void |
registerStyleSheet(java.lang.String styleSheetName)
Deprecated. Use addSkinAddition instead |
void |
setDirty(boolean dirty)
Sets the dirty flag of the Skin. |
void |
setProperty(java.lang.Object key,
java.lang.Object value)
Sets a value for the specified property key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SkinImpl()
| Method Detail |
|---|
public java.lang.String getId()
getId in class org.apache.myfaces.trinidad.skin.Skinorg.apache.myfaces.trinidadinternal.skin.SkinFactory#getSkinpublic java.lang.String getFamily()
getFamily in class org.apache.myfaces.trinidad.skin.Skinpublic org.apache.myfaces.trinidad.skin.SkinVersion getVersion()
getVersion in class org.apache.myfaces.trinidad.skin.Skinpublic java.lang.String getRenderKitId()
getRenderKitId in class org.apache.myfaces.trinidad.skin.Skinpublic java.lang.String getStyleSheetDocumentId(org.apache.myfaces.trinidad.context.RenderingContext arc)
getStyleSheetDocumentId in class org.apache.myfaces.trinidad.skin.Skinpublic abstract java.lang.String getStyleSheetName()
getStyleSheetName in class org.apache.myfaces.trinidad.skin.Skin
public java.lang.String getTranslatedString(org.apache.myfaces.trinidad.context.LocaleContext lContext,
java.lang.String key)
throws java.util.MissingResourceException
getTranslatedString in class org.apache.myfaces.trinidad.skin.Skinjava.util.MissingResourceException
public java.lang.Object getTranslatedValue(org.apache.myfaces.trinidad.context.LocaleContext lContext,
java.lang.String key)
throws java.util.MissingResourceException
getTranslatedValue in class org.apache.myfaces.trinidad.skin.SkinlContext - The LocaleContext which provides the translation Locale.
Cannot be null.key - The key of the translation to retrieve. Cannot be null.
java.lang.NullPointerException - if lContext or key is null.
java.util.MissingResourceException - if the resource key cannot be found in the skin's bundle
or the skin additions' bundles.public org.apache.myfaces.trinidad.skin.Icon getIcon(java.lang.String iconName)
getIcon in class org.apache.myfaces.trinidad.skin.Skin
public org.apache.myfaces.trinidad.skin.Icon getIcon(java.lang.String iconName,
boolean resolveIcon)
getIcon in class org.apache.myfaces.trinidad.skin.SkiniconName - The name of the icon to retrieve. Cannot be null
java.lang.NullPointerException - if iconName is null.
public void registerIcon(java.lang.String iconName,
org.apache.myfaces.trinidad.skin.Icon icon)
registerIcon in class org.apache.myfaces.trinidad.skin.SkiniconName - The name of the icon. Cannot be null.icon - The Icon to register.
java.lang.NullPointerException - if iconName is null.public void addSkinAddition(org.apache.myfaces.trinidad.skin.SkinAddition skinAddition)
addSkinAddition in class org.apache.myfaces.trinidad.skin.SkinskinAddition - The SkinAddition object to add to the Skin.
java.lang.NullPointerException - if SkinAddition is null.public java.util.List<org.apache.myfaces.trinidad.skin.SkinAddition> getSkinAdditions()
getSkinAdditions in class org.apache.myfaces.trinidad.skin.SkinaddSkinAddition(SkinAddition)public java.util.Map<java.lang.String,java.lang.String> getStyleClassMap(org.apache.myfaces.trinidad.context.RenderingContext arc)
getStyleClassMap in class org.apache.myfaces.trinidad.skin.Skinarc - RenderingContext
public StyleSheetDocument getStyleSheetDocument(StyleContext context)
getStyleSheetDocument in interface DocumentProviderSkinpublic java.lang.Object getProperty(java.lang.Object key)
getProperty in class org.apache.myfaces.trinidad.skin.Skin
public void setProperty(java.lang.Object key,
java.lang.Object value)
setProperty in class org.apache.myfaces.trinidad.skin.Skinpublic void registerStyleSheet(java.lang.String styleSheetName)
registerStyleSheet in class org.apache.myfaces.trinidad.skin.SkinstyleSheetName - addSkinAddition(SkinAddition)public boolean isDirty()
isDirty in class org.apache.myfaces.trinidad.skin.Skinpublic void setDirty(boolean dirty)
setDirty in class org.apache.myfaces.trinidad.skin.Skin
protected java.lang.Object getCachedTranslatedValue(org.apache.myfaces.trinidad.context.LocaleContext lContext,
java.lang.String key)
lContext - The LocaleContext which provides the translation Locale.
Cannot be null.key - The key of the translation to retrieve. Cannot be null.
java.lang.NullPointerException - if lContext or key is null.getTranslatedValue(LocaleContext, String)
protected void putTranslatedValueInLocaleCache(org.apache.myfaces.trinidad.context.LocaleContext lContext,
java.lang.String key,
java.lang.Object value)
lContext - key - value - protected abstract java.lang.String getBundleName()
protected abstract javax.el.ValueExpression getTranslationSourceValueExpression()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||