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

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

public class LookAndFeelManager
extends java.lang.Object

Manages the set of LookAndFeel instances. LookAndFeel instances can be registered per-Agent basis.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/ui/laf/LookAndFeelManager.java#1 $) $Date: 07-dec-2005.15:27:47 $
Author:
The Oracle ADF Faces Team
See Also:
LookAndFeel

Method Summary
static LookAndFeelManager createDefaultLookAndFeelManager()
          Creates a LookAndFeelManager with default LookAndFeels registered.
static LookAndFeelManager getDefaultLookAndFeelManager()
          Returns the shared instanceof of LookAndFeelManager.
 LookAndFeel getLookAndFeel(UIXRenderingContext context)
          Gets the LookAndFeel for the specified RenderingContext.
 LookAndFeel getLookAndFeelById(java.lang.String id)
          Returns the LookAndFeel instance with the specified id.
 LookAndFeelScorer getLookAndFeelScorer(LookAndFeel laf)
          Returns the LookAndFeelScorer for the specified LookAndFeel.
 void registerLookAndFeel(LookAndFeelScorer scorer, LookAndFeel laf)
          Registers the specified LookAndFeel to be used with the specified scorer.
 void registerUIExtension(UIExtension extension)
          Adds a UIExtension to this manager.
 void unregisterLookAndFeel(LookAndFeelScorer scorer)
          Unregisters the LookAndFeel for the specified scorer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultLookAndFeelManager

public static LookAndFeelManager getDefaultLookAndFeelManager()
Returns the shared instanceof of LookAndFeelManager.


createDefaultLookAndFeelManager

public static LookAndFeelManager createDefaultLookAndFeelManager()
Creates a LookAndFeelManager with default LookAndFeels registered.


getLookAndFeel

public LookAndFeel getLookAndFeel(UIXRenderingContext context)
Gets the LookAndFeel for the specified RenderingContext.


getLookAndFeelById

public LookAndFeel getLookAndFeelById(java.lang.String id)
Returns the LookAndFeel instance with the specified id. If no LookAndFeel with the specified id has been registered with the LookAndFeelManager, returns null.

Parameters:
id - A non-null string which represents the id of a LookAndFeel
See Also:
LookAndFeel.getId()

getLookAndFeelScorer

public LookAndFeelScorer getLookAndFeelScorer(LookAndFeel laf)
Returns the LookAndFeelScorer for the specified LookAndFeel.


registerLookAndFeel

public void registerLookAndFeel(LookAndFeelScorer scorer,
                                LookAndFeel laf)
Registers the specified LookAndFeel to be used with the specified scorer.


unregisterLookAndFeel

public void unregisterLookAndFeel(LookAndFeelScorer scorer)
Unregisters the LookAndFeel for the specified scorer.


registerUIExtension

public void registerUIExtension(UIExtension extension)
Adds a UIExtension to this manager. The extension will automatically be registered with all LookAndFeels associated with this manager.



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