oracle.cabo.ui.laf
Class NameOnlyScorer
java.lang.Object
|
+--oracle.cabo.ui.laf.LookAndFeelScorer
|
+--oracle.cabo.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.
Method Summary |
Score |
scoreLookAndFeel(RenderingContext 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 |
NameOnlyScorer
public NameOnlyScorer(java.lang.String requiredLafName,
LookAndFeelScorer baseScorer)
scoreLookAndFeel
public Score scoreLookAndFeel(RenderingContext 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.
- Overrides:
scoreLookAndFeel
in class LookAndFeelScorer
- Following copied from class:
oracle.cabo.ui.laf.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.