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

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

public class NameOnlyScorer
extends LookAndFeelScorer

NameScoreProxyr delegates to another LookAndFeelScorer instance to provide all scoring except for the name. This class is used to score LookAndFeelExtensions. LookAndFeelExtensions should inherit scoring from their base LookAndFeel's scorer, with one exception: the LookAndFeelExtension's family name may differ from the base LookAndFeel. The NameScorer calls the wrapped LookAndFeelScorer to produce a base Score - and then corrects the family name score so that the result will match the LookAndFeelExtension's family name.

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

Field Summary
 
Fields inherited from class org.apache.myfaces.trinidadinternal.ui.laf.LookAndFeelScorer
COMPARISON_MATCH, DONT_CARE_MATCH, EXACT_MATCH, NO_MATCH, RANGE_MATCH
 
Constructor Summary
NameOnlyScorer(java.lang.String requiredLafName, LookAndFeelScorer baseScorer)
           
 
Method Summary
 Score scoreLookAndFeel(UIXRenderingContext context, java.lang.String lafName)
          Produces a Score for the current request, using the base LookAndFeelScorer to score everything other than the look and feel family name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameOnlyScorer

public NameOnlyScorer(java.lang.String requiredLafName,
                      LookAndFeelScorer baseScorer)
Method Detail

scoreLookAndFeel

public Score scoreLookAndFeel(UIXRenderingContext context,
                              java.lang.String lafName)
Produces a Score for the current request, using the base LookAndFeelScorer to score everything other than the look and feel family name.

Specified by:
scoreLookAndFeel in class LookAndFeelScorer
Parameters:
context - The RenderingContext for the current request. LookAndFeelScorers can use the RenderingContext to get at information which impacts the score, such as the Agent information.
lafName - The preferred look and feel family name. This value may be null if there is no preferred look and feel family. In this case, LookAndFeelScorer implementations should return Score.DONT_CARE_MATCH for the name score.


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