|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidadinternal.ui.laf.LookAndFeelScorer
@Deprecated public abstract class LookAndFeelScorer
The LookAndFeelScorer is responsible for producing a score that is used in the LookAndFeel selection process. A LookAndFeelScorer is specified for each LookAndFeel that is registered with the LookAndFeelManager. When it is time to pick a LookAndFeel, LookAndFeelScore.score() is called for each LookAndFeel. The LookAndFeel that produces the highest score is used to render the response.
Score| Field Summary | |
|---|---|
static int |
COMPARISON_MATCH
Deprecated. |
static int |
DONT_CARE_MATCH
Deprecated. |
static int |
EXACT_MATCH
Deprecated. |
static int |
NO_MATCH
Deprecated. |
static int |
RANGE_MATCH
Deprecated. |
| Constructor Summary | |
|---|---|
LookAndFeelScorer()
Deprecated. |
|
| Method Summary | |
|---|---|
abstract Score |
scoreLookAndFeel(UIXRenderingContext context,
java.lang.String lafName)
Deprecated. Generates a Score which is used to determine whether the LookAndFeel associated with this LookAndFeelScorer is the best LookAndFeel to use for the current request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DONT_CARE_MATCH
Score.DONT_CARE_MATCH,
Constant Field Valuespublic static final int COMPARISON_MATCH
Score.COMPARISON_MATCH,
Constant Field Valuespublic static final int RANGE_MATCH
Score.RANGE_MATCH,
Constant Field Valuespublic static final int EXACT_MATCH
Score.EXACT_MATCH,
Constant Field Valuespublic static final int NO_MATCH
Score.NO_MATCH,
Constant Field Values| Constructor Detail |
|---|
public LookAndFeelScorer()
| Method Detail |
|---|
public abstract Score scoreLookAndFeel(UIXRenderingContext context,
java.lang.String lafName)
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||