public abstract class SkinFactory extends Object
Constructor and Description |
---|
SkinFactory() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addSkin(String skinId,
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. |
static SkinFactory |
getFactory()
Retrieve the current SkinFactory.
|
abstract Skin |
getSkin(javax.faces.context.FacesContext context,
String skinId)
Return a
Skin instance for the specified skinId. |
abstract Skin |
getSkin(javax.faces.context.FacesContext context,
String family,
String renderKitId)
Return a
Skin instance for the specified skinFamily and
renderKitId. |
abstract Iterator<String> |
getSkinIds()
Return an
Iterator over the set of skin
identifiers registered with this factory. |
static void |
setFactory(SkinFactory factory)
Store the current SkinFactory.
|
public static SkinFactory getFactory()
public static void setFactory(SkinFactory factory)
public abstract void addSkin(String skinId, 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.
public abstract Skin getSkin(javax.faces.context.FacesContext context, String skinId)
Return a Skin
instance for the specified skinId.
If there is no registered Skin
for the specified identifier, return
null
. The set of available skin identifiers
is available via the getSkinIds()
method.
context
- FacesContext for the request currently being
processed, or null
if none is available.skinId
- Skin identifier of the requested
Skin
instancepublic abstract Skin getSkin(javax.faces.context.FacesContext context, String family, String renderKitId)
Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.