Package org.apache.myfaces.trinidad.style

Examples of org.apache.myfaces.trinidad.style.Style


    for (int i=0; i < styleNodes.length; i++)
    {
      String selector = styleNodes[i].getSelector();
      if (selector != null)
      {
        Style style = _convertStyleNodeToStyle(styleNodes[i], _reusableStyleMap);
        if (resolvedSelectorStyleMap == null)
          resolvedSelectorStyleMap = new ConcurrentHashMap<Selector, Style>();

        // To save memory, we reuse Selector objects
        Selector selectorCreated = Selector.createSelector(selector);
View Full Code Here


        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

     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

    for (int i=0; i < styleNodes.length; i++)
    {
      String selector = styleNodes[i].getSelector();
      if (selector != null)
      {
        Style style = _convertStyleNodeToStyle(styleNodes[i], _reusableStyleMap);
        if (resolvedSelectorStyleMap == null)
          resolvedSelectorStyleMap = new ConcurrentHashMap<Selector, Style>();

        // To save memory, we reuse Selector objects
        Selector selectorCreated = Selector.createSelector(selector);
View Full Code Here

        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

     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

      for (int i=0; i < resolvedStyles.length; i++)
      {
        String selector = resolvedStyles[i].getSelector();
        if (selector != null)
        {
          Style style = _convertStyleNodeToStyle(resolvedStyles[i]);
          if (resolvedSelectorStyleMap == null)
            resolvedSelectorStyleMap = new ConcurrentHashMap<Selector, Style>();
          resolvedSelectorStyleMap.put(Selector.createSelector(selector), style);
        }
        /*
 
View Full Code Here

      for (int i=0; i < resolvedStyles.length; i++)
      {
        String selector = resolvedStyles[i].getSelector();
        if (selector != null)
        {
          Style style = _convertStyleNodeToStyle(resolvedStyles[i]);
          if (resolvedSelectorStyleMap == null)
            resolvedSelectorStyleMap = new ConcurrentHashMap<Selector, Style>();
          resolvedSelectorStyleMap.put(Selector.createSelector(selector), style);
        }
        /*
 
View Full Code Here

    UIXRenderingContext context,
    Object           className,
    String           propertyName
    )
  {
      Style classStyle = getClassStyle(context,
                                       className);
      if (classStyle != null)
      {
        return classStyle.getProperties().get(propertyName);
      }

      return null;
  }
View Full Code Here

    boolean doRenderSep = false;

    Styles styles = context.getStyleContext().getStyles();
    if (styles != null)
    {
      Style style = styles.getSelectorStyleMap().get(AF_MENU_TABS_SEPARATOR_STYLE_CLASS);

      if (style != null)
      {
        String width = style.getProperties().get("width");

        // As an optimization, we do not render the tabBar
        // separator if the af|menuTabs::separator's width is 0px.
        if (!"0px".equals(width))
          doRenderSep = true;
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidad.style.Style

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.