org.richfaces.skin
Class AbstractSkinFactory
java.lang.Object
org.richfaces.skin.SkinFactory
org.richfaces.skin.AbstractSkinFactory
- Direct Known Subclasses:
- SkinFactoryImpl
public abstract class AbstractSkinFactory
- extends org.richfaces.skin.SkinFactory
- Author:
- Nick Belaevski
Methods inherited from class org.richfaces.skin.SkinFactory |
getBaseSkin, getDefaultSkin, getInstance, getInstance, getSkin, getTheme |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSkinFactory
public AbstractSkinFactory()
processProperties
protected void processProperties(javax.faces.context.FacesContext context,
Map<Object,Object> properties)
buildSkin
protected org.richfaces.skin.Skin buildSkin(javax.faces.context.FacesContext context,
String name)
throws org.richfaces.skin.SkinNotFoundException
- Factory method for build skin from properties files. for given skin name,
search in classpath all resources with name 'name'.skin.properties and
append in content to default properties. First, get it from
META-INF/skins/ , next - from root package. for any place search order
determined by
ClassLoader
realisation.
- Parameters:
name
- name for builded skin.defaultProperties
-
- Returns:
- skin instance for current name
- Throws:
SkinNotFoundException
- -
if no skin properies found for name.
loadProperties
protected Properties loadProperties(String name,
String[] paths)
throws org.richfaces.skin.SkinNotFoundException
- Parameters:
name
- paths
-
- Returns:
-
- Throws:
SkinNotFoundException
getSkin
public org.richfaces.skin.Skin getSkin(javax.faces.context.FacesContext context,
String name)
- Specified by:
getSkin
in class org.richfaces.skin.SkinFactory
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.