org.apache.myfaces.trinidadinternal.skin
Class SkinUtils

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.skin.SkinUtils

public class SkinUtils
extends java.lang.Object

Utility functions for creating Skin objects and SkinExtension objects from the trinidad-skins.xml file and adding them to the SkinFactory. It also adds SkinAdditions to the Skin objects.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/skin/SkinUtils.java#0 $) $Date: 10-nov-2005.18:59:00 $

Method Summary
static ParserManager createDefaultManager()
          Creates a ParserManager pre-registered witih all the default ParserFactories needed to create SkinExtensions.
static void registerBaseSkins()
          Register the base skins with the SkinFactory.
static void registerSkinExtensions(javax.faces.context.ExternalContext context)
          Register any custom skin extensions (and skin-additions) found in the trinidad-skins.xml file with the SkinFactory.
static org.apache.myfaces.trinidad.skin.Icon resolveReferenceIcon(org.apache.myfaces.trinidad.skin.Skin skin, ReferenceIcon refIcon)
          Returns the actual Icon referenced by the ReferenceIcon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

registerBaseSkins

public static void registerBaseSkins()
Register the base skins with the SkinFactory. (simple/minimal) Make sure the SkinFactory.getFactory() does not return null before calling this method.


registerSkinExtensions

public static void registerSkinExtensions(javax.faces.context.ExternalContext context)
Register any custom skin extensions (and skin-additions) found in the trinidad-skins.xml file with the SkinFactory. Make sure the SkinFactory.getFactory() does not return null before calling this method. You should call registerBaseSkins() before calling this method.

Parameters:
context - ServletContext, used to get the trinidad-skins.xml file.

resolveReferenceIcon

public static org.apache.myfaces.trinidad.skin.Icon resolveReferenceIcon(org.apache.myfaces.trinidad.skin.Skin skin,
                                                                         ReferenceIcon refIcon)
Returns the actual Icon referenced by the ReferenceIcon.

Parameters:
skin - the Skin to use when resolving the ReferenceIcon
refIcon - a ReferenceIcon instance
Returns:
icon which is resolved. i.e., it is not a ReferenceIcon.

createDefaultManager

public static ParserManager createDefaultManager()
Creates a ParserManager pre-registered witih all the default ParserFactories needed to create SkinExtensions.



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