Package org.apache.myfaces.trinidadinternal.style

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


    // 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


      {
        // 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

      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

    StyleMap styleMap = context.getStyleContext().getStyleMap();
    if (styleMap != null)
    {
      StyleContext styleContext = context.getStyleContext();
      Style style = styleMap.getStyleByClass(styleContext,
                                             AF_MENU_TABS_SEPARATOR_STYLE_CLASS);

      if (style != null)
      {
        String width = style.getProperty("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

      getBooleanAttributeValue(context, node, _START_ROUNDED_ATTR, true);
    boolean endRounded =
      getBooleanAttributeValue(context, node, _END_ROUNDED_ATTR, true);
    Object name = getImageName(context, node);
    String styleName = getServerStyleName(context, node, disabled);
    Style style = getStyle(context, node, styleName);

    Style inlineStyle;
    Object inlineStyleObj = getInlineStyle(context, node);
    if (inlineStyleObj == null)
      inlineStyle = null;
    else
      inlineStyle = CSSUtils.parseStyle(inlineStyleObj.toString());
View Full Code Here

    UIXRenderingContext context,
    Object           className,
    String           propertyName
    )
  {
      Style classStyle = getClassStyle(context,
                                       className);
      if (classStyle != null)
      {
        return classStyle.getProperty(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.getProperty("background-color"), null);
      }
    }
    else
      renderStyleClassAttribute(context, _GLOBAL_HEADER_STYLE_CLASS);
  }
View Full Code Here

//        set up the StyleMap yet, so let's blow this off for now
//      _LOG.fine(_MAP_ERROR);
      return null;
    }

    Style style = null;

    if (isNamed)
      style = map.getStyleByName(context.getStyleContext(), styleID);
    else
      style = map.getStyleByClass(context.getStyleContext(), styleID);

    if (style == null)
    {
      if (_LOG.isFine())
        _LOG.fine(_STYLE_ERROR + styleID);

      return null;
    }

    try
    {
      return (Color)style.getParsedProperty(key);
    }
    catch (PropertyParseException e)
    {
      _LOG.warning(e);
    }
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.getProperty("background-color"), null);
      }
    }
    else
      renderStyleClassAttribute(context, _TAB_BAR_STYLE_CLASS);
  }
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.