Package org.apache.myfaces.trinidad.style

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


      ResponseWriter writer = context.getResponseWriter();
      writer.writeText(text, TEXT_ATTR.getAttributeName());
    }
    else if (isIE(context))
    {
      Style style =XhtmlLafUtils.getClassStyle(context,
                                              AF_MENU_BAR_STYLE_CLASS);
      if (style != null)
      {
        String minHeight = style.getProperties().get("min-height");
        renderSpacer(context, null, minHeight);
      }
    }
  }
View Full Code Here


    StringBuffer inline = new StringBuffer();

    for ( ; j < styleClasses.length; j++ )
    {
      Object styleClass = styleClasses[j];
      Style inlineStyle = XhtmlLafUtils.getClassStyle(context, styleClass);

      if (inlineStyle != null )
        inline.append(inlineStyle.toInlineString());
    }

    if ( inlineStyleString != null )
      inline.append( inlineStyleString);
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


    if ( renderStyleElements(context))
    {

      Style classStyle = XhtmlLafUtils.getClassStyle(context,
                                                     _GLOBAL_HEADER_STYLE_CLASS);

      if (classStyle != null)
      {
        ResponseWriter writer = context.getResponseWriter();
       

        // write the cell's background color property
        writer.writeAttribute("bgcolor",
                              classStyle.getProperties().get("background-color"), null);
      }
    }
    else
      renderStyleClassAttribute(context, _GLOBAL_HEADER_STYLE_CLASS);
  }
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


    if ( renderStyleElements(context))
    {

      Style classStyle = XhtmlLafUtils.getClassStyle(context,
                                                     _TAB_BAR_STYLE_CLASS);

      if (classStyle != null)
      {
        ResponseWriter writer = context.getResponseWriter();

        // write the cell's background color property
        writer.writeAttribute("bgcolor",
                              classStyle.getProperties().get("background-color"), null);
      }
    }
    else
      renderStyleClassAttribute(context, _TAB_BAR_STYLE_CLASS);
  }
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


    if ( renderStyleElements(context))
    {

      Style classStyle = XhtmlLafUtils.getClassStyle(context,
                                                     _GLOBAL_HEADER_STYLE_CLASS);

      if (classStyle != null)
      {
        ResponseWriter writer = context.getResponseWriter();
       

        // write the cell's background color property
        writer.writeAttribute("bgcolor",
                              classStyle.getProperties().get("background-color"), null);
      }
    }
    else
      renderStyleClassAttribute(context, _GLOBAL_HEADER_STYLE_CLASS);
  }
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], styleNodeToStyleMap);
          if (resolvedSelectorStyleMap == null)
            resolvedSelectorStyleMap = new ConcurrentHashMap<Selector, Style>();
          resolvedSelectorStyleMap.put(Selector.createSelector(selector), style);
        }
        /*
 
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.