|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidad.skin.SkinFactory
org.apache.myfaces.trinidadinternal.skin.SkinFactoryImpl
public class SkinFactoryImpl
Factory for creating Skin objects.
| Constructor Summary | |
|---|---|
SkinFactoryImpl()
Constructor registers default and custom skins |
|
| Method Summary | |
|---|---|
void |
addSkin(java.lang.String skinId,
org.apache.myfaces.trinidad.skin.Skin skin)
Register the specified Skin instance, associated with
the specified skinId, to be supported by this
SkinFactory, replacing any previously registered
Skin for this identifier. |
org.apache.myfaces.trinidad.skin.Skin |
getSkin(javax.faces.context.FacesContext context,
java.lang.String skinId)
given the skinId, pass back the Skin. |
org.apache.myfaces.trinidad.skin.Skin |
getSkin(javax.faces.context.FacesContext context,
java.lang.String family,
java.lang.String renderKitId)
given the skinFamily and renderKitId, pass back the Skin. |
org.apache.myfaces.trinidad.skin.Skin |
getSkin(javax.faces.context.FacesContext context,
java.lang.String family,
java.lang.String renderKitId,
java.lang.String version)
Given the skin family, renderKitId, and version, return the best matched skin. |
java.util.Iterator<java.lang.String> |
getSkinIds()
|
| Methods inherited from class org.apache.myfaces.trinidad.skin.SkinFactory |
|---|
getFactory, setFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SkinFactoryImpl()
| Method Detail |
|---|
public void addSkin(java.lang.String skinId,
org.apache.myfaces.trinidad.skin.Skin skin)
Register the specified Skin instance, associated with
the specified skinId, to be supported by this
SkinFactory, replacing any previously registered
Skin for this identifier.
A warning will be logged if a previously registered Skin was replaced, since it could produce
inconsistent results if the application cached the previously registered Skin.
addSkin in class org.apache.myfaces.trinidad.skin.SkinFactoryskinId - Identifier of the Skin to registerskin - Skin instance that we are registering
public org.apache.myfaces.trinidad.skin.Skin getSkin(javax.faces.context.FacesContext context,
java.lang.String skinId)
getSkin in class org.apache.myfaces.trinidad.skin.SkinFactorycontext - FacesContext. If not available, pass in null.skinId -
public org.apache.myfaces.trinidad.skin.Skin getSkin(javax.faces.context.FacesContext context,
java.lang.String family,
java.lang.String renderKitId)
getSkin in class org.apache.myfaces.trinidad.skin.SkinFactorycontext - FacesContext for the request currently being
processed, or null if none is available.family - skin family of the requested Skin instancerenderKitId - RenderKit identifier of the requested:
XhtmlConstants.APACHE_TRINIDAD_DESKTOP, XhtmlConstants.APACHE_TRINIDAD_PDA, or
XhtmlConstants.APACHE_TRINIDAD_PORTLET
Skin instance
public org.apache.myfaces.trinidad.skin.Skin getSkin(javax.faces.context.FacesContext context,
java.lang.String family,
java.lang.String renderKitId,
java.lang.String version)
getSkin in class org.apache.myfaces.trinidad.skin.SkinFactorycontext - family - renderKitId - version - The version of the skin you want to return. This can be
"default", or a version name (e.g., "v1"), or null or ""
(if you want the skin that does not have a version set).
public java.util.Iterator<java.lang.String> getSkinIds()
getSkinIds in class org.apache.myfaces.trinidad.skin.SkinFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||