oracle.cabo.ui.laf
Class NameAndAgentScorer
java.lang.Object
|
+--oracle.cabo.ui.laf.LookAndFeelScorer
|
+--oracle.cabo.ui.laf.NameAndAgentScorer
- public class NameAndAgentScorer
- extends LookAndFeelScorer
Scores a LAF based on the Laf name and the agent information.
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(RenderingContext context, java.lang.String lafName)
Deprecated. Subclassers should override scoreLookAndFeel() instead. |
Score |
scoreLookAndFeel(RenderingContext 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(RenderingContext context,
java.lang.String lafName)
- Implementation of LookAndFeelScorer that produces a Score based on the required name and Agent information.
-
- 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.
score
public int score(RenderingContext context,
java.lang.String lafName)
- Deprecated. Subclassers should override scoreLookAndFeel() instead.