org.apache.myfaces.trinidadinternal.ui.laf
Class NameAndAgentScorer
java.lang.Object
org.apache.myfaces.trinidadinternal.ui.laf.LookAndFeelScorer
org.apache.myfaces.trinidadinternal.ui.laf.NameAndAgentScorer
public class NameAndAgentScorer
- extends LookAndFeelScorer
Scores a LAF based on the Laf name and the agent information.
- Version:
- $Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/ui/laf/NameAndAgentScorer.java#0 $) $Date: 10-nov-2005.18:50:32 $
- Author:
- The Oracle ADF Faces Team
Constructor Summary |
NameAndAgentScorer(java.lang.String requiredLafName,
java.lang.Integer requiredAgentType,
java.lang.Integer requiredAgentApplication,
java.lang.Integer requiredAgentMajorVersion,
java.lang.Integer requiredAgentOS)
Create a Scorer for scoring look and feesl based on the name
and agent information. |
Method Summary |
int |
score(UIXRenderingContext context,
java.lang.String lafName)
Deprecated. Subclassers should override scoreLookAndFeel() instead. |
Score |
scoreLookAndFeel(UIXRenderingContext context,
java.lang.String lafName)
Implementation of LookAndFeelScorer that produces a Score
based on the required name and Agent information. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NameAndAgentScorer
public NameAndAgentScorer(java.lang.String requiredLafName,
java.lang.Integer requiredAgentType,
java.lang.Integer requiredAgentApplication,
java.lang.Integer requiredAgentMajorVersion,
java.lang.Integer requiredAgentOS)
- Create a Scorer for scoring look and feesl based on the name
and agent information. If a value is supplied for a parameter,
the agent or name must be equal to that value in order for
the scorer to create a permissable score. A null value for a
parameter means that the scorer doesn't care about the value.
scoreLookAndFeel
public Score scoreLookAndFeel(UIXRenderingContext context,
java.lang.String lafName)
- Implementation of LookAndFeelScorer that produces a Score
based on the required name and Agent information.
- 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.
score
@Deprecated
public int score(UIXRenderingContext context,
java.lang.String lafName)
- Deprecated. Subclassers should override scoreLookAndFeel() instead.
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.