Examples of StyleContext


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

    UIComponent         comp,
    FacesBean           bean) throws IOException
  {
    ResponseWriter writer = context.getResponseWriter();

    StyleContext sContext = ((CoreRenderingContext) arc).getStyleContext();
    StyleProvider provider = sContext.getStyleProvider();
    if (provider != null)
    {
      String href = provider.getStyleSheetURI(sContext);
      if (href != null)
      {
View Full Code Here

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

  // for this specific paint.
  private Style _getPaddingStyle(PaintContext context)
  {
    // First, get the StyleProvider from the context
    ImageContext imageContext = context.getImageContext();
    StyleContext styleContext = imageContext.getStyleContext();
    StyleProvider provider = styleContext.getStyleProvider();
    if (provider != null)
    {
      // Get the StyleMap
      StyleMap map = provider.getStyleMap(styleContext);
View Full Code Here

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

     ExternalContext external  = FacesContext.getCurrentInstance().getExternalContext();
     if (!"true".equals(
          external.getInitParameter(
            Configuration.DISABLE_CONTENT_COMPRESSION)))
     {
       StyleContext sContext = ((CoreRenderingContext)arc).getStyleContext();
       StyleProvider sProvider = sContext.getStyleProvider();
       return sProvider.getShortStyleClasses(sContext);  
     }
     return null;
   }
View Full Code Here

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

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

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

    boolean doRenderSep = false;

    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)
      {
View Full Code Here

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

    UIComponent         comp,
    FacesBean           bean) throws IOException
  {
    ResponseWriter writer = context.getResponseWriter();

    StyleContext sContext = ((CoreRenderingContext) arc).getStyleContext();
    StyleProvider provider = sContext.getStyleProvider();
    if (provider != null)
    {
      List<String> uris = provider.getStyleSheetURIs(sContext);

      // If the requestMap has a skin-id, a skin's stylesheet's id and suppressStylesheet
View Full Code Here

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

     // implementation.
      RenderingContext rc = RenderingContext.getCurrentInstance();
      assert(rc instanceof CoreRenderingContext);

      CoreRenderingContext crc = (CoreRenderingContext)rc;
      StyleContext styleContext = crc.getStyleContext();
      StyleProvider styleProvider = styleContext.getStyleProvider();
      _icons = styleProvider.getIcons(styleContext);

      // Under normal circumstances, the StyleProvider will return
      // a non-null, modifiable map.  If the skin/style subsystem
      // has failed to initialize, however, the map may be null.
View Full Code Here

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

     // implementation.
      RenderingContext rc = RenderingContext.getCurrentInstance();
      assert(rc instanceof CoreRenderingContext);

      CoreRenderingContext crc = (CoreRenderingContext)rc;
      StyleContext styleContext = crc.getStyleContext();
      StyleProvider styleProvider = styleContext.getStyleProvider();
      // skin properties are stored in an Map<Object, Object>
      _properties = styleProvider.getSkinProperties(styleContext);

      // Under normal circumstances, the StyleProvider will return
      // a non-null, modifiable map.  If the skin/style subsystem
View Full Code Here

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

   * id for the StyleContext.
   */
   @Override
  public String getStyleSheetDocumentId(RenderingContext arc)
  {
    StyleContext sContext = ((CoreRenderingContext)arc).getStyleContext();
    return getStyleSheetDocument(sContext).getDocumentId(sContext);
  }
View Full Code Here

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

     )
   {
     FacesContext context = FacesContext.getCurrentInstance();
     if (!_isDisableContentCompressionParameterTrue(context))
     {
        StyleContext sContext = ((CoreRenderingContext)arc).getStyleContext();
        StyleProvider sProvider = sContext.getStyleProvider()
        // make sure that we want to disable style compression - there could be other
        // reasons that the styleContext knows about.
        if (!(sContext.isDisableStyleCompression()))
          return sProvider.getShortStyleClasses(sContext);
     }
     return null;
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.