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

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.ui.laf.LookAndFeel
      extended by org.apache.myfaces.trinidadinternal.ui.laf.LookAndFeelExtension

public class LookAndFeelExtension
extends LookAndFeel

A LookAndFeel which extends another LookAndFeel, possibly adding customizations.

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

Constructor Summary
LookAndFeelExtension(LookAndFeel baseLookAndFeel, java.lang.String id, java.lang.String family)
          Creates a LookAndFeel which extends the specified base LookAndFeel.
 
Method Summary
 LookAndFeel getBaseLookAndFeel()
          Returns the base LookAndFeel which this custom LookAndFeel "extends".
 java.lang.String getFamily()
          Returns the name of the look and feel family that this LookAndFeelExtension belongs to.
 java.lang.String getId()
          Returns the id of this custom LookAndFeel.
 RendererManager getRendererManager()
          Implementation of LookAndFeel.getRendererManager() which delegates to the base LookAndFeel.
 RendererManager getRendererManager(java.lang.String facet)
          Implementation of LookAndFeel.getRendererManager() which delegates to the base LookAndFeel.
 java.util.Iterator<java.lang.String> getSupportedFacets()
          Implementation of LookAndFeel.getSupportedFacets() which delegates to the base LookAndFeel.
 void registerRenderer(java.lang.String namespace, java.lang.String name, java.lang.String facet, Renderer renderer)
          Registers a custom Renderer for the specified component namespace/name.
 void registerRenderer(java.lang.String namespace, java.lang.String name, java.lang.String facet, java.lang.String className)
          Registers a custom Renderer for the specified component using the Renderer class name.
 
Methods inherited from class org.apache.myfaces.trinidadinternal.ui.laf.LookAndFeel
supportsFacet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookAndFeelExtension

public LookAndFeelExtension(LookAndFeel baseLookAndFeel,
                            java.lang.String id,
                            java.lang.String family)
Creates a LookAndFeel which extends the specified base LookAndFeel.

Parameters:
baseLookAndFeel - The base LookAndFeel that this custom LookAndFeel "extends".
id - A string which can be used to uniquely identify the custom LookAndFeel implementation.
family - The look and feel family name that this LookAndFeelExtension belongs to
Method Detail

getBaseLookAndFeel

public LookAndFeel getBaseLookAndFeel()
Returns the base LookAndFeel which this custom LookAndFeel "extends".


getId

public java.lang.String getId()
Returns the id of this custom LookAndFeel.

Overrides:
getId in class LookAndFeel
See Also:
LookAndFeelManager.getLookAndFeelById(java.lang.String)

getFamily

public java.lang.String getFamily()
Returns the name of the look and feel family that this LookAndFeelExtension belongs to.

Overrides:
getFamily in class LookAndFeel

getRendererManager

public RendererManager getRendererManager()
Implementation of LookAndFeel.getRendererManager() which delegates to the base LookAndFeel.

Specified by:
getRendererManager in class LookAndFeel
See Also:
RendererManager

getRendererManager

public RendererManager getRendererManager(java.lang.String facet)
Implementation of LookAndFeel.getRendererManager() which delegates to the base LookAndFeel.

Overrides:
getRendererManager in class LookAndFeel
See Also:
RendererManager, LookAndFeel.supportsFacet(java.lang.String)

getSupportedFacets

public java.util.Iterator<java.lang.String> getSupportedFacets()
Implementation of LookAndFeel.getSupportedFacets() which delegates to the base LookAndFeel.

Overrides:
getSupportedFacets in class LookAndFeel
See Also:
LookAndFeel.supportsFacet(java.lang.String)

registerRenderer

public void registerRenderer(java.lang.String namespace,
                             java.lang.String name,
                             java.lang.String facet,
                             Renderer renderer)
Registers a custom Renderer for the specified component namespace/name. This Renderer will be used in place of the Renderer provided by the base Look And Feel.

Parameters:
namespace - The namespace of the component for which the custom Renderer should be used.
name - The name of the component for which the custom Renderer should be used.
facet - The name of the facet for which the custom Renderer should be used. If null, the Renderer will be registered for all supported facets.
Renderer - The custom Renderer

registerRenderer

public void registerRenderer(java.lang.String namespace,
                             java.lang.String name,
                             java.lang.String facet,
                             java.lang.String className)
Registers a custom Renderer for the specified component using the Renderer class name. The Renderer instance is instantiated the first time it is requested.

Parameters:
namespace - The namespace of the component for which the custom Renderer should be used.
name - The name of the component for which the custom Renderer should be used.
facet - The name of the facet for which the custom Renderer should be used. If null, the Renderer will be registered for all supported facets.
className - The clss name of the Renderer


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