Package org.apache.myfaces.trinidadinternal.skin

Examples of org.apache.myfaces.trinidadinternal.skin.AgentAtRuleMatcher$AndMatcher


   
    // If any style sheet has a non-null browser variant, we must
    // have a browser match.
    for (int i = 0; i < styleSheets.length; i++)
    {
      AgentAtRuleMatcher agentMatcher = styleSheets[i].getAgentMatcher();
     
      if (agentMatcher != null)
      {
        Set<AgentAtRuleMatcher.Match> matches = agentMatcher.match(agent);
       
        if (matches.contains(AgentAtRuleMatcher.Match.APPLICATION))
        {
          // latch the browser matched
          browserMatched = true;
View Full Code Here


    {
      styles = _styles.toArray(new StyleNode[_styles.size()]);
    }
    // Do not create an agentMatcher if there are no browsers or versions to compare against.
    // This way a styleSheetNode will match any browser if it hasn't specified a specific browser.
    AgentAtRuleMatcher agentMatcher =
      (_browsers.isEmpty()) ? null : new AgentAtRuleMatcher(_browsers, _versions);

    return new StyleSheetNode(
        styles,
        null,      // icons only supported in skin CSS - not XSS
        _locales,
View Full Code Here

   
    // If any style sheet has a non-null browser variant, we must
    // have a browser match.
    for (int i = 0; i < styleSheets.length; i++)
    {
      AgentAtRuleMatcher agentMatcher = styleSheets[i].getAgentMatcher();
     
      if (agentMatcher != null)
      {
        Set<AgentAtRuleMatcher.Match> matches = agentMatcher.match(agent);
       
        if (matches.contains(AgentAtRuleMatcher.Match.APPLICATION))
        {
          // latch the browser matched
          browserMatched = true;
View Full Code Here

    StyleSheetNode styleSheetNode =
      new StyleSheetNode(styleSheetOneNodes,
                         iconNodes,
                         localeSet,
                         0,
                         new AgentAtRuleMatcher(browserSelector),
                         platforms,
                         0,
                         accProps);
    StyleSheetNode anotherStyleSheetNode =
      new StyleSheetNode(anotherStyleSheetOneNodes,
                         anotherIconNodes,
                         localeSet,
                         0,
                         new AgentAtRuleMatcher(anotherBrowserSelector),
                         anotherPlatforms,
                         0,
                         anotherAccProps);
    StyleSheetNode sameDiffOrderStyleSheetNode =
      new StyleSheetNode(anotherStyleSheetOneNodes,
                         anotherIconNodes,
                         diffOrderLocalesSet,
                         0,
                         new AgentAtRuleMatcher(anotherBrowserDiffOrder),
                         differentOrderPlatforms,
                         0,
                         differentOrderAccProps);

    // these should be equal
View Full Code Here

      new StyleSheetNode(styleSheetOneNodes,
                         iconNodes,
                         null,
                         localeSet,
                         0,
                         new AgentAtRuleMatcher(browserSelector),
                         platforms,
                         0,
                         accProps);
    StyleSheetNode anotherStyleSheetNode =
      new StyleSheetNode(anotherStyleSheetOneNodes,
                         anotherIconNodes,
                         null,
                         localeSet,
                         0,
                         new AgentAtRuleMatcher(anotherBrowserSelector),
                         anotherPlatforms,
                         0,
                         anotherAccProps);
    StyleSheetNode sameDiffOrderStyleSheetNode =
      new StyleSheetNode(anotherStyleSheetOneNodes,
                         anotherIconNodes,
                         null,
                         diffOrderLocalesSet,
                         0,
                         new AgentAtRuleMatcher(anotherBrowserDiffOrder),
                         differentOrderPlatforms,
                         0,
                         differentOrderAccProps);
     
    // these should be equal
View Full Code Here

   
    // If any style sheet has a non-null browser variant, we must
    // have a browser match.
    for (int i = 0; i < styleSheets.length; i++)
    {
      AgentAtRuleMatcher agentMatcher = styleSheets[i].getAgentMatcher();
     
      if (agentMatcher != null)
      {
        Set<AgentAtRuleMatcher.Match> matches = agentMatcher.match(agent);
       
        if (matches.contains(AgentAtRuleMatcher.Match.APPLICATION))
        {
          // latch the browser matched
          browserMatched = true;
View Full Code Here

    {
      styles = _styles.toArray(new StyleNode[_styles.size()]);
    }
    // Do not create an agentMatcher if there are no browsers or versions to compare against.
    // This way a styleSheetNode will match any browser if it hasn't specified a specific browser.
    AgentAtRuleMatcher agentMatcher =
      (_browsers.isEmpty()) ? null : new AgentAtRuleMatcher(_browsers, _versions);
 
    return new StyleSheetNode(
        styles,
        null,      // icons only supported in skin CSS - not XSS
        null,      // properties only supported in skin CSS - not XSS
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidadinternal.skin.AgentAtRuleMatcher$AndMatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.