UIX 2.2.16

oracle.cabo.ui.laf
Class LookAndFeelManager

java.lang.Object
  |
  +--oracle.cabo.ui.laf.LookAndFeelManager

public class LookAndFeelManager
extends java.lang.Object

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

See Also:
LookAndFeel

Method Summary
static LookAndFeelManager createDefaultLookAndFeelManager()
          Creates a LookAndFeelManager with default LookAndFeels registered.
static LookAndFeelManager createDefaultLookAndFeelManager(javax.servlet.ServletContext context)
          Creates a LookAndFeelManager with default LookAndFeels registered.
static LookAndFeelManager getDefaultLookAndFeelManager()
          Returns the shared instanceof of LookAndFeelManager.
 LookAndFeel getLookAndFeel(RenderingContext 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.

createDefaultLookAndFeelManager

public static LookAndFeelManager createDefaultLookAndFeelManager(javax.servlet.ServletContext context)
Creates a LookAndFeelManager with default LookAndFeels registered.

getLookAndFeel

public LookAndFeel getLookAndFeel(RenderingContext 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.

UIX 2.2.16