org.apache.myfaces.trinidadinternal.ui.laf
Class LookAndFeel

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.ui.laf.LookAndFeel
Direct Known Subclasses:
BaseLookAndFeel, LookAndFeelExtension

public abstract class LookAndFeel
extends java.lang.Object

Defines the components which are used to implement a particular look and feel (for example, the Browser Look And Feel). The LookAndFeel can vary on a per-request basis, to allow rendering to vary based on the target Agent or a user preference.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/ui/laf/LookAndFeel.java#0 $) $Date: 10-nov-2005.18:50:30 $
Author:
The Oracle ADF Faces Team
See Also:
LookAndFeelManager, UIXRenderingContext.getLookAndFeel()

Constructor Summary
LookAndFeel()
           
 
Method Summary
 java.lang.String getFamily()
          Returns the name of the look and feel "family" for this look and feel.
 java.lang.String getId()
          Returns an string identifier which uniquely identies this LookAndFeel implementation.
abstract  RendererManager getRendererManager()
          Returns the default RendererManager for this LookAndFeel.
 RendererManager getRendererManager(java.lang.String facet)
          Returns the RendererManager for a particular facet of this LookAndFeel.
 java.util.Iterator<java.lang.String> getSupportedFacets()
          Returns an enumeration of all supported facets.
 boolean supportsFacet(java.lang.String facet)
          Returns true if a given facet is supported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookAndFeel

public LookAndFeel()
Method Detail

getId

public java.lang.String getId()
Returns an string identifier which uniquely identies this LookAndFeel implementation. LookAndFeel implementations can be retrieved by id via LookAndFeelManager.getLookAndFeelById().

See Also:
LookAndFeelManager.getLookAndFeelById(java.lang.String)

getFamily

public java.lang.String getFamily()
Returns the name of the look and feel "family" for this look and feel. The family name is used when specifying a preferred look and feel. This provides a way to refer to a group of related look and feel implementations while allowing the particular look and feel instance to be selected based on the current agent.


getRendererManager

public abstract RendererManager getRendererManager()
Returns the default RendererManager for this LookAndFeel.

See Also:
RendererManager

getRendererManager

public RendererManager getRendererManager(java.lang.String facet)
Returns the RendererManager for a particular facet of this LookAndFeel. By default, all LookAndFeels support only UIConstants.FACET_DEFAULT; if the requested facet is not found, this default facet will be used instead.

See Also:
RendererManager, supportsFacet(java.lang.String)

getSupportedFacets

public java.util.Iterator<java.lang.String> getSupportedFacets()
Returns an enumeration of all supported facets. This must be a non-empty enumeration, and must always include at least UIConstants.FACET_DEFAULT.

See Also:
supportsFacet(java.lang.String)

supportsFacet

public boolean supportsFacet(java.lang.String facet)
Returns true if a given facet is supported.

See Also:
getSupportedFacets()


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