Package org.apache.myfaces.trinidad.style

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


      // To save memory, we reuse CSSStyle objects if
      // they have the same list of style property names and values.
      // StyleKey is the key into the StyleKey, CSSStyle map.
      StyleKey key = new StyleKey(styleProperties);
      Style cachedStyle = styleNodeToStyleMap.get(key);
      if (cachedStyle == null)
      {
        // no match is cached yet, so create a new CSSStyle and cache in the map.
        Style style = new CSSStyle(styleProperties);
        styleNodeToStyleMap.put(key, style);
        return style;
      }
      else
      {
View Full Code Here


      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


    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

    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.