Package org.apache.myfaces.trinidadinternal.style

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


    int top = _defaultInsets.top;
    int left = _defaultInsets.left;
    int bottom = _defaultInsets.bottom;
    int right = _defaultInsets.right;

    Style style = _getPaddingStyle(context);
    if (style != null)
    {
      top = _getPadding(style, _TOP_PADDING, top);
      left = _getPadding(style, _LEFT_PADDING, left);
      bottom = _getPadding(style, _BOTTOM_PADDING, bottom);
View Full Code Here


        // We need to look up the style class in the style map
        StyleMap map = context.getStyleContext().getStyleMap();
        if (map != null)
        {
          StyleContext styleContext = context.getStyleContext();
          Style style = map.getStyleByClass(styleContext, entry.styleClass);

          background = _getBackground(style);
        }
      }
View Full Code Here

    // from the style map.
    StyleMap map = context.getStyleContext().getStyleMap();

    if (map != null)
    {
      Style style = map.getStyleByClass(context.getStyleContext(), styleClass);
      if (style != null)
      {
        try
        {
          color = (Color)style.getParsedProperty(Style.BACKGROUND_KEY);
        }
        catch (PropertyParseException e)
        {
          // This should really be reported at parse time
          _LOG.info(e);
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.getProperty("min-height");
        renderSpacer(context, null, minHeight);
      }
    }
  }
View Full Code Here

      {
        // I'm assuming that the inline style doesn't happen to use
        // any of the same styles as the styleClass.  This is a
        // bad assumption which may eventually break, but it makes
        // this function much, much more efficient.
        Style inlineStyleClass = XhtmlLafUtils.getClassStyle(context,
                                                             styleClass);
        renderInlineStyleAttribute(context, inlineStyleClass);

        if (inlineStyle != null)
        {
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

TOP

Related Classes of org.apache.myfaces.trinidadinternal.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.