Package org.apache.myfaces.trinidadinternal.style

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



    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


    // First, add the selector-based styles
    Iterator<Object> selectors = userStyleSheet.getSelectors();
    while (selectors.hasNext())
    {
      String selector = (String)selectors.next();
      Style style = userStyleSheet.getStyle(selector);

      v.addElement(_createStyleNode(selector, style, false));
    }

    // Now, add in the named styles
    Iterator<Object> names = userStyleSheet.getNames();
    while (names.hasNext())
    {
      String name = (String)names.next();
      Style style = userStyleSheet.getNamedStyle(name);

      v.addElement(_createStyleNode(name, style, true));
    }

    StyleNode[] nodes = new StyleNode[v.size()];
View Full Code Here

    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


    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

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

      return null;
  }
View Full Code Here

    UIXRenderingContext context,
    Object           selectorName,
    String           propertyName
    )
  {
      Style styleSelector = getStyleSelector(context,
                                             selectorName);
      if (styleSelector != null)
      {
        return styleSelector.getProperty(propertyName);
      }

      return null;
  }
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

    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

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.