Package org.apache.myfaces.trinidad.context

Examples of org.apache.myfaces.trinidad.context.RenderingContext


    // If we didn't get the style classes Dictionary yet,
    // try to get it now
    if (styleClasses == null)
    {
      RenderingContext arc = RenderingContext.getCurrentInstance();
      styleClasses = context.getSkin().getStyleClassMap(arc);

      if (styleClasses == null)
        styleClasses = _NULL_STYLE_CLASSES;
View Full Code Here


    Object           shortDesc,
    Object           align,
    boolean          embedded
    ) throws IOException
  {
    RenderingContext arc = RenderingContext.getCurrentInstance();
    FacesContext fContext = context.getFacesContext();
    OutputUtils.renderIcon(fContext, arc, icon, shortDesc, align, embedded);
  }
View Full Code Here

                             "javascript:",
                             0,
                             11))
        return;

      RenderingContext arc = RenderingContext.getCurrentInstance();
      if (!Boolean.FALSE.equals(arc.getAgent().getCapabilities().get(
               TrinidadAgent.CAP_NAVIGATION)))
      { 
        href = context.getExternalContext().encodeActionURL(href);
        context.getResponseWriter().writeURIAttribute("href", href, null);
      }
View Full Code Here

    ) throws IOException
  {
    // If we have an icon, render it inside of a table cell
    if (icon != null)
    {
      RenderingContext arc = RenderingContext.getCurrentInstance();
      FacesContext fContext = context.getFacesContext();
      ResponseWriter writer = context.getResponseWriter();
      writer.startElement(TABLE_DATA_ELEMENT, null);

      if (styleClass != null)
View Full Code Here

      if (!isFirstChild)
      {
        // render the separator
        if (_separatorIcon != null)
        {
          RenderingContext arc = RenderingContext.getCurrentInstance();
          FacesContext fContext = context.getFacesContext();
          OutputUtils.renderIcon(fContext, arc, _separatorIcon, "", null);
        }

        // and render everything that goes after the previous link.
View Full Code Here

    boolean      disabled,
    boolean      textAntialias,
    char         accessKey
    )
  {
    RenderingContext arc = RenderingContext.getCurrentInstance();
    FacesContext fContext = context.getFacesContext();
    return new SimpleButtonUtils.Key(
                        fContext,
                        arc,
                        context,
View Full Code Here

      if (!isFirstChild)
      {
        // render the separator
        if (_separatorIcon != null)
        {
          RenderingContext arc = RenderingContext.getCurrentInstance();
          FacesContext fContext = context.getFacesContext();
          OutputUtils.renderIcon(fContext, arc, _separatorIcon, "", null);
        }

        // and render everything that goes after the previous link.
View Full Code Here

   * Important: Each call to startDefaultStyleClassDisabled()
   * must be followed by a matching call to endDefaultStyleClassDisabled().
   */
  public static void startDefaultStyleClassDisabled(UIXRenderingContext context)
  {  
    RenderingContext arc = RenderingContext.getCurrentInstance();
    ((CoreRenderingContext) arc).setDefaultLinkStyleDisabled(true);
  }
View Full Code Here

   * Called by link containers that have called
   * startDefaultStyleClassDisabled().
   */
  public static void endDefaultStyleClassDisabled(UIXRenderingContext context)
  {
    RenderingContext arc = RenderingContext.getCurrentInstance();
    ((CoreRenderingContext) arc).setDefaultLinkStyleDisabled(false);
  }
View Full Code Here

   * Called by base.desktop.LinkRenderer to detect whether default
   * style class rendering is currently disabled.
   */
  public static boolean isDefaultStyleClassDisabled(UIXRenderingContext context)
  {
    RenderingContext arc = RenderingContext.getCurrentInstance();
    return ((CoreRenderingContext) arc).isDefaultLinkStyleDisabled();
  }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidad.context.RenderingContext

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.