org.apache.myfaces.trinidadinternal.skin
Class SkinFactoryImpl

java.lang.Object
  extended by org.apache.myfaces.trinidad.skin.SkinFactory
      extended by org.apache.myfaces.trinidadinternal.skin.SkinFactoryImpl

public class SkinFactoryImpl
extends org.apache.myfaces.trinidad.skin.SkinFactory

Factory for creating Skin objects.

Author:
The Oracle ADF Faces Team

Constructor Summary
SkinFactoryImpl()
          Constructor registers default and custom skins
 
Method Summary
 void addSkin(java.lang.String skinId, org.apache.myfaces.trinidad.skin.Skin skin)
           
 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.
 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

SkinFactoryImpl

public SkinFactoryImpl()
Constructor registers default and custom skins

Method Detail

addSkin

public void addSkin(java.lang.String skinId,
                    org.apache.myfaces.trinidad.skin.Skin skin)
Specified by:
addSkin in class org.apache.myfaces.trinidad.skin.SkinFactory

getSkin

public org.apache.myfaces.trinidad.skin.Skin getSkin(javax.faces.context.FacesContext context,
                                                     java.lang.String skinId)
given the skinId, pass back the Skin.

Specified by:
getSkin in class org.apache.myfaces.trinidad.skin.SkinFactory
Parameters:
context - FacesContext. If not available, pass in null.
skinId -
Returns:
Skin that is in this SkinFactory and has the skinId.

getSkin

public 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.

Specified by:
getSkin in class org.apache.myfaces.trinidad.skin.SkinFactory
Parameters:
context - FacesContext for the request currently being processed, or null if none is available.
family - skin family of the requested Skin instance
renderKitId - RenderKit identifier of the requested: XhtmlConstants.APACHE_TRINIDAD_DESKTOP, XhtmlConstants.APACHE_TRINIDAD_PDA, or XhtmlConstants.APACHE_TRINIDAD_PORTLET Skin instance

getSkinIds

public java.util.Iterator<java.lang.String> getSkinIds()
Specified by:
getSkinIds in class org.apache.myfaces.trinidad.skin.SkinFactory


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.