Examples of UnmodifiableStyle


Examples of org.apache.myfaces.trinidadinternal.style.UnmodifiableStyle

        styleProperties.put(name, value);
      }
    }

    // To save memory, we reuse Style objects for each FileSystemStyleCache instance.
    Style style = new UnmodifiableStyle(styleProperties);
    Style cachedStyle = reusableStyleMap.get(style);
    if (cachedStyle == null)
    {
      reusableStyleMap.put(style, style);
      return style;        
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.UnmodifiableStyle

       if (heightValue != null)
         propertyMap.put("height", heightValue);
       if (widthValue != null)
         propertyMap.put("width", widthValue);
       icon = new TextIcon(text, text, null,
                           propertyMap.isEmpty() ? null : new UnmodifiableStyle(propertyMap));
     }
     else if (uri != null)
     {
       // A URIImageIcon url starts with '/' or 'http:',
       // whereas a ContextImageIcons uri does not.
       boolean startsWithASlash = uri.startsWith("/");
      Style inlineStyle = propertyMap.isEmpty() ? null : new UnmodifiableStyle(propertyMap);

       if (!startsWithASlash && !CSSUtils.isAbsoluteURI(uri))
       {
         icon =
           new ContextImageIcon(uri, uri, width, height, null, inlineStyle);
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.UnmodifiableStyle

        styleProperties.put(name, value);
      }
    }

    // To save memory, we reuse Style objects for each FileSystemStyleCache instance.
    Style style = new UnmodifiableStyle(styleProperties);
    Style cachedStyle = reusableStyleMap.get(style);
    if (cachedStyle == null)
    {
      reusableStyleMap.put(style, style);
      return style;        
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.UnmodifiableStyle

       if (heightValue != null)
         propertyMap.put("height", heightValue);
       if (widthValue != null)
         propertyMap.put("width", widthValue);
       icon = new TextIcon(text, text, null,
                           propertyMap.isEmpty() ? null : new UnmodifiableStyle(propertyMap));
     }
     else if (uri != null)
     {
       // A URIImageIcon url starts with '/' or 'http:',
       // whereas a ContextImageIcons uri does not.
       boolean startsWithASlash = uri.startsWith("/");
      Style inlineStyle = propertyMap.isEmpty() ? null : new UnmodifiableStyle(propertyMap);

       if (!startsWithASlash)
       {
         icon =
           new ContextImageIcon(uri, uri, width, height, null, inlineStyle);
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.UnmodifiableStyle

       if (heightValue != null)
         propertyMap.put("height", heightValue);
       if (widthValue != null)
         propertyMap.put("width", widthValue);
       icon = new TextIcon(text, text, null,
                           propertyMap.isEmpty() ? null : new UnmodifiableStyle(propertyMap));
     }
     else if (uri != null)
     {
       // A URIImageIcon url starts with '/' or 'http:',
       // whereas a ContextImageIcons uri does not.
       boolean startsWithASlash = uri.startsWith("/");
      Style inlineStyle = propertyMap.isEmpty() ? null : new UnmodifiableStyle(propertyMap);

       if (!startsWithASlash && !CSSUtils.isAbsoluteURI(uri))
       {
         icon =
           new ContextImageIcon(uri, uri, width, height, null, inlineStyle);
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.UnmodifiableStyle

        styleProperties.put(name, value);
      }
    }

    // To save memory, we reuse Style objects for each FileSystemStyleCache instance.
    Style style = new UnmodifiableStyle(styleProperties);
    Style cachedStyle = reusableStyleMap.get(style);
    if (cachedStyle == null)
    {
      reusableStyleMap.put(style, style);
      return style;        
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.